eztech-core-components 1.0.47 → 1.0.49

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.
@@ -203,7 +203,8 @@ export default {
203
203
  },
204
204
  val0: {
205
205
  get () {
206
- const val = get(this.value, '[0]') || null
206
+ const val1 = get(this.value, '[0]')
207
+ const val = ['', undefined].includes(val1) ? null : val1
207
208
  if (['number', 'decimal'].includes(this.colType) && val && !this.col?.col_field?.includes('year')) {
208
209
  return val.$format()
209
210
  }
@@ -219,7 +220,8 @@ export default {
219
220
  },
220
221
  val1: {
221
222
  get () {
222
- const val = get(this.value, '[1]') || null
223
+ const val1 = get(this.value, '[1]')
224
+ const val = ['', undefined].includes(val1) ? null : val1
223
225
  if (['number', 'decimal'].includes(this.colType) && val && !this.col?.col_field?.includes('year')) {
224
226
  return val.$format()
225
227
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eztech-core-components",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },