File tree Expand file tree Collapse file tree 6 files changed +17
-24
lines changed
MagicFlow/components/FlowMaterialPanel
MagicJsonSchemaEditor/components/editor/components/TopRow
src/opensource/pages/flow/nodes/Start Expand file tree Collapse file tree 6 files changed +17
-24
lines changed Original file line number Diff line number Diff line change @@ -6,23 +6,20 @@ import { prefix } from "@/MagicFlow/constants"
66import styles from "../../index.module.less"
77
88interface 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
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 ) }
Original file line number Diff line number Diff line change 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" ,
253252 "katex" : " 0.16.21"
254253 }
255254 }
256-
257- "path" : " ../magic-web-enterprise"
258255}
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments