element-ui-root 2.0.6 → 2.0.8

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.umd.js CHANGED
@@ -12882,11 +12882,6 @@ var map = {
12882
12882
  "./Aform/AfSearch/index.css": "2667",
12883
12883
  "./Aform/AfSearch/index.js": "1b78",
12884
12884
  "./Aform/BfSearch": "fc0d",
12885
- "./Aform/BfSearch copy": "6a90",
12886
- "./Aform/BfSearch copy/": "6a90",
12887
- "./Aform/BfSearch copy/index": "6a90",
12888
- "./Aform/BfSearch copy/index.css": "9a62",
12889
- "./Aform/BfSearch copy/index.js": "6a90",
12890
12885
  "./Aform/BfSearch/": "fc0d",
12891
12886
  "./Aform/BfSearch/index": "fc0d",
12892
12887
  "./Aform/BfSearch/index.css": "a261",
@@ -13270,7 +13265,7 @@ __webpack_require__.r(__webpack_exports__);
13270
13265
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2667");
13271
13266
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
13272
13267
 
13273
- // const AformItem = () => import('@/components/AformItem');
13268
+
13274
13269
 
13275
13270
  const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("2234")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
13276
13271
 
@@ -13341,10 +13336,6 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
13341
13336
  this.create();
13342
13337
  },
13343
13338
 
13344
- destroyed() {
13345
- this.cancel();
13346
- },
13347
-
13348
13339
  watch: {
13349
13340
  values() {
13350
13341
  this.create();
@@ -18434,7 +18425,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
18434
18425
 
18435
18426
  created() {
18436
18427
  this.create();
18437
- this.search();
18428
+ this.$nextTick(() => this.search());
18438
18429
  },
18439
18430
 
18440
18431
  methods: {
@@ -24032,16 +24023,13 @@ let jsComponents = __webpack_require__("5814").keys();
24032
24023
 
24033
24024
  let components = [...vueComponents, ...jsComponents];
24034
24025
  let modules = [];
24026
+ if (components && components.length > 0) components.forEach((a, b) => {
24027
+ let module = __webpack_require__("1b03")(`./${a.split('./').join('')}`);
24035
24028
 
24036
- if (components && components.length > 0) {
24037
- components.forEach((a, b) => {
24038
- let module = __webpack_require__("1b03")(`./${a.split('./').join('')}`);
24039
-
24040
- if (module && module.default && module.default.name) {
24041
- modules[b] = module.default;
24042
- }
24043
- });
24044
- }
24029
+ if (module && module.default && module.default.name) {
24030
+ modules[b] = module.default;
24031
+ }
24032
+ });
24045
24033
 
24046
24034
  const install = Vue => modules.length > 0 && modules.map(a => Vue.component(a.name, a));
24047
24035
 
@@ -35870,7 +35858,6 @@ var map = {
35870
35858
  "./Aenume/index.js": "6cc8",
35871
35859
  "./Aform/AfEditor/index.js": "b550",
35872
35860
  "./Aform/AfSearch/index.js": "1b78",
35873
- "./Aform/BfSearch copy/index.js": "6a90",
35874
35861
  "./Aform/BfSearch/index.js": "fc0d",
35875
35862
  "./Aform/index.js": "aff6",
35876
35863
  "./AformItem/index.js": "2234",
@@ -43982,349 +43969,6 @@ module.exports = _default;
43982
43969
 
43983
43970
  /***/ }),
43984
43971
 
43985
- /***/ "6a90":
43986
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
43987
-
43988
- "use strict";
43989
- __webpack_require__.r(__webpack_exports__);
43990
- /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4c02");
43991
- /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
43992
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9a62");
43993
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
43994
-
43995
- // const AformItem = () => import('@/components/AformItem');
43996
-
43997
- const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("2234")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
43998
-
43999
- /* harmony default export */ __webpack_exports__["default"] = ({
44000
- name: 'BfSearch',
44001
- props: {
44002
- size: {
44003
- type: String,
44004
- default: () => 'small'
44005
- },
44006
- inline: {
44007
- type: Boolean,
44008
- default: () => false
44009
- },
44010
- cols: {
44011
- type: String,
44012
- default: () => '5'
44013
- },
44014
- labelWidth: {
44015
- type: String,
44016
- default: () => 'auto'
44017
- },
44018
- labelPosition: {
44019
- type: String,
44020
- default: () => 'left'
44021
- },
44022
- config: {
44023
- type: Object,
44024
- default: () => ({})
44025
- },
44026
- values: {
44027
- type: Object,
44028
- default: () => ({})
44029
- },
44030
- label: {
44031
- type: Boolean,
44032
- default: () => true
44033
- },
44034
- verify: {
44035
- type: Boolean,
44036
- default: () => true
44037
- },
44038
- loading: {
44039
- type: Boolean,
44040
- default: () => false
44041
- },
44042
- submitText: {
44043
- type: String,
44044
- default: () => '搜索'
44045
- },
44046
- cancelText: {
44047
- type: String,
44048
- default: () => '重置'
44049
- }
44050
- },
44051
-
44052
- data() {
44053
- return {
44054
- form: {},
44055
- opened: false
44056
- };
44057
- },
44058
-
44059
- created() {
44060
- this.create();
44061
- },
44062
-
44063
- destroyed() {
44064
- this.cancel();
44065
- },
44066
-
44067
- watch: {
44068
- values() {
44069
- this.create();
44070
- }
44071
-
44072
- },
44073
- methods: {
44074
- create() {
44075
- // 创建表单
44076
- if (this.config && Object.keys(this.config).length > 0) {
44077
- // 格式化表单配置对象(this.config)为数据双向绑定对象
44078
- let data = {};
44079
-
44080
- for (let a in this.config) data[a] = this.config[a].default ? this.config[a].default : '';
44081
-
44082
- this.form = data;
44083
- }
44084
- },
44085
-
44086
- submit() {
44087
- // 提交表单
44088
- let pass = !this.verify; // 判断是否是空表单
44089
-
44090
- for (let a in this.form) if (this.form[a] != '') pass = true;
44091
-
44092
- let data = {};
44093
-
44094
- if (Object.keys(this.config).length > 0) {
44095
- // 格式化属性为模糊查询属性
44096
- for (let a in this.config) {
44097
- if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
44098
-
44099
- if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
44100
- data[`${a}LE`] = this.form[`${a}LE`];
44101
- data[`${a}GE`] = this.form[`${a}GE`];
44102
- } else data[a] = this.form[a];
44103
- }
44104
- }
44105
-
44106
- if (pass) {
44107
- const {
44108
- pageParams
44109
- } = this.$store.state;
44110
- this.$store.commit('changeFormParams', this.filter(data)); // 添加查询参数
44111
-
44112
- this.$store.commit('changePageParams', { ...pageParams,
44113
- page: 1
44114
- }); // 重置分页参数
44115
-
44116
- this.$emit('submit', { ...this.filter(data),
44117
- ...pageParams,
44118
- page: 1
44119
- }); // 派发事件并重置当前分页
44120
-
44121
- return data;
44122
- }
44123
- },
44124
-
44125
- cancel() {
44126
- // 重置表单
44127
- let pass = !this.verify; // 判断是否是空表单
44128
-
44129
- for (let a in this.form) if (this.form[a] != '') pass = true;
44130
-
44131
- if (pass) {
44132
- const {
44133
- pageParams
44134
- } = this.$store.state;
44135
- this.$store.commit('changePageParams', { ...pageParams,
44136
- page: 1,
44137
- size: 10
44138
- }); // 重置分页参数
44139
-
44140
- this.$store.commit('changeFormParams', {}); // 重置查询参数
44141
-
44142
- for (let a in this.form) this.form[a] = '';
44143
-
44144
- this.$emit('cancel', this.form);
44145
- }
44146
- },
44147
-
44148
- filter(form) {
44149
- // 过滤空值属性
44150
- const data = {};
44151
-
44152
- for (let a in form) {
44153
- if (form[a] != '' && form[a] != '%%' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
44154
- }
44155
-
44156
- return data;
44157
- },
44158
-
44159
- result() {
44160
- // 返回验证后的表单数据
44161
- return this.submit();
44162
- },
44163
-
44164
- switch() {
44165
- this.opened = !this.opened;
44166
- },
44167
-
44168
- prompt(a = {}, index = 0, placeholder = '') {
44169
- if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
44170
- return placeholder;
44171
- },
44172
-
44173
- format(a = {}, field = '', placeholder = '') {
44174
- const h = this.$createElement;
44175
-
44176
- if (Object.keys(a).length > 0) {
44177
- let config = {
44178
- size: this.config[a].size ? this.config[a].size : this.size,
44179
- field: field != '' ? field : `${a}`,
44180
- disabled: this.loading,
44181
- form: this.form,
44182
- ...this.config[a]
44183
- };
44184
- if (placeholder != '') return h(AformItem, {
44185
- "attrs": {
44186
- "config": { ...config,
44187
- placeholder
44188
- }
44189
- }
44190
- });
44191
- return h(AformItem, {
44192
- "attrs": {
44193
- "config": config
44194
- }
44195
- });
44196
- }
44197
- }
44198
-
44199
- },
44200
-
44201
- render() {
44202
- const h = arguments[0];
44203
- const {
44204
- submit,
44205
- cancel
44206
- } = this.$listeners;
44207
- return Object.keys(this.config).length > 0 && h("keep-alive", [h("div", {
44208
- "class": "b-f-search"
44209
- }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
44210
- "ref": "form",
44211
- "attrs": {
44212
- "size": this.size,
44213
- "inline": this.inline
44214
- }
44215
- }, {
44216
- "props": {
44217
- model: this.form
44218
- }
44219
- }, {
44220
- "attrs": {
44221
- "labelWidth": this.labelWidth,
44222
- "labelPosition": this.labelPosition
44223
- }
44224
- }]), [h("div", {
44225
- "class": "column"
44226
- }, [h("div", {
44227
- "class": "main-row"
44228
- }, [h("el-row", {
44229
- "attrs": {
44230
- "gutter": 20
44231
- },
44232
- "class": this.cols != '' ? 'custom-cols' : ''
44233
- }, [Object.keys(this.config).map((a, b) => {
44234
- if (this.cols != '' ? b < this.cols : b < 24 / this.cols) {
44235
- return h("el-col", {
44236
- "key": b,
44237
- "attrs": {
44238
- "span": this.span != '' ? null : this.cols
44239
- },
44240
- "style": {
44241
- width: this.cols != '' ? `${100 / this.cols}%` : null
44242
- }
44243
- }, [h("el-form-item", {
44244
- "attrs": {
44245
- "prop": `${a}`,
44246
- "label": this.label ? this.config[a]['text'] : ''
44247
- }
44248
- }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
44249
- "class": "range-cols"
44250
- }, [h("el-col", {
44251
- "attrs": {
44252
- "span": 12
44253
- }
44254
- }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
44255
- "attrs": {
44256
- "span": 12
44257
- }
44258
- }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
44259
- }
44260
- })])]), h("div", {
44261
- "class": this.opened ? 'fold-row open' : 'fold-row'
44262
- }, [h("el-row", {
44263
- "attrs": {
44264
- "gutter": 20
44265
- },
44266
- "class": this.cols != '' ? 'custom-cols' : ''
44267
- }, [Object.keys(this.config).map((a, b) => {
44268
- if (this.cols != '' ? b > this.cols : b > 24 / this.cols - 1) {
44269
- return h("el-col", {
44270
- "key": b,
44271
- "attrs": {
44272
- "span": this.cols != '' ? null : this.cols
44273
- },
44274
- "style": {
44275
- width: this.cols != '' ? `${100 / this.cols}%` : null
44276
- }
44277
- }, [h("el-form-item", {
44278
- "attrs": {
44279
- "prop": `${a}`,
44280
- "label": this.label ? this.config[a]['text'] : ''
44281
- }
44282
- }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
44283
- "class": "range-cols"
44284
- }, [h("el-col", {
44285
- "attrs": {
44286
- "span": 12
44287
- }
44288
- }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
44289
- "attrs": {
44290
- "span": 12
44291
- }
44292
- }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
44293
- }
44294
- })])])]), (Object.keys(this.config).length > 24 / this.cols || submit || cancel) && h("el-form-item", {
44295
- "class": "action"
44296
- }, [Object.keys(this.config).length > 24 / this.cols && h("el-button", {
44297
- "attrs": {
44298
- "type": "text"
44299
- },
44300
- "class": "collapse-button",
44301
- "on": {
44302
- "click": () => this.switch()
44303
- }
44304
- }, [h("i", {
44305
- "class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
44306
- }), this.opened ? '收起' : '展开']), submit && h("el-button", {
44307
- "attrs": {
44308
- "disabled": this.loading,
44309
- "type": "primary"
44310
- },
44311
- "on": {
44312
- "click": () => this.submit(this.filter(this.form))
44313
- }
44314
- }, [this.submitText]), cancel && h("el-button", {
44315
- "attrs": {
44316
- "disabled": this.loading
44317
- },
44318
- "on": {
44319
- "click": () => this.cancel(this.filter(this.form))
44320
- }
44321
- }, [this.cancelText])])])])]);
44322
- }
44323
-
44324
- });
44325
-
44326
- /***/ }),
44327
-
44328
43972
  /***/ "6b23":
44329
43973
  /***/ (function(module, exports, __webpack_require__) {
44330
43974
 
@@ -61553,13 +61197,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADD
61553
61197
 
61554
61198
  /***/ }),
61555
61199
 
61556
- /***/ "9a62":
61557
- /***/ (function(module, exports, __webpack_require__) {
61558
-
61559
- // extracted by mini-css-extract-plugin
61560
-
61561
- /***/ }),
61562
-
61563
61200
  /***/ "9a6a":
61564
61201
  /***/ (function(module, exports, __webpack_require__) {
61565
61202
 
@@ -135500,11 +135137,11 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
135500
135137
 
135501
135138
  created() {
135502
135139
  this.create();
135140
+ this.$nextTick(() => this.search());
135503
135141
  },
135504
135142
 
135505
135143
  mounted() {
135506
135144
  this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
135507
- this.$nextTick(() => this.search());
135508
135145
  },
135509
135146
 
135510
135147
  methods: {
@@ -166198,7 +165835,7 @@ __webpack_require__.r(__webpack_exports__);
166198
165835
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("a261");
166199
165836
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
166200
165837
 
166201
- // const AformItem = () => import('@/components/AformItem');
165838
+
166202
165839
 
166203
165840
  const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__("2234")]; (a).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);
166204
165841
 
@@ -166270,10 +165907,6 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
166270
165907
  this.create();
166271
165908
  },
166272
165909
 
166273
- destroyed() {
166274
- this.cancel();
166275
- },
166276
-
166277
165910
  watch: {
166278
165911
  values() {
166279
165912
  this.create();