@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.
|
@@ -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
|
|
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
|
|
187
|
+
return props2.modelValue?.map((e, index) => {
|
|
188
188
|
return {
|
|
189
189
|
...e,
|
|
190
190
|
[ROW_KEY]: index + ""
|