n20-common-lib 2.9.90 → 2.9.91

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.9.90",
3
+ "version": "2.9.91",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -274,10 +274,10 @@ export default {
274
274
 
275
275
  this.$nextTick(() => {
276
276
  let oVal = this.value
277
- if (this.compare(nStr, oVal) !== 0) {
278
- this.$emit('input', nVar)
279
- this.$emit('change', nVar)
280
- this.dispatch('ElFormItem', 'el.form.change', [nVar])
277
+ if ((!oVal && nStr) || this.compare(nStr, oVal) !== 0) {
278
+ this.$emit('input', nStr)
279
+ this.$emit('change', nStr)
280
+ this.dispatch('ElFormItem', 'el.form.change', [nStr])
281
281
  }
282
282
  })
283
283
  }