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
- if (item.val) {
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]
@@ -210,7 +210,7 @@ export default {
210
210
  if (item[this.getDisabledField]) {
211
211
  return
212
212
  }
213
- this.emitChange(item[this.getDisabledField])
213
+ this.emitChange(item[this.getKeyField])
214
214
  setTimeout(() => {
215
215
  this._parent.submit()
216
216
  }, 300) // 延迟 可见按钮点击动画
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7beta18",
3
+ "version": "1.2.7beta20",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {