n20-common-lib 2.9.89 → 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.89",
3
+ "version": "2.9.91",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -172,8 +172,6 @@ export default {
172
172
  }
173
173
  this.valueStr = N.addThousands(val)
174
174
  } else {
175
- console.log(val, 123)
176
-
177
175
  this.valueStr = N.addThousands(N.subFixed(val, this.fNum))
178
176
  }
179
177
  },
@@ -231,7 +229,6 @@ export default {
231
229
  }
232
230
  },
233
231
  changeFn(valStr) {
234
- debugger
235
232
  if (this.changeIng) return
236
233
  this.changeIng = true
237
234
  setTimeout(() => {
@@ -277,10 +274,10 @@ export default {
277
274
 
278
275
  this.$nextTick(() => {
279
276
  let oVal = this.value
280
- if (this.compare(nStr, oVal) !== 0) {
281
- this.$emit('input', nVar)
282
- this.$emit('change', nVar)
283
- 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])
284
281
  }
285
282
  })
286
283
  }