adminforth 1.13.0-next.14 → 1.13.0-next.15

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.
@@ -190,8 +190,12 @@ const setCurrentValue = (key, value, index=null) => {
190
190
  } else if (index === currentValues.value[key].length) {
191
191
  currentValues.value[key].push(null);
192
192
  } else {
193
- if (['integer', 'float'].includes(col.isArray.itemType) && (value || value === 0)) {
194
- currentValues.value[key][index] = +value;
193
+ if (['integer', 'float', 'decimal'].includes(col.isArray.itemType)) {
194
+ if (value || value === 0) {
195
+ currentValues.value[key][index] = +value;
196
+ } else {
197
+ currentValues.value[key][index] = null;
198
+ }
195
199
  } else {
196
200
  currentValues.value[key][index] = value;
197
201
  }
@@ -200,8 +204,12 @@ const setCurrentValue = (key, value, index=null) => {
200
204
  }
201
205
  }
202
206
  } else {
203
- if (['integer', 'float'].includes(col.type) && (value || value === 0)) {
204
- currentValues.value[key] = +value;
207
+ if (['integer', 'float', 'decimal'].includes(col.type)) {
208
+ if (value || value === 0) {
209
+ currentValues.value[key] = +value;
210
+ } else {
211
+ currentValues.value[key] = null;
212
+ }
205
213
  } else {
206
214
  currentValues.value[key] = value;
207
215
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.13.0-next.14",
3
+ "version": "1.13.0-next.15",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",