sadais-piui 1.2.7-beta167 → 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.
@@ -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) {
@@ -23,5 +23,6 @@ export default {
23
23
  ...icon,
24
24
  name: 'right',
25
25
  color: '#cccccc'
26
- } // 右侧箭头配置
26
+ }, // 右侧箭头配置
27
+ sort: ''
27
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7-beta167",
3
+ "version": "1.2.7-beta168",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {