diff --git a/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx b/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx index 1a7e2a996..86ab1d16b 100644 --- a/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx +++ b/packages/core/client/src/schema-component/antd/remote-select/RemoteSelect.tsx @@ -14,12 +14,13 @@ export type RemoteSelectProps

= SelectProps & { onChange?: (v: any) => void; target: string; wait?: number; + manual?: boolean; service: ResourceActionOptions

; }; const InternalRemoteSelect = connect( (props: RemoteSelectProps) => { - const { fieldNames = {}, service = {}, wait = 300, value, objectValue, ...others } = props; + const { fieldNames = {}, service = {}, wait = 300, value, objectValue, manual = true, ...others } = props; const compile = useCompile(); const firstRun = useRef(false); @@ -36,7 +37,7 @@ const InternalRemoteSelect = connect( }, }, { - manual: true, + manual, debounceWait: wait, }, ); diff --git a/packages/plugins/workflow/src/client/nodes/index.tsx b/packages/plugins/workflow/src/client/nodes/index.tsx index 7193bfdd6..f25bc80a3 100644 --- a/packages/plugins/workflow/src/client/nodes/index.tsx +++ b/packages/plugins/workflow/src/client/nodes/index.tsx @@ -375,7 +375,7 @@ export function NodeDefaultView(props) { type: 'void', properties: { ...(instruction.view ? { view: instruction.view } : {}), - config: { + button: { type: 'void', 'x-content': detailText, 'x-component': Button, diff --git a/packages/plugins/workflow/src/client/nodes/manual/AssigneesSelect.tsx b/packages/plugins/workflow/src/client/nodes/manual/AssigneesSelect.tsx index 3a0598cc6..255054bd7 100644 --- a/packages/plugins/workflow/src/client/nodes/manual/AssigneesSelect.tsx +++ b/packages/plugins/workflow/src/client/nodes/manual/AssigneesSelect.tsx @@ -26,9 +26,10 @@ export function AssigneesSelect({ multiple = false, value = [], onChange }) { service={{ resource: 'users' }} + manual={false} value={value[0]} onChange={(v) => { - onChange([v]); + onChange(v != null ? [v] : []); }} /> diff --git a/packages/plugins/workflow/src/client/nodes/manual/index.tsx b/packages/plugins/workflow/src/client/nodes/manual/index.tsx index 70795f1d4..e429a7cad 100644 --- a/packages/plugins/workflow/src/client/nodes/manual/index.tsx +++ b/packages/plugins/workflow/src/client/nodes/manual/index.tsx @@ -41,13 +41,6 @@ export default { 'x-component': 'AssigneesSelect', 'x-component-props': { // multiple: true, - // fieldNames: { - // label: 'nickname', - // value: 'id', - // }, - // service: { - // resource: 'users' - // }, }, required: true, default: [],