sadais-piui 1.2.7-beta166 → 1.2.7-beta168
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view
|
|
3
3
|
:id="formItemId"
|
|
4
4
|
class="pi-form-item"
|
|
5
|
-
:style="[
|
|
5
|
+
:style="[itemStyle, customStyle]"
|
|
6
6
|
:class="getFormItemClass"
|
|
7
7
|
@tap="handleItemClick"
|
|
8
8
|
>
|
|
@@ -272,7 +272,15 @@ export default {
|
|
|
272
272
|
default() {
|
|
273
273
|
return formItem.rightIcon
|
|
274
274
|
}
|
|
275
|
-
}
|
|
275
|
+
},
|
|
276
|
+
// 排序
|
|
277
|
+
sort: {
|
|
278
|
+
type: String,
|
|
279
|
+
default() {
|
|
280
|
+
// ''
|
|
281
|
+
return formItem.sort
|
|
282
|
+
}
|
|
283
|
+
},
|
|
276
284
|
},
|
|
277
285
|
data() {
|
|
278
286
|
return {
|
|
@@ -428,6 +436,12 @@ export default {
|
|
|
428
436
|
},
|
|
429
437
|
beforeDestroy() {
|
|
430
438
|
this.componentDestroy = true
|
|
439
|
+
if (this._parent && this._parent._children) {
|
|
440
|
+
const index = this._parent._children.indexOf(this)
|
|
441
|
+
if (index !== -1) {
|
|
442
|
+
this._parent._children.splice(index, 1)
|
|
443
|
+
}
|
|
444
|
+
}
|
|
431
445
|
},
|
|
432
446
|
methods: {
|
|
433
447
|
handleItemClick(e) {
|
package/config/formItem.js
CHANGED