free-fe-core-modules 0.1.22 → 0.1.24

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.
@@ -26,7 +26,7 @@ export default defineComponent({
26
26
 
27
27
  const { proxy:vm } = getCurrentInstance();
28
28
  const { fieldData, setFieldData } = useFreeField(props);
29
- if (fieldData.value === void 0) {
29
+ if (fieldData.value === void 0 || fieldData.value === null) {
30
30
  setFieldData(false, emit);
31
31
  }
32
32
 
@@ -114,6 +114,10 @@ export default defineComponent({
114
114
  };
115
115
 
116
116
  watch(() => fieldData.value, () => {
117
+ if (fieldData.value === void 0 || fieldData.value === null) {
118
+ setFieldData(false, emit);
119
+ }
120
+
117
121
  validate();
118
122
  });
119
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-fe-core-modules",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/freeeis/free-fe-core-modules.git",
6
6
  "author": "zhiquan",