Explorar o código

自定义表达式在相加时如果没值判定为0

wu hai 3 meses
pai
achega
36bf405b76
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/Generator/parser/Parser.vue

+ 1 - 1
src/components/Generator/parser/Parser.vue

@@ -482,7 +482,7 @@ function getConfigDefVal(h, item) {
   } else {
     return formConfCopy.fields
       .map((i, k) => {
-        if (i.__vModelName__ === item && (i.__config__.defaultValue || i.__config__.defaultValue === 0)) return i.__config__.defaultValue
+        if (i.__vModelName__ === item) return i.__config__.defaultValue || 0
       })
       .filter((l) => l !== undefined)
   }