element-ui-root 2.9.9 → 3.0.1

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.
@@ -19245,6 +19245,7 @@ __webpack_require__.r(__webpack_exports__);
19245
19245
  "attrs": {
19246
19246
  "clearable": true,
19247
19247
  "filterable": true,
19248
+ "collapse-tags": true,
19248
19249
  "placeholder": props.placeholder || `请选择${words}`
19249
19250
  },
19250
19251
  "on": {
@@ -61785,27 +61786,38 @@ __webpack_require__.r(__webpack_exports__);
61785
61786
  },
61786
61787
  methods: {
61787
61788
  create() {
61788
- const h = this.$createElement;
61789
61789
  let column = [...this.column, this.suffix()];
61790
- return column.map((a, b) => {
61791
- if (a && Object.keys(a).length > 0) {
61792
- let {
61793
- type = null,
61794
- render = null,
61795
- header = null,
61796
- ...r
61797
- } = a;
61798
- let field = a.field || a.index || a.name || a.prop;
61799
- let label = a.label || a.title || a.text;
61800
- let props = {
61801
- key: b,
61802
- prop: field,
61803
- scopedSlot: field,
61804
- sortable: field ? a.sortable ? a.sortable : this.sortable : false,
61805
- formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
61806
- showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
61807
- ...r
61808
- };
61790
+ return column.map((a, b) => this.output(a, b));
61791
+ },
61792
+ output(a, b) {
61793
+ const h = this.$createElement;
61794
+ if (a && Object.keys(a).length > 0) {
61795
+ let {
61796
+ type = null,
61797
+ render = null,
61798
+ header = null,
61799
+ ...r
61800
+ } = a;
61801
+ let child = a.children || a.child || a.node || a.list || [];
61802
+ let field = a.field || a.index || a.name || a.prop;
61803
+ let label = a.label || a.title || a.text;
61804
+ let props = {
61805
+ key: b,
61806
+ prop: field,
61807
+ scopedSlot: field,
61808
+ sortable: field ? a.sortable ? a.sortable : this.sortable : false,
61809
+ formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
61810
+ showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
61811
+ ...r
61812
+ };
61813
+ if (child.length > 0) {
61814
+ return h("el-table-column", {
61815
+ "key": b,
61816
+ "attrs": {
61817
+ "label": label
61818
+ }
61819
+ }, [child.map((c, d) => this.output(c, `${b}-${d}`))]);
61820
+ } else {
61809
61821
  return h("el-table-column", {
61810
61822
  "props": {
61811
61823
  ...props
@@ -61827,7 +61839,7 @@ __webpack_require__.r(__webpack_exports__);
61827
61839
  }
61828
61840
  }, [label])])]);
61829
61841
  }
61830
- });
61842
+ }
61831
61843
  },
61832
61844
  suffix() {
61833
61845
  const h = this.$createElement;
@@ -136186,27 +136198,38 @@ __webpack_require__.r(__webpack_exports__);
136186
136198
  },
136187
136199
  methods: {
136188
136200
  create() {
136189
- const h = this.$createElement;
136190
136201
  let column = [...this.column, this.suffix()];
136191
- return column.map((a, b) => {
136192
- if (a && Object.keys(a).length > 0) {
136193
- let {
136194
- type = null,
136195
- render = null,
136196
- header = null,
136197
- ...r
136198
- } = a;
136199
- let field = a.field || a.index || a.name || a.prop;
136200
- let label = a.label || a.title || a.text;
136201
- let props = {
136202
- key: b,
136203
- prop: field,
136204
- scopedSlot: field,
136205
- sortable: field ? a.sortable ? a.sortable : this.sortable : false,
136206
- formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
136207
- showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
136208
- ...r
136209
- };
136202
+ return column.map((a, b) => this.output(a, b));
136203
+ },
136204
+ output(a, b) {
136205
+ const h = this.$createElement;
136206
+ if (a && Object.keys(a).length > 0) {
136207
+ let {
136208
+ type = null,
136209
+ render = null,
136210
+ header = null,
136211
+ ...r
136212
+ } = a;
136213
+ let child = a.children || a.child || a.node || a.list || [];
136214
+ let field = a.field || a.index || a.name || a.prop;
136215
+ let label = a.label || a.title || a.text;
136216
+ let props = {
136217
+ key: b,
136218
+ prop: field,
136219
+ scopedSlot: field,
136220
+ sortable: field ? a.sortable ? a.sortable : this.sortable : false,
136221
+ formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
136222
+ showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
136223
+ ...r
136224
+ };
136225
+ if (child.length > 0) {
136226
+ return h("el-table-column", {
136227
+ "key": b,
136228
+ "attrs": {
136229
+ "label": label
136230
+ }
136231
+ }, [child.map((c, d) => this.output(c, `${b}-${d}`))]);
136232
+ } else {
136210
136233
  return h("el-table-column", {
136211
136234
  "props": {
136212
136235
  ...props
@@ -136228,7 +136251,7 @@ __webpack_require__.r(__webpack_exports__);
136228
136251
  }
136229
136252
  }, [label])])]);
136230
136253
  }
136231
- });
136254
+ }
136232
136255
  },
136233
136256
  suffix() {
136234
136257
  const h = this.$createElement;
@@ -162439,6 +162462,10 @@ __webpack_require__.r(__webpack_exports__);
162439
162462
  type: String,
162440
162463
  default: () => ''
162441
162464
  },
162465
+ margin: {
162466
+ type: String,
162467
+ default: () => '0'
162468
+ },
162442
162469
  padding: {
162443
162470
  type: String,
162444
162471
  default: () => '20px'
@@ -162578,6 +162605,10 @@ __webpack_require__.r(__webpack_exports__);
162578
162605
  ...props
162579
162606
  } = this.$attrs;
162580
162607
  return h("div", {
162608
+ "style": {
162609
+ padding: this.margin
162610
+ }
162611
+ }, [h("div", {
162581
162612
  "attrs": {
162582
162613
  "id": this.id
162583
162614
  },
@@ -162645,7 +162676,7 @@ __webpack_require__.r(__webpack_exports__);
162645
162676
  "size": "small",
162646
162677
  "disabled": this.loading
162647
162678
  }
162648
- }, [this.cancelText]), this.actionRender])]);
162679
+ }, [this.cancelText]), this.actionRender])])]);
162649
162680
  }
162650
162681
  });
162651
162682
 
package/dist/index.umd.js CHANGED
@@ -19254,6 +19254,7 @@ __webpack_require__.r(__webpack_exports__);
19254
19254
  "attrs": {
19255
19255
  "clearable": true,
19256
19256
  "filterable": true,
19257
+ "collapse-tags": true,
19257
19258
  "placeholder": props.placeholder || `请选择${words}`
19258
19259
  },
19259
19260
  "on": {
@@ -61794,27 +61795,38 @@ __webpack_require__.r(__webpack_exports__);
61794
61795
  },
61795
61796
  methods: {
61796
61797
  create() {
61797
- const h = this.$createElement;
61798
61798
  let column = [...this.column, this.suffix()];
61799
- return column.map((a, b) => {
61800
- if (a && Object.keys(a).length > 0) {
61801
- let {
61802
- type = null,
61803
- render = null,
61804
- header = null,
61805
- ...r
61806
- } = a;
61807
- let field = a.field || a.index || a.name || a.prop;
61808
- let label = a.label || a.title || a.text;
61809
- let props = {
61810
- key: b,
61811
- prop: field,
61812
- scopedSlot: field,
61813
- sortable: field ? a.sortable ? a.sortable : this.sortable : false,
61814
- formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
61815
- showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
61816
- ...r
61817
- };
61799
+ return column.map((a, b) => this.output(a, b));
61800
+ },
61801
+ output(a, b) {
61802
+ const h = this.$createElement;
61803
+ if (a && Object.keys(a).length > 0) {
61804
+ let {
61805
+ type = null,
61806
+ render = null,
61807
+ header = null,
61808
+ ...r
61809
+ } = a;
61810
+ let child = a.children || a.child || a.node || a.list || [];
61811
+ let field = a.field || a.index || a.name || a.prop;
61812
+ let label = a.label || a.title || a.text;
61813
+ let props = {
61814
+ key: b,
61815
+ prop: field,
61816
+ scopedSlot: field,
61817
+ sortable: field ? a.sortable ? a.sortable : this.sortable : false,
61818
+ formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
61819
+ showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
61820
+ ...r
61821
+ };
61822
+ if (child.length > 0) {
61823
+ return h("el-table-column", {
61824
+ "key": b,
61825
+ "attrs": {
61826
+ "label": label
61827
+ }
61828
+ }, [child.map((c, d) => this.output(c, `${b}-${d}`))]);
61829
+ } else {
61818
61830
  return h("el-table-column", {
61819
61831
  "props": {
61820
61832
  ...props
@@ -61836,7 +61848,7 @@ __webpack_require__.r(__webpack_exports__);
61836
61848
  }
61837
61849
  }, [label])])]);
61838
61850
  }
61839
- });
61851
+ }
61840
61852
  },
61841
61853
  suffix() {
61842
61854
  const h = this.$createElement;
@@ -136195,27 +136207,38 @@ __webpack_require__.r(__webpack_exports__);
136195
136207
  },
136196
136208
  methods: {
136197
136209
  create() {
136198
- const h = this.$createElement;
136199
136210
  let column = [...this.column, this.suffix()];
136200
- return column.map((a, b) => {
136201
- if (a && Object.keys(a).length > 0) {
136202
- let {
136203
- type = null,
136204
- render = null,
136205
- header = null,
136206
- ...r
136207
- } = a;
136208
- let field = a.field || a.index || a.name || a.prop;
136209
- let label = a.label || a.title || a.text;
136210
- let props = {
136211
- key: b,
136212
- prop: field,
136213
- scopedSlot: field,
136214
- sortable: field ? a.sortable ? a.sortable : this.sortable : false,
136215
- formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
136216
- showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
136217
- ...r
136218
- };
136211
+ return column.map((a, b) => this.output(a, b));
136212
+ },
136213
+ output(a, b) {
136214
+ const h = this.$createElement;
136215
+ if (a && Object.keys(a).length > 0) {
136216
+ let {
136217
+ type = null,
136218
+ render = null,
136219
+ header = null,
136220
+ ...r
136221
+ } = a;
136222
+ let child = a.children || a.child || a.node || a.list || [];
136223
+ let field = a.field || a.index || a.name || a.prop;
136224
+ let label = a.label || a.title || a.text;
136225
+ let props = {
136226
+ key: b,
136227
+ prop: field,
136228
+ scopedSlot: field,
136229
+ sortable: field ? a.sortable ? a.sortable : this.sortable : false,
136230
+ formatter: render ? render : type ? (e, f, g, h) => this.format(a, b, e, h) : null,
136231
+ showOverflowTooltip: a.showOverflowTooltip ? a.showOverflowTooltip : this.showOverflowTooltip,
136232
+ ...r
136233
+ };
136234
+ if (child.length > 0) {
136235
+ return h("el-table-column", {
136236
+ "key": b,
136237
+ "attrs": {
136238
+ "label": label
136239
+ }
136240
+ }, [child.map((c, d) => this.output(c, `${b}-${d}`))]);
136241
+ } else {
136219
136242
  return h("el-table-column", {
136220
136243
  "props": {
136221
136244
  ...props
@@ -136237,7 +136260,7 @@ __webpack_require__.r(__webpack_exports__);
136237
136260
  }
136238
136261
  }, [label])])]);
136239
136262
  }
136240
- });
136263
+ }
136241
136264
  },
136242
136265
  suffix() {
136243
136266
  const h = this.$createElement;
@@ -162448,6 +162471,10 @@ __webpack_require__.r(__webpack_exports__);
162448
162471
  type: String,
162449
162472
  default: () => ''
162450
162473
  },
162474
+ margin: {
162475
+ type: String,
162476
+ default: () => '0'
162477
+ },
162451
162478
  padding: {
162452
162479
  type: String,
162453
162480
  default: () => '20px'
@@ -162587,6 +162614,10 @@ __webpack_require__.r(__webpack_exports__);
162587
162614
  ...props
162588
162615
  } = this.$attrs;
162589
162616
  return h("div", {
162617
+ "style": {
162618
+ padding: this.margin
162619
+ }
162620
+ }, [h("div", {
162590
162621
  "attrs": {
162591
162622
  "id": this.id
162592
162623
  },
@@ -162654,7 +162685,7 @@ __webpack_require__.r(__webpack_exports__);
162654
162685
  "size": "small",
162655
162686
  "disabled": this.loading
162656
162687
  }
162657
- }, [this.cancelText]), this.actionRender])]);
162688
+ }, [this.cancelText]), this.actionRender])])]);
162658
162689
  }
162659
162690
  });
162660
162691