sadais-piui 1.2.7-beta18 → 1.2.7-beta20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -239,13 +239,7 @@ export default {
|
|
|
239
239
|
// 同步父子组件的值
|
|
240
240
|
if (this.val[index] !== item.val) {
|
|
241
241
|
console.log(TAG, 'Dropdown和DropdownItem绑定值不一致,即将同步')
|
|
242
|
-
|
|
243
|
-
// 以子组件的值为准
|
|
244
|
-
hasValueChange = true
|
|
245
|
-
val[index] = item.val
|
|
246
|
-
} else if (this.val[index]) {
|
|
247
|
-
item.emitChange(this.val[index])
|
|
248
|
-
}
|
|
242
|
+
item.emitChange(this.val[index])
|
|
249
243
|
}
|
|
250
244
|
const currentOption = item.options?.find(
|
|
251
245
|
opt => !opt.clearable && opt[item.getKeyField] === this.val[index]
|