uview-plus 3.2.19 → 3.2.20
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.
package/changelog.md
CHANGED
|
@@ -155,8 +155,8 @@
|
|
|
155
155
|
if (index != -1) this.$emit('input', this.value.splice(index, 1));
|
|
156
156
|
// #endif
|
|
157
157
|
// #ifdef VUE3
|
|
158
|
-
index = this.
|
|
159
|
-
if (index != -1) this.$emit('input', this.
|
|
158
|
+
index = this.modelValue.findIndex(val => val[this.idKey] == id);
|
|
159
|
+
if (index != -1) this.$emit('input', this.modelValue.splice(index, 1));
|
|
160
160
|
// #endif
|
|
161
161
|
},
|
|
162
162
|
// 修改某条数据的某个属性
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
index = this.value.findIndex(val => val[this.idKey] == id);
|
|
178
178
|
// #endif
|
|
179
179
|
// #ifdef VUE3
|
|
180
|
-
index = this.
|
|
180
|
+
index = this.modelValue.findIndex(val => val[this.idKey] == id);
|
|
181
181
|
// #endif
|
|
182
182
|
if (index != -1) {
|
|
183
183
|
// 首先复制一份value的数据
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
let data = this.cloneData(this.value);
|
|
186
186
|
// #endif
|
|
187
187
|
// #ifdef VUE3
|
|
188
|
-
let data = this.cloneData(this.
|
|
188
|
+
let data = this.cloneData(this.modelValue);
|
|
189
189
|
// #endif
|
|
190
190
|
// 修改对应索引的key属性的值为value
|
|
191
191
|
data[index][key] = value;
|