diff --git a/packages/core/client/src/schema-component/antd/variable/Input.tsx b/packages/core/client/src/schema-component/antd/variable/Input.tsx index c007b4e32..4607cb80f 100644 --- a/packages/core/client/src/schema-component/antd/variable/Input.tsx +++ b/packages/core/client/src/schema-component/antd/variable/Input.tsx @@ -36,7 +36,7 @@ const ConstantTypes = { string: { label: `{{t("String")}}`, value: 'string', - component({ onChange, value }) { + component: function StringComponent({ onChange, value }) { return onChange(ev.target.value)} />; }, default: '', @@ -44,7 +44,7 @@ const ConstantTypes = { number: { label: '{{t("Number")}}', value: 'number', - component({ onChange, value }) { + component: function NumberComponent({ onChange, value }) { return ; }, default: 0, @@ -52,7 +52,7 @@ const ConstantTypes = { boolean: { label: `{{t("Boolean")}}`, value: 'boolean', - component: function Com({ onChange, value }) { + component: function BooleanComponent({ onChange, value }) { const { t } = useTranslation(); return (