New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: schemaSettingDefaultValue support expression #4294
base: main
Are you sure you want to change the base?
Conversation
This pull request has been linked to 1 task:
|
const inputRef = useRef<HTMLDivElement>(null); | ||
const [options, setOptions] = useState([]); | ||
const form = useForm(); | ||
const keyLabelMap = useMemo(() => createOptionsValueLabelMap(options), [options]); | ||
const [ime, setIME] = useState<boolean>(false); | ||
const [changed, setChanged] = useState(false); | ||
const [hasVariable, setHasVariable] = useState(value.includes('$')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在这里判断可能影响的范围比较广,推荐在 VariableInput 组件中判断
* @param props | ||
* @returns | ||
*/ | ||
export const VariableInput = (props: Props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉不复制一份,在原来的基础上修改就可以,这样也可以防止冗余代码
Description
Motivation
Key changes
Test plan
Suggestions
Underlying risk
Showcase