diff --git a/packages/client/src/workflow/calculators.tsx b/packages/client/src/workflow/calculators.tsx
index 066469c89..a98b15069 100644
--- a/packages/client/src/workflow/calculators.tsx
+++ b/packages/client/src/workflow/calculators.tsx
@@ -75,25 +75,35 @@ const ConstantTypes = {
string: {
title: '字符串',
value: 'string',
- component({ onChange, type, options, ...props }) {
- return onChange(ev.target.value)} />;
+ component({ onChange, type, options, value }) {
+ return (
+ onChange({ value: ev.target.value, type, options })}
+ />
+ );
},
default: ''
},
number: {
title: '数字',
value: 'number',
- component({ type, options, ...props }) {
- return ;
+ component({ onChange, type, options, value }) {
+ return (
+ onChange({ value: v, type, options })}
+ />
+ );
},
default: 0
},
boolean: {
title: '逻辑值',
value: 'boolean',
- component({ type, options, ...props }) {
+ component({ onChange, type, options, value }) {
return (
-