eztech-core-components 1.0.47 → 1.0.48
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
|
|
206
|
+
const val1 = get(this.value, '[1]')
|
|
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
|
|
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
|
}
|