We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
代码粘贴区域: <Select placeholder={item.placeHolder} onChange={(value, options) => this.handleSelect(value, options, code, index)} defaultValue={item.defaultValue} value={record[item.code]} multiple={item.mutiFlag} disabled={data.length ? false : true} allowClear
<Select placeholder={item.placeHolder} { ...getFieldProps(item.code, { onChange: (value, options) => this.formHandleSelect(value, options, code), validateTrigger: 'onChange', initialValue: formData[item.code] || i_default, rules: rules, }) } data={data} disabled={data.length ? false : true} multiple={item.mutiFlag} allowClear />
这两个图中defaultValue是null的时候,下拉框不能正常显示placeHolder,第一张图中的value是空字符串。
The text was updated successfully, but these errors were encountered:
稍后发布 tinper-bee
Sorry, something went wrong.
yangchch6
No branches or pull requests
描述这个问题:
1、组件相关代码
代码粘贴区域:
<Select
placeholder={item.placeHolder}
onChange={(value, options) => this.handleSelect(value, options, code, index)}
defaultValue={item.defaultValue}
value={record[item.code]}
multiple={item.mutiFlag}
disabled={data.length ? false : true}
allowClear
<Select
placeholder={item.placeHolder}
{
...getFieldProps(item.code, {
onChange: (value, options) => this.formHandleSelect(value, options, code),
validateTrigger: 'onChange',
initialValue: formData[item.code] || i_default,
rules: rules,
})
}
data={data}
disabled={data.length ? false : true}
multiple={item.mutiFlag}
allowClear
/>
2、报错信息
这两个图中defaultValue是null的时候,下拉框不能正常显示placeHolder,第一张图中的value是空字符串。
The text was updated successfully, but these errors were encountered: