mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
Merge pull request #6911 from allenve/master
fix: options 有默认值时不触发autoFill
This commit is contained in:
commit
8484ea870c
@ -346,6 +346,15 @@ export function registerOptionsControl(config: OptionsConfig) {
|
||||
this.syncAutoFill(formItem.getSelectedOptions(formItem.tmpValue))
|
||||
)
|
||||
);
|
||||
|
||||
if (
|
||||
options &&
|
||||
formItem.tmpValue &&
|
||||
formItem.getSelectedOptions(formItem.tmpValue).length
|
||||
) {
|
||||
this.syncAutoFill(formItem.getSelectedOptions(formItem.tmpValue));
|
||||
}
|
||||
|
||||
// 默认全选。这里会和默认值\回填值逻辑冲突,所以如果有配置source则不执行默认全选
|
||||
if (
|
||||
multiple &&
|
||||
|
Loading…
Reference in New Issue
Block a user