@vunk/form 2.5.5 → 2.5.6

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.
@@ -84,7 +84,7 @@ var _sfc_main = vue.defineComponent({
84
84
  const addToFirst = () => {
85
85
  emit("update:modelValue", [
86
86
  {},
87
- ...props2.modelValue
87
+ ...props2.modelValue ?? []
88
88
  ]);
89
89
  };
90
90
  const handleFormSetData = (e) => {
@@ -80,7 +80,7 @@ var _sfc_main = defineComponent({
80
80
  const addToFirst = () => {
81
81
  emit("update:modelValue", [
82
82
  {},
83
- ...props2.modelValue
83
+ ...props2.modelValue ?? []
84
84
  ]);
85
85
  };
86
86
  const handleFormSetData = (e) => {
@@ -178,7 +178,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
178
178
  setExpandRowKeys([]);
179
179
  }
180
180
  const addToFirst = () => {
181
- emit("update:modelValue", [{}, ...props2.modelValue]);
181
+ emit("update:modelValue", [{}, ...(props2.modelValue ?? [])]);
182
182
  setExpandRowKeys([]);
183
183
  };
184
184
  const handleFormSetData = e => {
@@ -188,7 +188,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
188
188
  };
189
189
  const ROW_KEY = "_row_key";
190
190
  const tableData = vue.computed(() => {
191
- return props2.modelValue.map((e, index) => {
191
+ return props2.modelValue?.map((e, index) => {
192
192
  return {
193
193
  ...e,
194
194
  [ROW_KEY]: index + ""
@@ -174,7 +174,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
174
174
  setExpandRowKeys([]);
175
175
  }
176
176
  const addToFirst = () => {
177
- emit("update:modelValue", [{}, ...props2.modelValue]);
177
+ emit("update:modelValue", [{}, ...(props2.modelValue ?? [])]);
178
178
  setExpandRowKeys([]);
179
179
  };
180
180
  const handleFormSetData = e => {
@@ -184,7 +184,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
184
184
  };
185
185
  const ROW_KEY = "_row_key";
186
186
  const tableData = computed(() => {
187
- return props2.modelValue.map((e, index) => {
187
+ return props2.modelValue?.map((e, index) => {
188
188
  return {
189
189
  ...e,
190
190
  [ROW_KEY]: index + ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.5.5",
3
+ "version": "2.5.6",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {