uview-plus 3.2.18 → 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
|
@@ -90,7 +90,6 @@
|
|
|
90
90
|
import mixin from '../../libs/mixin/mixin';
|
|
91
91
|
import defProps from '../../libs/config/props.js';
|
|
92
92
|
import { addUnit, addStyle, deepMerge, getPx, sleep, sys } from '../../libs/function/index';
|
|
93
|
-
import Index from '@/pages/template/login/index.vue';
|
|
94
93
|
/**
|
|
95
94
|
* Tabs 标签
|
|
96
95
|
* @description tabs标签组件,在标签多的时候,可以配置为左右滑动,标签少的时候,可以禁止滑动。 该组件的一个特点是配置为滚动模式时,激活的tab会自动移动到组件的中间位置。
|
|
@@ -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;
|
package/package.json
CHANGED
package/types/comps/form.d.ts
CHANGED