element-ui-root 3.0.6 → 3.0.7
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/dist/index.common.js +164 -148
- package/dist/index.css +1 -1
- package/dist/index.umd.js +164 -148
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -13492,7 +13492,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13492
13492
|
},
|
|
13493
13493
|
gutter: {
|
|
13494
13494
|
type: String,
|
|
13495
|
-
default: () => '
|
|
13495
|
+
default: () => '16'
|
|
13496
13496
|
},
|
|
13497
13497
|
config: {
|
|
13498
13498
|
type: Object,
|
|
@@ -13545,9 +13545,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13545
13545
|
r.default && (this.form[a] = r.default || '');
|
|
13546
13546
|
}
|
|
13547
13547
|
});
|
|
13548
|
-
this.$nextTick(() => {
|
|
13549
|
-
Object.keys(this.value).forEach(a => typeof this.value[a] == 'number' && (this.form[a] = `${this.value[a]}`));
|
|
13550
|
-
});
|
|
13551
13548
|
},
|
|
13552
13549
|
create(a, b) {
|
|
13553
13550
|
const h = this.$createElement;
|
|
@@ -13616,9 +13613,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13616
13613
|
let {
|
|
13617
13614
|
...r
|
|
13618
13615
|
} = child[c];
|
|
13616
|
+
let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
|
|
13617
|
+
let style = {
|
|
13618
|
+
padding: `0 ${space}px`
|
|
13619
|
+
};
|
|
13620
|
+
r.type = r.type ? r.type : a.type;
|
|
13619
13621
|
if (r.span) {
|
|
13620
13622
|
return h("el-col", {
|
|
13621
13623
|
"key": d,
|
|
13624
|
+
"style": style,
|
|
13622
13625
|
"attrs": {
|
|
13623
13626
|
"span": Number(r.span)
|
|
13624
13627
|
}
|
|
@@ -13628,7 +13631,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13628
13631
|
return h("el-col", {
|
|
13629
13632
|
"key": d,
|
|
13630
13633
|
"style": {
|
|
13631
|
-
width
|
|
13634
|
+
width,
|
|
13635
|
+
...style
|
|
13632
13636
|
}
|
|
13633
13637
|
}, [this.format(r, c)]);
|
|
13634
13638
|
}
|
|
@@ -13638,6 +13642,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13638
13642
|
change: () => this.change(),
|
|
13639
13643
|
form: this.form,
|
|
13640
13644
|
field: b,
|
|
13645
|
+
clearable: !a.default,
|
|
13641
13646
|
...a
|
|
13642
13647
|
};
|
|
13643
13648
|
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
@@ -13773,15 +13778,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13773
13778
|
"style": {
|
|
13774
13779
|
height: this.opened ? `${this.height}px` : '0'
|
|
13775
13780
|
}
|
|
13776
|
-
}, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.create(a, b))])]), (submit || cancel || action.length > 0) && h("
|
|
13777
|
-
"attrs": {
|
|
13778
|
-
"name": "action",
|
|
13779
|
-
"label": "action"
|
|
13780
|
-
},
|
|
13781
|
+
}, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.create(a, b))])]), (submit || cancel || action.length > 0) && h("div", {
|
|
13781
13782
|
"class": "action",
|
|
13782
13783
|
"style": {
|
|
13783
13784
|
paddingLeft: `${this.gutter}px`
|
|
13784
13785
|
}
|
|
13786
|
+
}, [h("el-form-item", {
|
|
13787
|
+
"attrs": {
|
|
13788
|
+
"name": "action",
|
|
13789
|
+
"label": "action"
|
|
13790
|
+
}
|
|
13785
13791
|
}, [Object.keys(this.config).length > this.cols && !this.inline && h("el-button", {
|
|
13786
13792
|
"attrs": {
|
|
13787
13793
|
"disabled": loading,
|
|
@@ -13813,8 +13819,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13813
13819
|
"key": b,
|
|
13814
13820
|
"attrs": {
|
|
13815
13821
|
"disabled": loading
|
|
13822
|
+
},
|
|
13823
|
+
"on": {
|
|
13824
|
+
"click": e => a.click(this.filter(), this.form, this.option, e)
|
|
13816
13825
|
}
|
|
13817
|
-
}, a]), [a.label || a.title || a.text || '']))])])]);
|
|
13826
|
+
}, a]), [a.label || a.title || a.text || '']))])])])]);
|
|
13818
13827
|
}
|
|
13819
13828
|
});
|
|
13820
13829
|
|
|
@@ -60730,18 +60739,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60730
60739
|
Aform: _components_Aform__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
60731
60740
|
},
|
|
60732
60741
|
props: {
|
|
60733
|
-
visible: {
|
|
60734
|
-
type: Boolean,
|
|
60735
|
-
default: () => false
|
|
60736
|
-
},
|
|
60737
|
-
title: {
|
|
60738
|
-
type: String,
|
|
60739
|
-
default: () => '编辑'
|
|
60740
|
-
},
|
|
60741
|
-
width: {
|
|
60742
|
-
type: String,
|
|
60743
|
-
default: () => '600px'
|
|
60744
|
-
},
|
|
60745
60742
|
rule: {
|
|
60746
60743
|
type: Boolean,
|
|
60747
60744
|
default: () => true
|
|
@@ -60755,10 +60752,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60755
60752
|
default: () => true
|
|
60756
60753
|
},
|
|
60757
60754
|
config: {
|
|
60758
|
-
type: Array,
|
|
60759
|
-
default: () => []
|
|
60760
|
-
},
|
|
60761
|
-
object: {
|
|
60762
60755
|
type: Object,
|
|
60763
60756
|
default: () => ({})
|
|
60764
60757
|
},
|
|
@@ -60778,34 +60771,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60778
60771
|
type: String,
|
|
60779
60772
|
default: () => '取消'
|
|
60780
60773
|
},
|
|
60781
|
-
loading: {
|
|
60782
|
-
type: Boolean,
|
|
60783
|
-
default: () => false
|
|
60784
|
-
},
|
|
60785
60774
|
labelPosition: {
|
|
60786
60775
|
type: String,
|
|
60787
60776
|
default: () => 'top'
|
|
60788
60777
|
}
|
|
60789
60778
|
},
|
|
60790
|
-
methods: {
|
|
60791
|
-
finish(form) {
|
|
60792
|
-
this.$emit('finish', form);
|
|
60793
|
-
},
|
|
60794
|
-
submit(form) {
|
|
60795
|
-
this.$emit('submit', form);
|
|
60796
|
-
},
|
|
60797
|
-
cancel(form) {
|
|
60798
|
-
this.$emit('cancel', form);
|
|
60799
|
-
}
|
|
60800
|
-
},
|
|
60801
60779
|
render() {
|
|
60802
60780
|
const h = arguments[0];
|
|
60803
60781
|
const {
|
|
60804
60782
|
rule,
|
|
60805
60783
|
rules,
|
|
60806
|
-
action,
|
|
60807
60784
|
config,
|
|
60808
|
-
object,
|
|
60809
60785
|
values,
|
|
60810
60786
|
finishText,
|
|
60811
60787
|
submitText,
|
|
@@ -60813,21 +60789,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60813
60789
|
labelPosition
|
|
60814
60790
|
} = this.$props;
|
|
60815
60791
|
const {
|
|
60792
|
+
title = '编辑',
|
|
60793
|
+
width = '600px',
|
|
60794
|
+
visible = false,
|
|
60795
|
+
loading = false,
|
|
60816
60796
|
...props
|
|
60817
60797
|
} = this.$attrs;
|
|
60798
|
+
const {
|
|
60799
|
+
finish,
|
|
60800
|
+
submit,
|
|
60801
|
+
cancel
|
|
60802
|
+
} = this.$listeners;
|
|
60818
60803
|
return h("div", {
|
|
60819
60804
|
"class": this.loading ? 'a-modal loading' : 'a-modal'
|
|
60820
60805
|
}, [h("el-dialog", {
|
|
60821
60806
|
"attrs": {
|
|
60822
|
-
"visible":
|
|
60823
|
-
"title":
|
|
60824
|
-
"width":
|
|
60807
|
+
"visible": visible,
|
|
60808
|
+
"title": title,
|
|
60809
|
+
"width": width,
|
|
60825
60810
|
"lock-scroll": true,
|
|
60826
60811
|
"destroy-on-close": true,
|
|
60827
60812
|
"close-on-click-modal": false
|
|
60828
60813
|
},
|
|
60829
60814
|
"on": {
|
|
60830
|
-
"close":
|
|
60815
|
+
"close": cancel
|
|
60831
60816
|
},
|
|
60832
60817
|
"props": {
|
|
60833
60818
|
...props
|
|
@@ -60836,23 +60821,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60836
60821
|
"class": "a-modal-body"
|
|
60837
60822
|
}, [h(_components_Aform__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
|
60838
60823
|
"attrs": {
|
|
60824
|
+
"cols": "1",
|
|
60839
60825
|
"size": "mini",
|
|
60840
60826
|
"rule": rule,
|
|
60841
60827
|
"rules": rules,
|
|
60842
|
-
"
|
|
60843
|
-
"object": config && config.length > 0 ? {} : object,
|
|
60844
|
-
"config": config && config.length > 0 ? config : [],
|
|
60828
|
+
"config": config,
|
|
60845
60829
|
"values": values,
|
|
60830
|
+
"loading": loading,
|
|
60846
60831
|
"finishText": finishText,
|
|
60847
60832
|
"submitText": submitText,
|
|
60848
60833
|
"cancelText": cancelText,
|
|
60849
|
-
"loading": this.loading,
|
|
60850
60834
|
"labelPosition": labelPosition
|
|
60851
60835
|
},
|
|
60852
60836
|
"on": {
|
|
60853
|
-
"finish":
|
|
60854
|
-
"submit":
|
|
60855
|
-
"cancel":
|
|
60837
|
+
"finish": finish,
|
|
60838
|
+
"submit": submit,
|
|
60839
|
+
"cancel": cancel
|
|
60856
60840
|
}
|
|
60857
60841
|
})]), this.$slots.default, h("div", {
|
|
60858
60842
|
"class": this.action ? 'a-modal-foot custom' : ''
|
|
@@ -132351,12 +132335,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132351
132335
|
},
|
|
132352
132336
|
gutter: {
|
|
132353
132337
|
type: String,
|
|
132354
|
-
default: () => '
|
|
132338
|
+
default: () => '16'
|
|
132355
132339
|
},
|
|
132356
132340
|
config: {
|
|
132357
132341
|
type: Object,
|
|
132358
132342
|
default: () => ({})
|
|
132359
132343
|
},
|
|
132344
|
+
values: {
|
|
132345
|
+
type: Object,
|
|
132346
|
+
default: () => ({})
|
|
132347
|
+
},
|
|
132360
132348
|
global: {
|
|
132361
132349
|
type: Boolean,
|
|
132362
132350
|
default: () => false
|
|
@@ -132373,14 +132361,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132373
132361
|
};
|
|
132374
132362
|
},
|
|
132375
132363
|
watch: {
|
|
132376
|
-
|
|
132377
|
-
|
|
132364
|
+
config: {
|
|
132365
|
+
immediate: true,
|
|
132366
|
+
deep: true,
|
|
132367
|
+
handler() {
|
|
132368
|
+
this.relate(this.config);
|
|
132369
|
+
}
|
|
132370
|
+
},
|
|
132371
|
+
values: {
|
|
132372
|
+
immediate: true,
|
|
132373
|
+
deep: true,
|
|
132374
|
+
handler() {
|
|
132375
|
+
this.relate(this.config);
|
|
132376
|
+
}
|
|
132378
132377
|
}
|
|
132379
132378
|
},
|
|
132380
132379
|
created() {
|
|
132381
132380
|
this.relate(this.config);
|
|
132382
132381
|
},
|
|
132383
|
-
mounted() {},
|
|
132384
132382
|
methods: {
|
|
132385
132383
|
input() {
|
|
132386
132384
|
this.$emit('input', this.filter());
|
|
@@ -132389,6 +132387,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132389
132387
|
this.$emit('change', this.filter(), this.form, this.option);
|
|
132390
132388
|
},
|
|
132391
132389
|
relate(config = {}) {
|
|
132390
|
+
let data = {};
|
|
132392
132391
|
Object.keys(config).forEach(a => {
|
|
132393
132392
|
let {
|
|
132394
132393
|
...r
|
|
@@ -132397,12 +132396,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132397
132396
|
if (child && Object.keys(child).length > 0) {
|
|
132398
132397
|
this.relate(child);
|
|
132399
132398
|
} else {
|
|
132400
|
-
|
|
132399
|
+
if (r.type == 'password') {
|
|
132400
|
+
data[a] = '';
|
|
132401
|
+
} else {
|
|
132402
|
+
if (this.values[a] != undefined) {
|
|
132403
|
+
data[a] = `${this.values[a]}`;
|
|
132404
|
+
} else if (r.default) {
|
|
132405
|
+
data[a] = r.default;
|
|
132406
|
+
}
|
|
132407
|
+
}
|
|
132401
132408
|
}
|
|
132402
132409
|
});
|
|
132403
|
-
this
|
|
132404
|
-
Object.keys(this.value).forEach(a => typeof this.value[a] == 'number' && (this.form[a] = `${this.value[a]}`));
|
|
132405
|
-
});
|
|
132410
|
+
this.form = data;
|
|
132406
132411
|
},
|
|
132407
132412
|
create(a, b) {
|
|
132408
132413
|
const h = this.$createElement;
|
|
@@ -132471,9 +132476,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132471
132476
|
let {
|
|
132472
132477
|
...r
|
|
132473
132478
|
} = child[c];
|
|
132479
|
+
let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
|
|
132480
|
+
let style = {
|
|
132481
|
+
padding: `0 ${space}px`
|
|
132482
|
+
};
|
|
132483
|
+
r.type = r.type ? r.type : a.type;
|
|
132474
132484
|
if (r.span) {
|
|
132475
132485
|
return h("el-col", {
|
|
132476
132486
|
"key": d,
|
|
132487
|
+
"style": style,
|
|
132477
132488
|
"attrs": {
|
|
132478
132489
|
"span": Number(r.span)
|
|
132479
132490
|
}
|
|
@@ -132483,7 +132494,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132483
132494
|
return h("el-col", {
|
|
132484
132495
|
"key": d,
|
|
132485
132496
|
"style": {
|
|
132486
|
-
width
|
|
132497
|
+
width,
|
|
132498
|
+
...style
|
|
132487
132499
|
}
|
|
132488
132500
|
}, [this.format(r, c)]);
|
|
132489
132501
|
}
|
|
@@ -132493,6 +132505,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132493
132505
|
change: () => this.change(),
|
|
132494
132506
|
form: this.form,
|
|
132495
132507
|
field: b,
|
|
132508
|
+
clearable: !a.default,
|
|
132496
132509
|
...a
|
|
132497
132510
|
};
|
|
132498
132511
|
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
@@ -132565,9 +132578,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132565
132578
|
labelWidth = 'auto',
|
|
132566
132579
|
labelPosition = 'top',
|
|
132567
132580
|
finishText = '保存',
|
|
132568
|
-
submitText = '
|
|
132581
|
+
submitText = '提交',
|
|
132569
132582
|
rejectText = '驳回',
|
|
132570
|
-
cancelText = '
|
|
132583
|
+
cancelText = '取消',
|
|
132571
132584
|
action = [],
|
|
132572
132585
|
...rest
|
|
132573
132586
|
} = this.$attrs;
|
|
@@ -132608,15 +132621,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132608
132621
|
"gutter": Number(this.gutter)
|
|
132609
132622
|
},
|
|
132610
132623
|
"class": "main-rows"
|
|
132611
|
-
}, [Object.keys(this.config).map((a, b) => this.create(a, b))])]), (finish || submit || reject || cancel || action.length > 0) && h("
|
|
132612
|
-
"attrs": {
|
|
132613
|
-
"name": "action",
|
|
132614
|
-
"label": "action"
|
|
132615
|
-
},
|
|
132624
|
+
}, [Object.keys(this.config).map((a, b) => this.create(a, b))])]), (finish || submit || reject || cancel || action.length > 0) && h("div", {
|
|
132616
132625
|
"class": "action",
|
|
132617
132626
|
"style": {
|
|
132618
132627
|
paddingLeft: `${this.gutter}px`
|
|
132619
132628
|
}
|
|
132629
|
+
}, [h("el-form-item", {
|
|
132630
|
+
"attrs": {
|
|
132631
|
+
"name": "action",
|
|
132632
|
+
"label": "action"
|
|
132633
|
+
}
|
|
132620
132634
|
}, [finish && h("el-button", {
|
|
132621
132635
|
"attrs": {
|
|
132622
132636
|
"disabled": loading,
|
|
@@ -132653,8 +132667,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132653
132667
|
"key": b,
|
|
132654
132668
|
"attrs": {
|
|
132655
132669
|
"disabled": loading
|
|
132670
|
+
},
|
|
132671
|
+
"on": {
|
|
132672
|
+
"click": e => a.click(this.filter(), this.form, this.option, e)
|
|
132656
132673
|
}
|
|
132657
|
-
}, a]), [a.label || a.title || a.text || '']))])])]);
|
|
132674
|
+
}, a]), [a.label || a.title || a.text || '']))])])])]);
|
|
132658
132675
|
}
|
|
132659
132676
|
});
|
|
132660
132677
|
|
|
@@ -134402,6 +134419,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134402
134419
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
134403
134420
|
name: 'AfEditor',
|
|
134404
134421
|
props: {
|
|
134422
|
+
value: {
|
|
134423
|
+
type: Object,
|
|
134424
|
+
default: () => ({})
|
|
134425
|
+
},
|
|
134405
134426
|
must: {
|
|
134406
134427
|
type: Boolean,
|
|
134407
134428
|
default: () => false
|
|
@@ -134416,7 +134437,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134416
134437
|
},
|
|
134417
134438
|
gutter: {
|
|
134418
134439
|
type: String,
|
|
134419
|
-
default: () => '
|
|
134440
|
+
default: () => '16'
|
|
134420
134441
|
},
|
|
134421
134442
|
config: {
|
|
134422
134443
|
type: Object,
|
|
@@ -134437,15 +134458,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134437
134458
|
},
|
|
134438
134459
|
data() {
|
|
134439
134460
|
return {
|
|
134440
|
-
form: this.
|
|
134441
|
-
option: {}
|
|
134442
|
-
opened: false,
|
|
134443
|
-
height: 'auto'
|
|
134461
|
+
form: this.value,
|
|
134462
|
+
option: {}
|
|
134444
134463
|
};
|
|
134445
134464
|
},
|
|
134446
134465
|
watch: {
|
|
134447
|
-
|
|
134448
|
-
|
|
134466
|
+
config: {
|
|
134467
|
+
immediate: true,
|
|
134468
|
+
deep: true,
|
|
134469
|
+
handler() {
|
|
134470
|
+
this.relate(this.config);
|
|
134471
|
+
}
|
|
134449
134472
|
}
|
|
134450
134473
|
},
|
|
134451
134474
|
created() {
|
|
@@ -134460,6 +134483,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134460
134483
|
this.$emit('change', this.filter(), this.form, this.option);
|
|
134461
134484
|
},
|
|
134462
134485
|
relate(config = {}) {
|
|
134486
|
+
let data = {};
|
|
134463
134487
|
Object.keys(config).forEach(a => {
|
|
134464
134488
|
let {
|
|
134465
134489
|
...r
|
|
@@ -134468,12 +134492,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134468
134492
|
if (child && Object.keys(child).length > 0) {
|
|
134469
134493
|
this.relate(child);
|
|
134470
134494
|
} else {
|
|
134471
|
-
|
|
134495
|
+
if (r.type == 'password') {
|
|
134496
|
+
data[a] = '';
|
|
134497
|
+
} else {
|
|
134498
|
+
if (this.values[a] != undefined) {
|
|
134499
|
+
data[a] = `${this.values[a]}`;
|
|
134500
|
+
} else if (r.default) {
|
|
134501
|
+
data[a] = r.default;
|
|
134502
|
+
}
|
|
134503
|
+
}
|
|
134472
134504
|
}
|
|
134473
134505
|
});
|
|
134474
|
-
this
|
|
134475
|
-
Object.keys(this.values).forEach(a => typeof this.values[a] == 'number' && (this.form[a] = `${this.values[a]}`));
|
|
134476
|
-
});
|
|
134506
|
+
this.form = data;
|
|
134477
134507
|
},
|
|
134478
134508
|
create(a, b) {
|
|
134479
134509
|
const h = this.$createElement;
|
|
@@ -134542,9 +134572,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134542
134572
|
let {
|
|
134543
134573
|
...r
|
|
134544
134574
|
} = child[c];
|
|
134575
|
+
let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
|
|
134576
|
+
let style = {
|
|
134577
|
+
padding: `0 ${space}px`
|
|
134578
|
+
};
|
|
134579
|
+
r.type = r.type ? r.type : a.type;
|
|
134545
134580
|
if (r.span) {
|
|
134546
134581
|
return h("el-col", {
|
|
134547
134582
|
"key": d,
|
|
134583
|
+
"style": style,
|
|
134548
134584
|
"attrs": {
|
|
134549
134585
|
"span": Number(r.span)
|
|
134550
134586
|
}
|
|
@@ -134554,7 +134590,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134554
134590
|
return h("el-col", {
|
|
134555
134591
|
"key": d,
|
|
134556
134592
|
"style": {
|
|
134557
|
-
width
|
|
134593
|
+
width,
|
|
134594
|
+
...style
|
|
134558
134595
|
}
|
|
134559
134596
|
}, [this.format(r, c)]);
|
|
134560
134597
|
}
|
|
@@ -134564,6 +134601,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134564
134601
|
change: () => this.change(),
|
|
134565
134602
|
form: this.form,
|
|
134566
134603
|
field: b,
|
|
134604
|
+
clearable: !a.default,
|
|
134567
134605
|
...a
|
|
134568
134606
|
};
|
|
134569
134607
|
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
@@ -134636,7 +134674,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134636
134674
|
labelWidth = 'auto',
|
|
134637
134675
|
labelPosition = 'top',
|
|
134638
134676
|
finishText = '保存',
|
|
134639
|
-
submitText = '
|
|
134677
|
+
submitText = '提交',
|
|
134640
134678
|
rejectText = '驳回',
|
|
134641
134679
|
cancelText = '取消',
|
|
134642
134680
|
action = [],
|
|
@@ -134677,12 +134715,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134677
134715
|
"gutter": Number(this.gutter)
|
|
134678
134716
|
},
|
|
134679
134717
|
"class": "main-rows"
|
|
134680
|
-
}, [Object.keys(this.config).map((a, b) => this.create(a, b)), this.$slots.default]), (finish || submit || reject || cancel || action.length > 0) && h("
|
|
134718
|
+
}, [Object.keys(this.config).map((a, b) => this.create(a, b)), this.$slots.default]), (finish || submit || reject || cancel || action.length > 0) && h("div", {
|
|
134719
|
+
"class": "action"
|
|
134720
|
+
}, [h("el-form-item", {
|
|
134681
134721
|
"attrs": {
|
|
134682
134722
|
"name": "action",
|
|
134683
134723
|
"label": "action"
|
|
134684
|
-
}
|
|
134685
|
-
"class": "action"
|
|
134724
|
+
}
|
|
134686
134725
|
}, [finish && h("el-button", {
|
|
134687
134726
|
"attrs": {
|
|
134688
134727
|
"disabled": loading,
|
|
@@ -134719,8 +134758,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134719
134758
|
"key": b,
|
|
134720
134759
|
"attrs": {
|
|
134721
134760
|
"disabled": loading
|
|
134761
|
+
},
|
|
134762
|
+
"on": {
|
|
134763
|
+
"click": e => a.click(this.filter(), this.form, this.option, e)
|
|
134722
134764
|
}
|
|
134723
|
-
}, a]), [a.label || a.title || a.text || '']))])])]);
|
|
134765
|
+
}, a]), [a.label || a.title || a.text || '']))])])])]);
|
|
134724
134766
|
}
|
|
134725
134767
|
});
|
|
134726
134768
|
|
|
@@ -136822,7 +136864,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136822
136864
|
|
|
136823
136865
|
|
|
136824
136866
|
|
|
136825
|
-
|
|
136826
136867
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
136827
136868
|
name: 'Atable',
|
|
136828
136869
|
components: {
|
|
@@ -136836,6 +136877,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136836
136877
|
Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
|
|
136837
136878
|
},
|
|
136838
136879
|
props: {
|
|
136880
|
+
id: {
|
|
136881
|
+
type: String,
|
|
136882
|
+
default: () => `id-a-table-${Math.random()}`
|
|
136883
|
+
},
|
|
136839
136884
|
margin: {
|
|
136840
136885
|
type: String,
|
|
136841
136886
|
default: () => '0'
|
|
@@ -136884,7 +136929,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136884
136929
|
type: Object,
|
|
136885
136930
|
default: () => ({})
|
|
136886
136931
|
},
|
|
136887
|
-
|
|
136932
|
+
height: {
|
|
136888
136933
|
type: String,
|
|
136889
136934
|
default: () => '480'
|
|
136890
136935
|
},
|
|
@@ -136970,11 +137015,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136970
137015
|
type: Boolean,
|
|
136971
137016
|
default: () => true
|
|
136972
137017
|
},
|
|
137018
|
+
pages: {
|
|
137019
|
+
type: Object,
|
|
137020
|
+
default: () => ({})
|
|
137021
|
+
},
|
|
136973
137022
|
page: {
|
|
136974
137023
|
type: Boolean,
|
|
136975
137024
|
default: () => true
|
|
136976
137025
|
}
|
|
136977
137026
|
},
|
|
137027
|
+
data() {
|
|
137028
|
+
return {
|
|
137029
|
+
maxHeight: this.height
|
|
137030
|
+
};
|
|
137031
|
+
},
|
|
136978
137032
|
mounted() {
|
|
136979
137033
|
this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
|
|
136980
137034
|
},
|
|
@@ -137013,7 +137067,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137013
137067
|
}
|
|
137014
137068
|
}, [h("template", {
|
|
137015
137069
|
"slot": "header"
|
|
137016
|
-
}, [header ? () => header(r) : label && label != '' && label.length
|
|
137070
|
+
}, [header ? () => header(r) : label && label != '' && label.length > 8 ? h("el-tooltip", {
|
|
137017
137071
|
"attrs": {
|
|
137018
137072
|
"content": label,
|
|
137019
137073
|
"placement": "top"
|
|
@@ -137038,12 +137092,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137038
137092
|
handle,
|
|
137039
137093
|
remove
|
|
137040
137094
|
} = this.$listeners;
|
|
137041
|
-
if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
|
|
137095
|
+
if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export || this.action.length > 0) {
|
|
137042
137096
|
return {
|
|
137043
137097
|
fixed: 'right',
|
|
137044
137098
|
align: 'center',
|
|
137045
137099
|
width: this.actionWidth,
|
|
137046
137100
|
label: this.actionTitle,
|
|
137101
|
+
showOverflowTooltip: false,
|
|
137047
137102
|
formatter: item => h("div", {
|
|
137048
137103
|
"class": "action"
|
|
137049
137104
|
}, [review && h("i", {
|
|
@@ -137082,7 +137137,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137082
137137
|
}), this.action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137083
137138
|
"key": b,
|
|
137084
137139
|
"on": {
|
|
137085
|
-
"click": e => a.click
|
|
137140
|
+
"click": e => a.click(item, e)
|
|
137086
137141
|
}
|
|
137087
137142
|
}, a]), [a.label || a.title || a.text]))])
|
|
137088
137143
|
};
|
|
@@ -137125,58 +137180,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137125
137180
|
this.$emit('change', pages);
|
|
137126
137181
|
this.search(pages);
|
|
137127
137182
|
},
|
|
137128
|
-
format({
|
|
137129
|
-
type = '',
|
|
137130
|
-
name = '',
|
|
137131
|
-
data = [],
|
|
137132
|
-
text = '',
|
|
137133
|
-
label = '',
|
|
137134
|
-
title = '',
|
|
137135
|
-
field = '',
|
|
137136
|
-
dicts = [],
|
|
137137
|
-
...props
|
|
137138
|
-
}, colIndex, item, rowIndex) {
|
|
137183
|
+
format(a, b, c, d) {
|
|
137139
137184
|
const h = this.$createElement;
|
|
137140
|
-
|
|
137141
|
-
if (field != '') return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137142
|
-
"key": colIndex + '-' + rowIndex,
|
|
137143
|
-
"attrs": {
|
|
137144
|
-
"field": field,
|
|
137145
|
-
"data": dicts.length > 0 ? dicts : data
|
|
137146
|
-
}
|
|
137147
|
-
}, props, {
|
|
137148
|
-
"model": {
|
|
137149
|
-
value: item[field],
|
|
137150
|
-
callback: $$v => {
|
|
137151
|
-
this.$set(item, field, $$v);
|
|
137152
|
-
}
|
|
137153
|
-
}
|
|
137154
|
-
}]));
|
|
137155
|
-
return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137156
|
-
"key": colIndex + '-' + rowIndex,
|
|
137157
|
-
"attrs": {
|
|
137158
|
-
"field": name,
|
|
137159
|
-
"data": dicts.length > 0 ? dicts : data
|
|
137160
|
-
}
|
|
137161
|
-
}, props, {
|
|
137162
|
-
"model": {
|
|
137163
|
-
value: item[name],
|
|
137164
|
-
callback: $$v => {
|
|
137165
|
-
this.$set(item, name, $$v);
|
|
137166
|
-
}
|
|
137167
|
-
}
|
|
137168
|
-
}]));
|
|
137169
|
-
}
|
|
137185
|
+
let field = a.field || a.index || a.name || a.prop;
|
|
137170
137186
|
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
|
137171
|
-
"key":
|
|
137187
|
+
"key": b + '-' + d,
|
|
137172
137188
|
"attrs": {
|
|
137173
137189
|
"config": {
|
|
137174
|
-
|
|
137175
|
-
|
|
137176
|
-
|
|
137177
|
-
field: field != '' ? field : name != '' ? name : '',
|
|
137178
|
-
label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
|
|
137179
|
-
...props
|
|
137190
|
+
form: c,
|
|
137191
|
+
field,
|
|
137192
|
+
...a
|
|
137180
137193
|
}
|
|
137181
137194
|
}
|
|
137182
137195
|
});
|
|
@@ -137199,9 +137212,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137199
137212
|
},
|
|
137200
137213
|
render() {
|
|
137201
137214
|
const h = arguments[0];
|
|
137202
|
-
const {
|
|
137203
|
-
...props
|
|
137204
|
-
} = this.$attrs;
|
|
137205
137215
|
const {
|
|
137206
137216
|
...r
|
|
137207
137217
|
} = this.record;
|
|
@@ -137210,11 +137220,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137210
137220
|
const {
|
|
137211
137221
|
pageParams = {}
|
|
137212
137222
|
} = this.$store.state;
|
|
137223
|
+
const {
|
|
137224
|
+
...props
|
|
137225
|
+
} = this.$attrs;
|
|
137213
137226
|
return h("div", {
|
|
137214
137227
|
"class": this.border ? 'a-table' : 'a-table border'
|
|
137215
137228
|
}, [h("el-table", {
|
|
137216
137229
|
"ref": "a-table",
|
|
137217
137230
|
"attrs": {
|
|
137231
|
+
"id": this.id,
|
|
137218
137232
|
"data": data,
|
|
137219
137233
|
"size": this.size,
|
|
137220
137234
|
"border": this.border,
|
|
@@ -137263,7 +137277,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137263
137277
|
"attrs": {
|
|
137264
137278
|
"description": this.emptyText
|
|
137265
137279
|
}
|
|
137266
|
-
})])]), !this.tree && this.page && data.length > 0 && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
137280
|
+
})])]), !this.tree && this.page && data.length > 0 && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137267
137281
|
"attrs": {
|
|
137268
137282
|
"total": Number(size),
|
|
137269
137283
|
"pages": pageParams
|
|
@@ -137271,7 +137285,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137271
137285
|
"on": {
|
|
137272
137286
|
"change": this.change
|
|
137273
137287
|
}
|
|
137274
|
-
}
|
|
137288
|
+
}, {
|
|
137289
|
+
"props": this.pages
|
|
137290
|
+
}]))]);
|
|
137275
137291
|
}
|
|
137276
137292
|
});
|
|
137277
137293
|
|
|
@@ -159151,7 +159167,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159151
159167
|
},
|
|
159152
159168
|
height: {
|
|
159153
159169
|
type: String,
|
|
159154
|
-
default: () => '
|
|
159170
|
+
default: () => '68vh'
|
|
159155
159171
|
},
|
|
159156
159172
|
loading: {
|
|
159157
159173
|
type: Boolean,
|