element-ui-root 1.6.1 → 1.6.5
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 +82 -30
- package/dist/index.css +1 -1
- package/dist/index.umd.js +82 -30
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -14560,10 +14560,16 @@ var AformItem = function AformItem(a) {
|
|
|
14560
14560
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
14561
14561
|
name: 'AfSearch',
|
|
14562
14562
|
props: {
|
|
14563
|
+
margin: {
|
|
14564
|
+
type: String,
|
|
14565
|
+
default: function _default() {
|
|
14566
|
+
return '0';
|
|
14567
|
+
}
|
|
14568
|
+
},
|
|
14563
14569
|
size: {
|
|
14564
14570
|
type: String,
|
|
14565
14571
|
default: function _default() {
|
|
14566
|
-
return '
|
|
14572
|
+
return 'small';
|
|
14567
14573
|
}
|
|
14568
14574
|
},
|
|
14569
14575
|
inline: {
|
|
@@ -14611,7 +14617,7 @@ var AformItem = function AformItem(a) {
|
|
|
14611
14617
|
verify: {
|
|
14612
14618
|
type: Boolean,
|
|
14613
14619
|
default: function _default() {
|
|
14614
|
-
return
|
|
14620
|
+
return false;
|
|
14615
14621
|
}
|
|
14616
14622
|
},
|
|
14617
14623
|
loading: {
|
|
@@ -14791,7 +14797,10 @@ var AformItem = function AformItem(a) {
|
|
|
14791
14797
|
|
|
14792
14798
|
var count = Object.keys(this.config).length;
|
|
14793
14799
|
return count > 0 && h("keep-alive", [h("div", {
|
|
14794
|
-
"class": "a-f-search"
|
|
14800
|
+
"class": "a-f-search",
|
|
14801
|
+
"style": {
|
|
14802
|
+
padding: this.margin
|
|
14803
|
+
}
|
|
14795
14804
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
14796
14805
|
"ref": "form",
|
|
14797
14806
|
"attrs": {
|
|
@@ -17307,10 +17316,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17307
17316
|
methods: {
|
|
17308
17317
|
currentChange: function currentChange(page) {
|
|
17309
17318
|
this.pages.page = page;
|
|
17319
|
+
this.$emit('change', this.pages);
|
|
17310
17320
|
this.$emit('changePage', this.pages);
|
|
17311
17321
|
},
|
|
17312
17322
|
sizeChange: function sizeChange(size) {
|
|
17313
17323
|
this.pages.size = size;
|
|
17324
|
+
this.$emit('change', this.pages);
|
|
17314
17325
|
this.$emit('changeSize', this.pages);
|
|
17315
17326
|
}
|
|
17316
17327
|
},
|
|
@@ -19974,12 +19985,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19974
19985
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
19975
19986
|
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("b461");
|
|
19976
19987
|
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
19977
|
-
/* harmony import */ var
|
|
19978
|
-
/* harmony import */ var
|
|
19988
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("f1d3");
|
|
19989
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
19979
19990
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("c639");
|
|
19980
19991
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
19981
|
-
/* harmony import */ var
|
|
19982
|
-
/* harmony import */ var
|
|
19992
|
+
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("8a84");
|
|
19993
|
+
/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
19994
|
+
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("ce2f");
|
|
19995
|
+
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
19983
19996
|
|
|
19984
19997
|
|
|
19985
19998
|
var _excluded = ["form", "text", "label", "title", "field", "dicts", "table"];
|
|
@@ -19992,6 +20005,7 @@ var _excluded = ["form", "text", "label", "title", "field", "dicts", "table"];
|
|
|
19992
20005
|
|
|
19993
20006
|
|
|
19994
20007
|
|
|
20008
|
+
|
|
19995
20009
|
// import Aupload from '@/components/Aupload/Icon';
|
|
19996
20010
|
// import Aeditor from '@/components/Aeditor/WangEditor';
|
|
19997
20011
|
// const AiconSelect = () => import('@/components/AiconSelect');
|
|
@@ -20103,6 +20117,17 @@ var Aupload = function Aupload(a) {
|
|
|
20103
20117
|
|
|
20104
20118
|
var h = this.$createElement;
|
|
20105
20119
|
var words = text || label || title;
|
|
20120
|
+
|
|
20121
|
+
var labels = function labels() {
|
|
20122
|
+
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
20123
|
+
return Object.keys(a).length > 1 ? a.label || a.title || a.name || a.text : a;
|
|
20124
|
+
};
|
|
20125
|
+
|
|
20126
|
+
var values = function values() {
|
|
20127
|
+
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
20128
|
+
return Object.keys(a).length > 1 ? a.value || a.code || a.id : a;
|
|
20129
|
+
};
|
|
20130
|
+
|
|
20106
20131
|
if (!props.type) return h("el-input", {
|
|
20107
20132
|
"attrs": {
|
|
20108
20133
|
"clearable": true,
|
|
@@ -20246,16 +20271,16 @@ var Aupload = function Aupload(a) {
|
|
|
20246
20271
|
return h("el-option", {
|
|
20247
20272
|
"key": b,
|
|
20248
20273
|
"attrs": {
|
|
20249
|
-
"label": a
|
|
20250
|
-
"value": a
|
|
20274
|
+
"label": labels(a),
|
|
20275
|
+
"value": values(a)
|
|
20251
20276
|
}
|
|
20252
20277
|
});
|
|
20253
20278
|
}) : this.option.map(function (a, b) {
|
|
20254
20279
|
return h("el-option", {
|
|
20255
20280
|
"key": b,
|
|
20256
20281
|
"attrs": {
|
|
20257
|
-
"label": a
|
|
20258
|
-
"value": a
|
|
20282
|
+
"label": labels(a),
|
|
20283
|
+
"value": values(a)
|
|
20259
20284
|
}
|
|
20260
20285
|
});
|
|
20261
20286
|
})]);
|
|
@@ -20325,16 +20350,16 @@ var Aupload = function Aupload(a) {
|
|
|
20325
20350
|
return h("el-checkbox", {
|
|
20326
20351
|
"key": b,
|
|
20327
20352
|
"attrs": {
|
|
20328
|
-
"label": a
|
|
20353
|
+
"label": values(a)
|
|
20329
20354
|
}
|
|
20330
|
-
}, [a
|
|
20355
|
+
}, [labels(a)]);
|
|
20331
20356
|
}) : this.dicts.map(function (a, b) {
|
|
20332
20357
|
return h("el-checkbox", {
|
|
20333
20358
|
"key": b,
|
|
20334
20359
|
"attrs": {
|
|
20335
|
-
"label": a
|
|
20360
|
+
"label": values(a)
|
|
20336
20361
|
}
|
|
20337
|
-
}, [a
|
|
20362
|
+
}, [labels(a)]);
|
|
20338
20363
|
})]);
|
|
20339
20364
|
|
|
20340
20365
|
case 'radio':
|
|
@@ -20358,16 +20383,16 @@ var Aupload = function Aupload(a) {
|
|
|
20358
20383
|
return h("el-radio", {
|
|
20359
20384
|
"key": b,
|
|
20360
20385
|
"attrs": {
|
|
20361
|
-
"label": a
|
|
20386
|
+
"label": values(a)
|
|
20362
20387
|
}
|
|
20363
|
-
}, [a
|
|
20388
|
+
}, [labels(a)]);
|
|
20364
20389
|
}) : this.dicts.map(function (a, b) {
|
|
20365
20390
|
return h("el-radio", {
|
|
20366
20391
|
"key": b,
|
|
20367
20392
|
"attrs": {
|
|
20368
|
-
"label": a
|
|
20393
|
+
"label": values(a)
|
|
20369
20394
|
}
|
|
20370
|
-
}, [a
|
|
20395
|
+
}, [labels(a)]);
|
|
20371
20396
|
})]);
|
|
20372
20397
|
|
|
20373
20398
|
case 'switch':
|
|
@@ -47762,7 +47787,7 @@ var AformItem = function AformItem(a) {
|
|
|
47762
47787
|
size: {
|
|
47763
47788
|
type: String,
|
|
47764
47789
|
default: function _default() {
|
|
47765
|
-
return '
|
|
47790
|
+
return 'small';
|
|
47766
47791
|
}
|
|
47767
47792
|
},
|
|
47768
47793
|
inline: {
|
|
@@ -137271,6 +137296,12 @@ var AformItem = function AformItem(a) {
|
|
|
137271
137296
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
137272
137297
|
name: 'Aform',
|
|
137273
137298
|
props: {
|
|
137299
|
+
margin: {
|
|
137300
|
+
type: String,
|
|
137301
|
+
default: function _default() {
|
|
137302
|
+
return '0';
|
|
137303
|
+
}
|
|
137304
|
+
},
|
|
137274
137305
|
pure: {
|
|
137275
137306
|
type: Boolean,
|
|
137276
137307
|
default: function _default() {
|
|
@@ -137286,7 +137317,7 @@ var AformItem = function AformItem(a) {
|
|
|
137286
137317
|
size: {
|
|
137287
137318
|
type: String,
|
|
137288
137319
|
default: function _default() {
|
|
137289
|
-
return '
|
|
137320
|
+
return 'small';
|
|
137290
137321
|
}
|
|
137291
137322
|
},
|
|
137292
137323
|
rules: {
|
|
@@ -137536,7 +137567,10 @@ var AformItem = function AformItem(a) {
|
|
|
137536
137567
|
submit = _this$$listeners.submit,
|
|
137537
137568
|
cancel = _this$$listeners.cancel;
|
|
137538
137569
|
return h("keep-alive", [h("div", {
|
|
137539
|
-
"class": !this.inline ? this.search ? 'a-form' : 'a-from vertical' : 'a-form'
|
|
137570
|
+
"class": !this.inline ? this.search ? 'a-form' : 'a-from vertical' : 'a-form',
|
|
137571
|
+
"style": {
|
|
137572
|
+
padding: this.margin
|
|
137573
|
+
}
|
|
137540
137574
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
137541
137575
|
"ref": "form",
|
|
137542
137576
|
"attrs": {
|
|
@@ -139842,6 +139876,12 @@ var AformItem = function AformItem(a) {
|
|
|
139842
139876
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
139843
139877
|
name: 'AfEditor',
|
|
139844
139878
|
props: {
|
|
139879
|
+
margin: {
|
|
139880
|
+
type: String,
|
|
139881
|
+
default: function _default() {
|
|
139882
|
+
return '0';
|
|
139883
|
+
}
|
|
139884
|
+
},
|
|
139845
139885
|
pure: {
|
|
139846
139886
|
type: Boolean,
|
|
139847
139887
|
default: function _default() {
|
|
@@ -139863,7 +139903,7 @@ var AformItem = function AformItem(a) {
|
|
|
139863
139903
|
size: {
|
|
139864
139904
|
type: String,
|
|
139865
139905
|
default: function _default() {
|
|
139866
|
-
return '
|
|
139906
|
+
return 'small';
|
|
139867
139907
|
}
|
|
139868
139908
|
},
|
|
139869
139909
|
rules: {
|
|
@@ -140142,7 +140182,10 @@ var AformItem = function AformItem(a) {
|
|
|
140142
140182
|
submit = _this$$listeners.submit,
|
|
140143
140183
|
cancel = _this$$listeners.cancel;
|
|
140144
140184
|
return Object.keys(this.config).length > 0 && h("keep-alive", [h("div", {
|
|
140145
|
-
"class": !this.inline ? 'a-f-editor vertical' : 'a-f-editor'
|
|
140185
|
+
"class": !this.inline ? 'a-f-editor vertical' : 'a-f-editor',
|
|
140186
|
+
"style": {
|
|
140187
|
+
padding: this.margin
|
|
140188
|
+
}
|
|
140146
140189
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
140147
140190
|
"ref": "form",
|
|
140148
140191
|
"attrs": {
|
|
@@ -176006,10 +176049,16 @@ var AformItem = function AformItem(a) {
|
|
|
176006
176049
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
176007
176050
|
name: 'BfSearch',
|
|
176008
176051
|
props: {
|
|
176052
|
+
margin: {
|
|
176053
|
+
type: String,
|
|
176054
|
+
default: function _default() {
|
|
176055
|
+
return '0';
|
|
176056
|
+
}
|
|
176057
|
+
},
|
|
176009
176058
|
size: {
|
|
176010
176059
|
type: String,
|
|
176011
176060
|
default: function _default() {
|
|
176012
|
-
return '
|
|
176061
|
+
return 'small';
|
|
176013
176062
|
}
|
|
176014
176063
|
},
|
|
176015
176064
|
inline: {
|
|
@@ -176057,7 +176106,7 @@ var AformItem = function AformItem(a) {
|
|
|
176057
176106
|
verify: {
|
|
176058
176107
|
type: Boolean,
|
|
176059
176108
|
default: function _default() {
|
|
176060
|
-
return
|
|
176109
|
+
return false;
|
|
176061
176110
|
}
|
|
176062
176111
|
},
|
|
176063
176112
|
loading: {
|
|
@@ -176228,7 +176277,7 @@ var AformItem = function AformItem(a) {
|
|
|
176228
176277
|
return h("el-col", {
|
|
176229
176278
|
"key": b,
|
|
176230
176279
|
"attrs": {
|
|
176231
|
-
"span":
|
|
176280
|
+
"span": 24 / this.colSpan
|
|
176232
176281
|
}
|
|
176233
176282
|
}, [h("el-form-item", {
|
|
176234
176283
|
"attrs": {
|
|
@@ -176256,7 +176305,10 @@ var AformItem = function AformItem(a) {
|
|
|
176256
176305
|
submit = _this$$listeners.submit,
|
|
176257
176306
|
cancel = _this$$listeners.cancel;
|
|
176258
176307
|
return Object.keys(this.config).length > 0 && h("keep-alive", [h("div", {
|
|
176259
|
-
"class": "b-f-search"
|
|
176308
|
+
"class": "b-f-search",
|
|
176309
|
+
"style": {
|
|
176310
|
+
padding: this.margin
|
|
176311
|
+
}
|
|
176260
176312
|
}, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
|
|
176261
176313
|
"ref": "form",
|
|
176262
176314
|
"attrs": {
|
|
@@ -176280,14 +176332,14 @@ var AformItem = function AformItem(a) {
|
|
|
176280
176332
|
},
|
|
176281
176333
|
"class": "main-row"
|
|
176282
176334
|
}, [Object.keys(this.config).map(function (a, b) {
|
|
176283
|
-
if (b <
|
|
176335
|
+
if (b < _this.colSpan) return _this.output(a, b);
|
|
176284
176336
|
})]), h("el-row", {
|
|
176285
176337
|
"attrs": {
|
|
176286
176338
|
"gutter": 20
|
|
176287
176339
|
},
|
|
176288
176340
|
"class": this.opened ? 'fold-row open' : 'fold-row'
|
|
176289
176341
|
}, [Object.keys(this.config).map(function (a, b) {
|
|
176290
|
-
if (b >
|
|
176342
|
+
if (b > _this.colSpan - 1) return _this.output(a, b);
|
|
176291
176343
|
})])]), (Object.keys(this.config).length > 24 / this.colSpan || submit || cancel) && h("el-form-item", {
|
|
176292
176344
|
"class": "action",
|
|
176293
176345
|
"attrs": {
|