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 80b88914e5..3d61b74a4e 100644 --- a/packages/core/client/src/schema-component/antd/variable/Input.tsx +++ b/packages/core/client/src/schema-component/antd/variable/Input.tsx @@ -21,6 +21,7 @@ import { useTranslation } from 'react-i18next'; import { useCompile } from '../../hooks'; import { XButton } from './XButton'; import { useStyles } from './style'; +import { Json } from '../input'; const JT_VALUE_RE = /^\s*{{\s*([^{}]+)\s*}}\s*$/; @@ -124,6 +125,14 @@ const ConstantTypes = { return null; }, }, + object: { + label: '{{t("JSON")}}', + value: 'object', + component: Json, + default() { + return {}; + }, + }, }; type UseTypeConstantType = true | (string | [string, Record])[];