Skip to content

Commit 356b102

Browse files
cainullRock-520
authored andcommitted
fix: fix json-schema & flow input & start node & package.json config error
1 parent 42d583a commit 356b102

File tree

6 files changed

+17
-24
lines changed

6 files changed

+17
-24
lines changed

frontend/magic-flow/src/MagicFlow/components/FlowMaterialPanel/components/sections/SearchBar.tsx

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@ import { prefix } from "@/MagicFlow/constants"
66
import styles from "../../index.module.less"
77

88
interface SearchBarProps {
9-
keyword: string
10-
onSearchChange: (value: string) => void
9+
keyword: string
10+
onSearchChange: (event: React.ChangeEvent<HTMLInputElement>) => void
1111
}
1212

13-
const SearchBar = memo(({
14-
keyword,
15-
onSearchChange
16-
}: SearchBarProps) => {
17-
return (
18-
<div className={clsx(styles.search, `${prefix}search`)}>
19-
<SearchInput
20-
placeholder={i18next.t("common.search", { ns: "magicFlow" })}
21-
value={keyword}
22-
onChange={(e) => onSearchChange(e.target.value)}
23-
/>
24-
</div>
25-
)
13+
const SearchBar = memo(({ keyword, onSearchChange }: SearchBarProps) => {
14+
return (
15+
<div className={clsx(styles.search, `${prefix}search`)}>
16+
<SearchInput
17+
placeholder={i18next.t("common.search", { ns: "magicFlow" })}
18+
value={keyword}
19+
onChange={onSearchChange}
20+
/>
21+
</div>
22+
)
2623
})
2724

28-
export default SearchBar
25+
export default SearchBar

frontend/magic-flow/src/MagicFlow/components/FlowMaterialPanel/hooks/useMaterialSearch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function useMaterialSearch({ tab }:UseMaterialSearchProps) {
1616

1717
const [agentType, setAgentType] = useState(AgentType.Enterprise)
1818

19-
const onSearchChange = useMemoizedFn((e) => {
19+
const onSearchChange = useMemoizedFn((e: React.ChangeEvent<HTMLInputElement>) => {
2020
setKeyword(e.target.value)
2121
// 触发业务测传入的更新数据方法
2222
switch(tab) {

frontend/magic-flow/src/MagicJsonSchemaEditor/components/editor/components/TopRow/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ export default function TopRow(props: TopRowProps) {
192192
allowExpression={allowExpression}
193193
allowModifyField
194194
multiple={false}
195-
onlyExpression
196195
/>
197196
</Col>
198197
)}

frontend/magic-web/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@
162162
"xlsx": "^0.18.5",
163163
"xterm": "^5.3.0",
164164
"xterm-addon-fit": "^0.8.0",
165-
"zustand": "^4.5.2",
166-
"magic-web-enterprise": "dev-master"
165+
"zustand": "^4.5.2"
167166
},
168167
"devDependencies": {
169168
"@commitlint/cli": "^19.2.2",
@@ -253,6 +252,4 @@
253252
"katex": "0.16.21"
254253
}
255254
}
256-
257-
"path": "../magic-web-enterprise"
258255
}

frontend/magic-web/src/opensource/pages/flow/nodes/Start/v0/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export default function StartV0() {
342342
value: "minutes",
343343
},
344344
{
345-
label: t("start.seconds", {
345+
label: t("common.seconds", {
346346
ns: "flow",
347347
}),
348348
value: "seconds",

frontend/magic-web/src/opensource/pages/flow/nodes/Start/v1/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export default function StartV1() {
347347
value: "minutes",
348348
},
349349
{
350-
label: t("start.seconds", {
350+
label: t("common.seconds", {
351351
ns: "flow",
352352
}),
353353
value: "seconds",

0 commit comments

Comments
 (0)