mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 11:08:00 +08:00
parent
876720f31b
commit
84b9ac5904
@ -173,16 +173,15 @@ export default function generate(config: {
|
||||
getEntityByValue,
|
||||
});
|
||||
|
||||
const valueRef = ref<DefaultValueType>(props.defaultValue);
|
||||
const valueRef = ref<DefaultValueType>(
|
||||
props.value === undefined ? props.defaultValue : props.value,
|
||||
);
|
||||
|
||||
watch(
|
||||
() => props.value,
|
||||
() => {
|
||||
if (props.value !== undefined) {
|
||||
valueRef.value = props.value;
|
||||
}
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
|
||||
/** Get `missingRawValues` which not exist in the tree yet */
|
||||
|
Loading…
Reference in New Issue
Block a user