From 7cd5f7ba2afb895ed8c885ae5f1d558fdc32a529 Mon Sep 17 00:00:00 2001 From: Sheldon Guo Date: Sat, 26 Apr 2025 07:46:37 +0800 Subject: [PATCH] feat: support placeholder --- .../core/client/src/schema-component/antd/variable/Input.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 c19f9465e1..a769f5269d 100644 --- a/packages/core/client/src/schema-component/antd/variable/Input.tsx +++ b/packages/core/client/src/schema-component/antd/variable/Input.tsx @@ -19,9 +19,9 @@ import dayjs from 'dayjs'; import React, { useCallback, useEffect, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { useCompile } from '../../hooks'; +import { Json } from '../input'; import { XButton } from './XButton'; import { useStyles } from './style'; -import { Json } from '../input'; const JT_VALUE_RE = /^\s*{{\s*([^{}]+)\s*}}\s*$/; @@ -204,6 +204,7 @@ export function Input(props: VariableInputProps) { parseOptions, hideVariableButton, constantAbel = true, + ...otherProps } = props; const scope = typeof props.scope === 'function' ? props.scope() : props.scope; const { wrapSSR, hashId, componentCls, rootPrefixCls } = useStyles({ hideVariableButton }); @@ -501,7 +502,7 @@ export function Input(props: VariableInputProps) { )} {/* 确保所有ant input样式都已加载, 放到Compact中会导致Compact中的Input样式不对 */} - + , ); }