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.umd.js
CHANGED
|
@@ -13501,7 +13501,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13501
13501
|
},
|
|
13502
13502
|
gutter: {
|
|
13503
13503
|
type: String,
|
|
13504
|
-
default: () => '
|
|
13504
|
+
default: () => '16'
|
|
13505
13505
|
},
|
|
13506
13506
|
config: {
|
|
13507
13507
|
type: Object,
|
|
@@ -13554,9 +13554,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13554
13554
|
r.default && (this.form[a] = r.default || '');
|
|
13555
13555
|
}
|
|
13556
13556
|
});
|
|
13557
|
-
this.$nextTick(() => {
|
|
13558
|
-
Object.keys(this.value).forEach(a => typeof this.value[a] == 'number' && (this.form[a] = `${this.value[a]}`));
|
|
13559
|
-
});
|
|
13560
13557
|
},
|
|
13561
13558
|
create(a, b) {
|
|
13562
13559
|
const h = this.$createElement;
|
|
@@ -13625,9 +13622,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13625
13622
|
let {
|
|
13626
13623
|
...r
|
|
13627
13624
|
} = child[c];
|
|
13625
|
+
let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
|
|
13626
|
+
let style = {
|
|
13627
|
+
padding: `0 ${space}px`
|
|
13628
|
+
};
|
|
13629
|
+
r.type = r.type ? r.type : a.type;
|
|
13628
13630
|
if (r.span) {
|
|
13629
13631
|
return h("el-col", {
|
|
13630
13632
|
"key": d,
|
|
13633
|
+
"style": style,
|
|
13631
13634
|
"attrs": {
|
|
13632
13635
|
"span": Number(r.span)
|
|
13633
13636
|
}
|
|
@@ -13637,7 +13640,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13637
13640
|
return h("el-col", {
|
|
13638
13641
|
"key": d,
|
|
13639
13642
|
"style": {
|
|
13640
|
-
width
|
|
13643
|
+
width,
|
|
13644
|
+
...style
|
|
13641
13645
|
}
|
|
13642
13646
|
}, [this.format(r, c)]);
|
|
13643
13647
|
}
|
|
@@ -13647,6 +13651,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13647
13651
|
change: () => this.change(),
|
|
13648
13652
|
form: this.form,
|
|
13649
13653
|
field: b,
|
|
13654
|
+
clearable: !a.default,
|
|
13650
13655
|
...a
|
|
13651
13656
|
};
|
|
13652
13657
|
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
@@ -13782,15 +13787,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13782
13787
|
"style": {
|
|
13783
13788
|
height: this.opened ? `${this.height}px` : '0'
|
|
13784
13789
|
}
|
|
13785
|
-
}, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.create(a, b))])]), (submit || cancel || action.length > 0) && h("
|
|
13786
|
-
"attrs": {
|
|
13787
|
-
"name": "action",
|
|
13788
|
-
"label": "action"
|
|
13789
|
-
},
|
|
13790
|
+
}, [Object.keys(this.config).map((a, b) => b > this.cols - 1 && this.create(a, b))])]), (submit || cancel || action.length > 0) && h("div", {
|
|
13790
13791
|
"class": "action",
|
|
13791
13792
|
"style": {
|
|
13792
13793
|
paddingLeft: `${this.gutter}px`
|
|
13793
13794
|
}
|
|
13795
|
+
}, [h("el-form-item", {
|
|
13796
|
+
"attrs": {
|
|
13797
|
+
"name": "action",
|
|
13798
|
+
"label": "action"
|
|
13799
|
+
}
|
|
13794
13800
|
}, [Object.keys(this.config).length > this.cols && !this.inline && h("el-button", {
|
|
13795
13801
|
"attrs": {
|
|
13796
13802
|
"disabled": loading,
|
|
@@ -13822,8 +13828,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13822
13828
|
"key": b,
|
|
13823
13829
|
"attrs": {
|
|
13824
13830
|
"disabled": loading
|
|
13831
|
+
},
|
|
13832
|
+
"on": {
|
|
13833
|
+
"click": e => a.click(this.filter(), this.form, this.option, e)
|
|
13825
13834
|
}
|
|
13826
|
-
}, a]), [a.label || a.title || a.text || '']))])])]);
|
|
13835
|
+
}, a]), [a.label || a.title || a.text || '']))])])])]);
|
|
13827
13836
|
}
|
|
13828
13837
|
});
|
|
13829
13838
|
|
|
@@ -60739,18 +60748,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60739
60748
|
Aform: _components_Aform__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
60740
60749
|
},
|
|
60741
60750
|
props: {
|
|
60742
|
-
visible: {
|
|
60743
|
-
type: Boolean,
|
|
60744
|
-
default: () => false
|
|
60745
|
-
},
|
|
60746
|
-
title: {
|
|
60747
|
-
type: String,
|
|
60748
|
-
default: () => '编辑'
|
|
60749
|
-
},
|
|
60750
|
-
width: {
|
|
60751
|
-
type: String,
|
|
60752
|
-
default: () => '600px'
|
|
60753
|
-
},
|
|
60754
60751
|
rule: {
|
|
60755
60752
|
type: Boolean,
|
|
60756
60753
|
default: () => true
|
|
@@ -60764,10 +60761,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60764
60761
|
default: () => true
|
|
60765
60762
|
},
|
|
60766
60763
|
config: {
|
|
60767
|
-
type: Array,
|
|
60768
|
-
default: () => []
|
|
60769
|
-
},
|
|
60770
|
-
object: {
|
|
60771
60764
|
type: Object,
|
|
60772
60765
|
default: () => ({})
|
|
60773
60766
|
},
|
|
@@ -60787,34 +60780,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60787
60780
|
type: String,
|
|
60788
60781
|
default: () => '取消'
|
|
60789
60782
|
},
|
|
60790
|
-
loading: {
|
|
60791
|
-
type: Boolean,
|
|
60792
|
-
default: () => false
|
|
60793
|
-
},
|
|
60794
60783
|
labelPosition: {
|
|
60795
60784
|
type: String,
|
|
60796
60785
|
default: () => 'top'
|
|
60797
60786
|
}
|
|
60798
60787
|
},
|
|
60799
|
-
methods: {
|
|
60800
|
-
finish(form) {
|
|
60801
|
-
this.$emit('finish', form);
|
|
60802
|
-
},
|
|
60803
|
-
submit(form) {
|
|
60804
|
-
this.$emit('submit', form);
|
|
60805
|
-
},
|
|
60806
|
-
cancel(form) {
|
|
60807
|
-
this.$emit('cancel', form);
|
|
60808
|
-
}
|
|
60809
|
-
},
|
|
60810
60788
|
render() {
|
|
60811
60789
|
const h = arguments[0];
|
|
60812
60790
|
const {
|
|
60813
60791
|
rule,
|
|
60814
60792
|
rules,
|
|
60815
|
-
action,
|
|
60816
60793
|
config,
|
|
60817
|
-
object,
|
|
60818
60794
|
values,
|
|
60819
60795
|
finishText,
|
|
60820
60796
|
submitText,
|
|
@@ -60822,21 +60798,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60822
60798
|
labelPosition
|
|
60823
60799
|
} = this.$props;
|
|
60824
60800
|
const {
|
|
60801
|
+
title = '编辑',
|
|
60802
|
+
width = '600px',
|
|
60803
|
+
visible = false,
|
|
60804
|
+
loading = false,
|
|
60825
60805
|
...props
|
|
60826
60806
|
} = this.$attrs;
|
|
60807
|
+
const {
|
|
60808
|
+
finish,
|
|
60809
|
+
submit,
|
|
60810
|
+
cancel
|
|
60811
|
+
} = this.$listeners;
|
|
60827
60812
|
return h("div", {
|
|
60828
60813
|
"class": this.loading ? 'a-modal loading' : 'a-modal'
|
|
60829
60814
|
}, [h("el-dialog", {
|
|
60830
60815
|
"attrs": {
|
|
60831
|
-
"visible":
|
|
60832
|
-
"title":
|
|
60833
|
-
"width":
|
|
60816
|
+
"visible": visible,
|
|
60817
|
+
"title": title,
|
|
60818
|
+
"width": width,
|
|
60834
60819
|
"lock-scroll": true,
|
|
60835
60820
|
"destroy-on-close": true,
|
|
60836
60821
|
"close-on-click-modal": false
|
|
60837
60822
|
},
|
|
60838
60823
|
"on": {
|
|
60839
|
-
"close":
|
|
60824
|
+
"close": cancel
|
|
60840
60825
|
},
|
|
60841
60826
|
"props": {
|
|
60842
60827
|
...props
|
|
@@ -60845,23 +60830,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60845
60830
|
"class": "a-modal-body"
|
|
60846
60831
|
}, [h(_components_Aform__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
|
60847
60832
|
"attrs": {
|
|
60833
|
+
"cols": "1",
|
|
60848
60834
|
"size": "mini",
|
|
60849
60835
|
"rule": rule,
|
|
60850
60836
|
"rules": rules,
|
|
60851
|
-
"
|
|
60852
|
-
"object": config && config.length > 0 ? {} : object,
|
|
60853
|
-
"config": config && config.length > 0 ? config : [],
|
|
60837
|
+
"config": config,
|
|
60854
60838
|
"values": values,
|
|
60839
|
+
"loading": loading,
|
|
60855
60840
|
"finishText": finishText,
|
|
60856
60841
|
"submitText": submitText,
|
|
60857
60842
|
"cancelText": cancelText,
|
|
60858
|
-
"loading": this.loading,
|
|
60859
60843
|
"labelPosition": labelPosition
|
|
60860
60844
|
},
|
|
60861
60845
|
"on": {
|
|
60862
|
-
"finish":
|
|
60863
|
-
"submit":
|
|
60864
|
-
"cancel":
|
|
60846
|
+
"finish": finish,
|
|
60847
|
+
"submit": submit,
|
|
60848
|
+
"cancel": cancel
|
|
60865
60849
|
}
|
|
60866
60850
|
})]), this.$slots.default, h("div", {
|
|
60867
60851
|
"class": this.action ? 'a-modal-foot custom' : ''
|
|
@@ -132360,12 +132344,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132360
132344
|
},
|
|
132361
132345
|
gutter: {
|
|
132362
132346
|
type: String,
|
|
132363
|
-
default: () => '
|
|
132347
|
+
default: () => '16'
|
|
132364
132348
|
},
|
|
132365
132349
|
config: {
|
|
132366
132350
|
type: Object,
|
|
132367
132351
|
default: () => ({})
|
|
132368
132352
|
},
|
|
132353
|
+
values: {
|
|
132354
|
+
type: Object,
|
|
132355
|
+
default: () => ({})
|
|
132356
|
+
},
|
|
132369
132357
|
global: {
|
|
132370
132358
|
type: Boolean,
|
|
132371
132359
|
default: () => false
|
|
@@ -132382,14 +132370,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132382
132370
|
};
|
|
132383
132371
|
},
|
|
132384
132372
|
watch: {
|
|
132385
|
-
|
|
132386
|
-
|
|
132373
|
+
config: {
|
|
132374
|
+
immediate: true,
|
|
132375
|
+
deep: true,
|
|
132376
|
+
handler() {
|
|
132377
|
+
this.relate(this.config);
|
|
132378
|
+
}
|
|
132379
|
+
},
|
|
132380
|
+
values: {
|
|
132381
|
+
immediate: true,
|
|
132382
|
+
deep: true,
|
|
132383
|
+
handler() {
|
|
132384
|
+
this.relate(this.config);
|
|
132385
|
+
}
|
|
132387
132386
|
}
|
|
132388
132387
|
},
|
|
132389
132388
|
created() {
|
|
132390
132389
|
this.relate(this.config);
|
|
132391
132390
|
},
|
|
132392
|
-
mounted() {},
|
|
132393
132391
|
methods: {
|
|
132394
132392
|
input() {
|
|
132395
132393
|
this.$emit('input', this.filter());
|
|
@@ -132398,6 +132396,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132398
132396
|
this.$emit('change', this.filter(), this.form, this.option);
|
|
132399
132397
|
},
|
|
132400
132398
|
relate(config = {}) {
|
|
132399
|
+
let data = {};
|
|
132401
132400
|
Object.keys(config).forEach(a => {
|
|
132402
132401
|
let {
|
|
132403
132402
|
...r
|
|
@@ -132406,12 +132405,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132406
132405
|
if (child && Object.keys(child).length > 0) {
|
|
132407
132406
|
this.relate(child);
|
|
132408
132407
|
} else {
|
|
132409
|
-
|
|
132408
|
+
if (r.type == 'password') {
|
|
132409
|
+
data[a] = '';
|
|
132410
|
+
} else {
|
|
132411
|
+
if (this.values[a] != undefined) {
|
|
132412
|
+
data[a] = `${this.values[a]}`;
|
|
132413
|
+
} else if (r.default) {
|
|
132414
|
+
data[a] = r.default;
|
|
132415
|
+
}
|
|
132416
|
+
}
|
|
132410
132417
|
}
|
|
132411
132418
|
});
|
|
132412
|
-
this
|
|
132413
|
-
Object.keys(this.value).forEach(a => typeof this.value[a] == 'number' && (this.form[a] = `${this.value[a]}`));
|
|
132414
|
-
});
|
|
132419
|
+
this.form = data;
|
|
132415
132420
|
},
|
|
132416
132421
|
create(a, b) {
|
|
132417
132422
|
const h = this.$createElement;
|
|
@@ -132480,9 +132485,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132480
132485
|
let {
|
|
132481
132486
|
...r
|
|
132482
132487
|
} = child[c];
|
|
132488
|
+
let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
|
|
132489
|
+
let style = {
|
|
132490
|
+
padding: `0 ${space}px`
|
|
132491
|
+
};
|
|
132492
|
+
r.type = r.type ? r.type : a.type;
|
|
132483
132493
|
if (r.span) {
|
|
132484
132494
|
return h("el-col", {
|
|
132485
132495
|
"key": d,
|
|
132496
|
+
"style": style,
|
|
132486
132497
|
"attrs": {
|
|
132487
132498
|
"span": Number(r.span)
|
|
132488
132499
|
}
|
|
@@ -132492,7 +132503,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132492
132503
|
return h("el-col", {
|
|
132493
132504
|
"key": d,
|
|
132494
132505
|
"style": {
|
|
132495
|
-
width
|
|
132506
|
+
width,
|
|
132507
|
+
...style
|
|
132496
132508
|
}
|
|
132497
132509
|
}, [this.format(r, c)]);
|
|
132498
132510
|
}
|
|
@@ -132502,6 +132514,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132502
132514
|
change: () => this.change(),
|
|
132503
132515
|
form: this.form,
|
|
132504
132516
|
field: b,
|
|
132517
|
+
clearable: !a.default,
|
|
132505
132518
|
...a
|
|
132506
132519
|
};
|
|
132507
132520
|
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
@@ -132574,9 +132587,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132574
132587
|
labelWidth = 'auto',
|
|
132575
132588
|
labelPosition = 'top',
|
|
132576
132589
|
finishText = '保存',
|
|
132577
|
-
submitText = '
|
|
132590
|
+
submitText = '提交',
|
|
132578
132591
|
rejectText = '驳回',
|
|
132579
|
-
cancelText = '
|
|
132592
|
+
cancelText = '取消',
|
|
132580
132593
|
action = [],
|
|
132581
132594
|
...rest
|
|
132582
132595
|
} = this.$attrs;
|
|
@@ -132617,15 +132630,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132617
132630
|
"gutter": Number(this.gutter)
|
|
132618
132631
|
},
|
|
132619
132632
|
"class": "main-rows"
|
|
132620
|
-
}, [Object.keys(this.config).map((a, b) => this.create(a, b))])]), (finish || submit || reject || cancel || action.length > 0) && h("
|
|
132621
|
-
"attrs": {
|
|
132622
|
-
"name": "action",
|
|
132623
|
-
"label": "action"
|
|
132624
|
-
},
|
|
132633
|
+
}, [Object.keys(this.config).map((a, b) => this.create(a, b))])]), (finish || submit || reject || cancel || action.length > 0) && h("div", {
|
|
132625
132634
|
"class": "action",
|
|
132626
132635
|
"style": {
|
|
132627
132636
|
paddingLeft: `${this.gutter}px`
|
|
132628
132637
|
}
|
|
132638
|
+
}, [h("el-form-item", {
|
|
132639
|
+
"attrs": {
|
|
132640
|
+
"name": "action",
|
|
132641
|
+
"label": "action"
|
|
132642
|
+
}
|
|
132629
132643
|
}, [finish && h("el-button", {
|
|
132630
132644
|
"attrs": {
|
|
132631
132645
|
"disabled": loading,
|
|
@@ -132662,8 +132676,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132662
132676
|
"key": b,
|
|
132663
132677
|
"attrs": {
|
|
132664
132678
|
"disabled": loading
|
|
132679
|
+
},
|
|
132680
|
+
"on": {
|
|
132681
|
+
"click": e => a.click(this.filter(), this.form, this.option, e)
|
|
132665
132682
|
}
|
|
132666
|
-
}, a]), [a.label || a.title || a.text || '']))])])]);
|
|
132683
|
+
}, a]), [a.label || a.title || a.text || '']))])])])]);
|
|
132667
132684
|
}
|
|
132668
132685
|
});
|
|
132669
132686
|
|
|
@@ -134411,6 +134428,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134411
134428
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
134412
134429
|
name: 'AfEditor',
|
|
134413
134430
|
props: {
|
|
134431
|
+
value: {
|
|
134432
|
+
type: Object,
|
|
134433
|
+
default: () => ({})
|
|
134434
|
+
},
|
|
134414
134435
|
must: {
|
|
134415
134436
|
type: Boolean,
|
|
134416
134437
|
default: () => false
|
|
@@ -134425,7 +134446,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134425
134446
|
},
|
|
134426
134447
|
gutter: {
|
|
134427
134448
|
type: String,
|
|
134428
|
-
default: () => '
|
|
134449
|
+
default: () => '16'
|
|
134429
134450
|
},
|
|
134430
134451
|
config: {
|
|
134431
134452
|
type: Object,
|
|
@@ -134446,15 +134467,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134446
134467
|
},
|
|
134447
134468
|
data() {
|
|
134448
134469
|
return {
|
|
134449
|
-
form: this.
|
|
134450
|
-
option: {}
|
|
134451
|
-
opened: false,
|
|
134452
|
-
height: 'auto'
|
|
134470
|
+
form: this.value,
|
|
134471
|
+
option: {}
|
|
134453
134472
|
};
|
|
134454
134473
|
},
|
|
134455
134474
|
watch: {
|
|
134456
|
-
|
|
134457
|
-
|
|
134475
|
+
config: {
|
|
134476
|
+
immediate: true,
|
|
134477
|
+
deep: true,
|
|
134478
|
+
handler() {
|
|
134479
|
+
this.relate(this.config);
|
|
134480
|
+
}
|
|
134458
134481
|
}
|
|
134459
134482
|
},
|
|
134460
134483
|
created() {
|
|
@@ -134469,6 +134492,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134469
134492
|
this.$emit('change', this.filter(), this.form, this.option);
|
|
134470
134493
|
},
|
|
134471
134494
|
relate(config = {}) {
|
|
134495
|
+
let data = {};
|
|
134472
134496
|
Object.keys(config).forEach(a => {
|
|
134473
134497
|
let {
|
|
134474
134498
|
...r
|
|
@@ -134477,12 +134501,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134477
134501
|
if (child && Object.keys(child).length > 0) {
|
|
134478
134502
|
this.relate(child);
|
|
134479
134503
|
} else {
|
|
134480
|
-
|
|
134504
|
+
if (r.type == 'password') {
|
|
134505
|
+
data[a] = '';
|
|
134506
|
+
} else {
|
|
134507
|
+
if (this.values[a] != undefined) {
|
|
134508
|
+
data[a] = `${this.values[a]}`;
|
|
134509
|
+
} else if (r.default) {
|
|
134510
|
+
data[a] = r.default;
|
|
134511
|
+
}
|
|
134512
|
+
}
|
|
134481
134513
|
}
|
|
134482
134514
|
});
|
|
134483
|
-
this
|
|
134484
|
-
Object.keys(this.values).forEach(a => typeof this.values[a] == 'number' && (this.form[a] = `${this.values[a]}`));
|
|
134485
|
-
});
|
|
134515
|
+
this.form = data;
|
|
134486
134516
|
},
|
|
134487
134517
|
create(a, b) {
|
|
134488
134518
|
const h = this.$createElement;
|
|
@@ -134551,9 +134581,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134551
134581
|
let {
|
|
134552
134582
|
...r
|
|
134553
134583
|
} = child[c];
|
|
134584
|
+
let space = a.gutter ? a.gutter / 2 : this.gutter / 4;
|
|
134585
|
+
let style = {
|
|
134586
|
+
padding: `0 ${space}px`
|
|
134587
|
+
};
|
|
134588
|
+
r.type = r.type ? r.type : a.type;
|
|
134554
134589
|
if (r.span) {
|
|
134555
134590
|
return h("el-col", {
|
|
134556
134591
|
"key": d,
|
|
134592
|
+
"style": style,
|
|
134557
134593
|
"attrs": {
|
|
134558
134594
|
"span": Number(r.span)
|
|
134559
134595
|
}
|
|
@@ -134563,7 +134599,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134563
134599
|
return h("el-col", {
|
|
134564
134600
|
"key": d,
|
|
134565
134601
|
"style": {
|
|
134566
|
-
width
|
|
134602
|
+
width,
|
|
134603
|
+
...style
|
|
134567
134604
|
}
|
|
134568
134605
|
}, [this.format(r, c)]);
|
|
134569
134606
|
}
|
|
@@ -134573,6 +134610,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134573
134610
|
change: () => this.change(),
|
|
134574
134611
|
form: this.form,
|
|
134575
134612
|
field: b,
|
|
134613
|
+
clearable: !a.default,
|
|
134576
134614
|
...a
|
|
134577
134615
|
};
|
|
134578
134616
|
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_1__["default"], {
|
|
@@ -134645,7 +134683,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134645
134683
|
labelWidth = 'auto',
|
|
134646
134684
|
labelPosition = 'top',
|
|
134647
134685
|
finishText = '保存',
|
|
134648
|
-
submitText = '
|
|
134686
|
+
submitText = '提交',
|
|
134649
134687
|
rejectText = '驳回',
|
|
134650
134688
|
cancelText = '取消',
|
|
134651
134689
|
action = [],
|
|
@@ -134686,12 +134724,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134686
134724
|
"gutter": Number(this.gutter)
|
|
134687
134725
|
},
|
|
134688
134726
|
"class": "main-rows"
|
|
134689
|
-
}, [Object.keys(this.config).map((a, b) => this.create(a, b)), this.$slots.default]), (finish || submit || reject || cancel || action.length > 0) && h("
|
|
134727
|
+
}, [Object.keys(this.config).map((a, b) => this.create(a, b)), this.$slots.default]), (finish || submit || reject || cancel || action.length > 0) && h("div", {
|
|
134728
|
+
"class": "action"
|
|
134729
|
+
}, [h("el-form-item", {
|
|
134690
134730
|
"attrs": {
|
|
134691
134731
|
"name": "action",
|
|
134692
134732
|
"label": "action"
|
|
134693
|
-
}
|
|
134694
|
-
"class": "action"
|
|
134733
|
+
}
|
|
134695
134734
|
}, [finish && h("el-button", {
|
|
134696
134735
|
"attrs": {
|
|
134697
134736
|
"disabled": loading,
|
|
@@ -134728,8 +134767,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
134728
134767
|
"key": b,
|
|
134729
134768
|
"attrs": {
|
|
134730
134769
|
"disabled": loading
|
|
134770
|
+
},
|
|
134771
|
+
"on": {
|
|
134772
|
+
"click": e => a.click(this.filter(), this.form, this.option, e)
|
|
134731
134773
|
}
|
|
134732
|
-
}, a]), [a.label || a.title || a.text || '']))])])]);
|
|
134774
|
+
}, a]), [a.label || a.title || a.text || '']))])])])]);
|
|
134733
134775
|
}
|
|
134734
134776
|
});
|
|
134735
134777
|
|
|
@@ -136831,7 +136873,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136831
136873
|
|
|
136832
136874
|
|
|
136833
136875
|
|
|
136834
|
-
|
|
136835
136876
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
136836
136877
|
name: 'Atable',
|
|
136837
136878
|
components: {
|
|
@@ -136845,6 +136886,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136845
136886
|
Apopconfirm: _components_Apopconfirm__WEBPACK_IMPORTED_MODULE_8__["default"]
|
|
136846
136887
|
},
|
|
136847
136888
|
props: {
|
|
136889
|
+
id: {
|
|
136890
|
+
type: String,
|
|
136891
|
+
default: () => `id-a-table-${Math.random()}`
|
|
136892
|
+
},
|
|
136848
136893
|
margin: {
|
|
136849
136894
|
type: String,
|
|
136850
136895
|
default: () => '0'
|
|
@@ -136893,7 +136938,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136893
136938
|
type: Object,
|
|
136894
136939
|
default: () => ({})
|
|
136895
136940
|
},
|
|
136896
|
-
|
|
136941
|
+
height: {
|
|
136897
136942
|
type: String,
|
|
136898
136943
|
default: () => '480'
|
|
136899
136944
|
},
|
|
@@ -136979,11 +137024,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
136979
137024
|
type: Boolean,
|
|
136980
137025
|
default: () => true
|
|
136981
137026
|
},
|
|
137027
|
+
pages: {
|
|
137028
|
+
type: Object,
|
|
137029
|
+
default: () => ({})
|
|
137030
|
+
},
|
|
136982
137031
|
page: {
|
|
136983
137032
|
type: Boolean,
|
|
136984
137033
|
default: () => true
|
|
136985
137034
|
}
|
|
136986
137035
|
},
|
|
137036
|
+
data() {
|
|
137037
|
+
return {
|
|
137038
|
+
maxHeight: this.height
|
|
137039
|
+
};
|
|
137040
|
+
},
|
|
136987
137041
|
mounted() {
|
|
136988
137042
|
this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
|
|
136989
137043
|
},
|
|
@@ -137022,7 +137076,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137022
137076
|
}
|
|
137023
137077
|
}, [h("template", {
|
|
137024
137078
|
"slot": "header"
|
|
137025
|
-
}, [header ? () => header(r) : label && label != '' && label.length
|
|
137079
|
+
}, [header ? () => header(r) : label && label != '' && label.length > 8 ? h("el-tooltip", {
|
|
137026
137080
|
"attrs": {
|
|
137027
137081
|
"content": label,
|
|
137028
137082
|
"placement": "top"
|
|
@@ -137047,12 +137101,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137047
137101
|
handle,
|
|
137048
137102
|
remove
|
|
137049
137103
|
} = this.$listeners;
|
|
137050
|
-
if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
|
|
137104
|
+
if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export || this.action.length > 0) {
|
|
137051
137105
|
return {
|
|
137052
137106
|
fixed: 'right',
|
|
137053
137107
|
align: 'center',
|
|
137054
137108
|
width: this.actionWidth,
|
|
137055
137109
|
label: this.actionTitle,
|
|
137110
|
+
showOverflowTooltip: false,
|
|
137056
137111
|
formatter: item => h("div", {
|
|
137057
137112
|
"class": "action"
|
|
137058
137113
|
}, [review && h("i", {
|
|
@@ -137091,7 +137146,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137091
137146
|
}), this.action.map((a, b) => h("el-button", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137092
137147
|
"key": b,
|
|
137093
137148
|
"on": {
|
|
137094
|
-
"click": e => a.click
|
|
137149
|
+
"click": e => a.click(item, e)
|
|
137095
137150
|
}
|
|
137096
137151
|
}, a]), [a.label || a.title || a.text]))])
|
|
137097
137152
|
};
|
|
@@ -137134,58 +137189,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137134
137189
|
this.$emit('change', pages);
|
|
137135
137190
|
this.search(pages);
|
|
137136
137191
|
},
|
|
137137
|
-
format({
|
|
137138
|
-
type = '',
|
|
137139
|
-
name = '',
|
|
137140
|
-
data = [],
|
|
137141
|
-
text = '',
|
|
137142
|
-
label = '',
|
|
137143
|
-
title = '',
|
|
137144
|
-
field = '',
|
|
137145
|
-
dicts = [],
|
|
137146
|
-
...props
|
|
137147
|
-
}, colIndex, item, rowIndex) {
|
|
137192
|
+
format(a, b, c, d) {
|
|
137148
137193
|
const h = this.$createElement;
|
|
137149
|
-
|
|
137150
|
-
if (field != '') return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137151
|
-
"key": colIndex + '-' + rowIndex,
|
|
137152
|
-
"attrs": {
|
|
137153
|
-
"field": field,
|
|
137154
|
-
"data": dicts.length > 0 ? dicts : data
|
|
137155
|
-
}
|
|
137156
|
-
}, props, {
|
|
137157
|
-
"model": {
|
|
137158
|
-
value: item[field],
|
|
137159
|
-
callback: $$v => {
|
|
137160
|
-
this.$set(item, field, $$v);
|
|
137161
|
-
}
|
|
137162
|
-
}
|
|
137163
|
-
}]));
|
|
137164
|
-
return h(_components_Aenume__WEBPACK_IMPORTED_MODULE_3__["default"], _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137165
|
-
"key": colIndex + '-' + rowIndex,
|
|
137166
|
-
"attrs": {
|
|
137167
|
-
"field": name,
|
|
137168
|
-
"data": dicts.length > 0 ? dicts : data
|
|
137169
|
-
}
|
|
137170
|
-
}, props, {
|
|
137171
|
-
"model": {
|
|
137172
|
-
value: item[name],
|
|
137173
|
-
callback: $$v => {
|
|
137174
|
-
this.$set(item, name, $$v);
|
|
137175
|
-
}
|
|
137176
|
-
}
|
|
137177
|
-
}]));
|
|
137178
|
-
}
|
|
137194
|
+
let field = a.field || a.index || a.name || a.prop;
|
|
137179
137195
|
return h(_components_AformItem__WEBPACK_IMPORTED_MODULE_6__["default"], {
|
|
137180
|
-
"key":
|
|
137196
|
+
"key": b + '-' + d,
|
|
137181
137197
|
"attrs": {
|
|
137182
137198
|
"config": {
|
|
137183
|
-
|
|
137184
|
-
|
|
137185
|
-
|
|
137186
|
-
field: field != '' ? field : name != '' ? name : '',
|
|
137187
|
-
label: text != '' ? text : label != '' ? label : title != '' ? title : '无栏目名称',
|
|
137188
|
-
...props
|
|
137199
|
+
form: c,
|
|
137200
|
+
field,
|
|
137201
|
+
...a
|
|
137189
137202
|
}
|
|
137190
137203
|
}
|
|
137191
137204
|
});
|
|
@@ -137208,9 +137221,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137208
137221
|
},
|
|
137209
137222
|
render() {
|
|
137210
137223
|
const h = arguments[0];
|
|
137211
|
-
const {
|
|
137212
|
-
...props
|
|
137213
|
-
} = this.$attrs;
|
|
137214
137224
|
const {
|
|
137215
137225
|
...r
|
|
137216
137226
|
} = this.record;
|
|
@@ -137219,11 +137229,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137219
137229
|
const {
|
|
137220
137230
|
pageParams = {}
|
|
137221
137231
|
} = this.$store.state;
|
|
137232
|
+
const {
|
|
137233
|
+
...props
|
|
137234
|
+
} = this.$attrs;
|
|
137222
137235
|
return h("div", {
|
|
137223
137236
|
"class": this.border ? 'a-table' : 'a-table border'
|
|
137224
137237
|
}, [h("el-table", {
|
|
137225
137238
|
"ref": "a-table",
|
|
137226
137239
|
"attrs": {
|
|
137240
|
+
"id": this.id,
|
|
137227
137241
|
"data": data,
|
|
137228
137242
|
"size": this.size,
|
|
137229
137243
|
"border": this.border,
|
|
@@ -137272,7 +137286,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137272
137286
|
"attrs": {
|
|
137273
137287
|
"description": this.emptyText
|
|
137274
137288
|
}
|
|
137275
|
-
})])]), !this.tree && this.page && data.length > 0 && h(_components_Apages__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
137289
|
+
})])]), !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()([{
|
|
137276
137290
|
"attrs": {
|
|
137277
137291
|
"total": Number(size),
|
|
137278
137292
|
"pages": pageParams
|
|
@@ -137280,7 +137294,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
137280
137294
|
"on": {
|
|
137281
137295
|
"change": this.change
|
|
137282
137296
|
}
|
|
137283
|
-
}
|
|
137297
|
+
}, {
|
|
137298
|
+
"props": this.pages
|
|
137299
|
+
}]))]);
|
|
137284
137300
|
}
|
|
137285
137301
|
});
|
|
137286
137302
|
|
|
@@ -159160,7 +159176,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
159160
159176
|
},
|
|
159161
159177
|
height: {
|
|
159162
159178
|
type: String,
|
|
159163
|
-
default: () => '
|
|
159179
|
+
default: () => '68vh'
|
|
159164
159180
|
},
|
|
159165
159181
|
loading: {
|
|
159166
159182
|
type: Boolean,
|