element-ui-root 2.0.6 → 2.1.0

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.
@@ -12873,11 +12873,6 @@ var map = {
12873
12873
  "./Aform/AfSearch/index.css": "2667",
12874
12874
  "./Aform/AfSearch/index.js": "1b78",
12875
12875
  "./Aform/BfSearch": "fc0d",
12876
- "./Aform/BfSearch copy": "6a90",
12877
- "./Aform/BfSearch copy/": "6a90",
12878
- "./Aform/BfSearch copy/index": "6a90",
12879
- "./Aform/BfSearch copy/index.css": "9a62",
12880
- "./Aform/BfSearch copy/index.js": "6a90",
12881
12876
  "./Aform/BfSearch/": "fc0d",
12882
12877
  "./Aform/BfSearch/index": "fc0d",
12883
12878
  "./Aform/BfSearch/index.css": "a261",
@@ -13261,7 +13256,7 @@ __webpack_require__.r(__webpack_exports__);
13261
13256
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("2667");
13262
13257
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
13263
13258
 
13264
- // const AformItem = () => import('@/components/AformItem');
13259
+
13265
13260
 
13266
13261
  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);
13267
13262
 
@@ -13332,10 +13327,6 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
13332
13327
  this.create();
13333
13328
  },
13334
13329
 
13335
- destroyed() {
13336
- this.cancel();
13337
- },
13338
-
13339
13330
  watch: {
13340
13331
  values() {
13341
13332
  this.create();
@@ -18425,7 +18416,7 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
18425
18416
 
18426
18417
  created() {
18427
18418
  this.create();
18428
- this.search();
18419
+ this.$nextTick(() => this.search());
18429
18420
  },
18430
18421
 
18431
18422
  methods: {
@@ -24023,16 +24014,13 @@ let jsComponents = __webpack_require__("5814").keys();
24023
24014
 
24024
24015
  let components = [...vueComponents, ...jsComponents];
24025
24016
  let modules = [];
24017
+ if (components && components.length > 0) components.forEach((a, b) => {
24018
+ let module = __webpack_require__("1b03")(`./${a.split('./').join('')}`);
24026
24019
 
24027
- if (components && components.length > 0) {
24028
- components.forEach((a, b) => {
24029
- let module = __webpack_require__("1b03")(`./${a.split('./').join('')}`);
24030
-
24031
- if (module && module.default && module.default.name) {
24032
- modules[b] = module.default;
24033
- }
24034
- });
24035
- }
24020
+ if (module && module.default && module.default.name) {
24021
+ modules[b] = module.default;
24022
+ }
24023
+ });
24036
24024
 
24037
24025
  const install = Vue => modules.length > 0 && modules.map(a => Vue.component(a.name, a));
24038
24026
 
@@ -35861,7 +35849,6 @@ var map = {
35861
35849
  "./Aenume/index.js": "6cc8",
35862
35850
  "./Aform/AfEditor/index.js": "b550",
35863
35851
  "./Aform/AfSearch/index.js": "1b78",
35864
- "./Aform/BfSearch copy/index.js": "6a90",
35865
35852
  "./Aform/BfSearch/index.js": "fc0d",
35866
35853
  "./Aform/index.js": "aff6",
35867
35854
  "./AformItem/index.js": "2234",
@@ -43973,349 +43960,6 @@ module.exports = _default;
43973
43960
 
43974
43961
  /***/ }),
43975
43962
 
43976
- /***/ "6a90":
43977
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
43978
-
43979
- "use strict";
43980
- __webpack_require__.r(__webpack_exports__);
43981
- /* harmony import */ var _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4c02");
43982
- /* 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__);
43983
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9a62");
43984
- /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
43985
-
43986
- // const AformItem = () => import('@/components/AformItem');
43987
-
43988
- 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);
43989
-
43990
- /* harmony default export */ __webpack_exports__["default"] = ({
43991
- name: 'BfSearch',
43992
- props: {
43993
- size: {
43994
- type: String,
43995
- default: () => 'small'
43996
- },
43997
- inline: {
43998
- type: Boolean,
43999
- default: () => false
44000
- },
44001
- cols: {
44002
- type: String,
44003
- default: () => '5'
44004
- },
44005
- labelWidth: {
44006
- type: String,
44007
- default: () => 'auto'
44008
- },
44009
- labelPosition: {
44010
- type: String,
44011
- default: () => 'left'
44012
- },
44013
- config: {
44014
- type: Object,
44015
- default: () => ({})
44016
- },
44017
- values: {
44018
- type: Object,
44019
- default: () => ({})
44020
- },
44021
- label: {
44022
- type: Boolean,
44023
- default: () => true
44024
- },
44025
- verify: {
44026
- type: Boolean,
44027
- default: () => true
44028
- },
44029
- loading: {
44030
- type: Boolean,
44031
- default: () => false
44032
- },
44033
- submitText: {
44034
- type: String,
44035
- default: () => '搜索'
44036
- },
44037
- cancelText: {
44038
- type: String,
44039
- default: () => '重置'
44040
- }
44041
- },
44042
-
44043
- data() {
44044
- return {
44045
- form: {},
44046
- opened: false
44047
- };
44048
- },
44049
-
44050
- created() {
44051
- this.create();
44052
- },
44053
-
44054
- destroyed() {
44055
- this.cancel();
44056
- },
44057
-
44058
- watch: {
44059
- values() {
44060
- this.create();
44061
- }
44062
-
44063
- },
44064
- methods: {
44065
- create() {
44066
- // 创建表单
44067
- if (this.config && Object.keys(this.config).length > 0) {
44068
- // 格式化表单配置对象(this.config)为数据双向绑定对象
44069
- let data = {};
44070
-
44071
- for (let a in this.config) data[a] = this.config[a].default ? this.config[a].default : '';
44072
-
44073
- this.form = data;
44074
- }
44075
- },
44076
-
44077
- submit() {
44078
- // 提交表单
44079
- let pass = !this.verify; // 判断是否是空表单
44080
-
44081
- for (let a in this.form) if (this.form[a] != '') pass = true;
44082
-
44083
- let data = {};
44084
-
44085
- if (Object.keys(this.config).length > 0) {
44086
- // 格式化属性为模糊查询属性
44087
- for (let a in this.config) {
44088
- if (this.config[a] != '' && this.config[a].like) data[a] = '%' + this.form[a] + '%';
44089
-
44090
- if (this.config[a] != '' && (this.config[a].than || this.config[a].range || this.config[a].scope)) {
44091
- data[`${a}LE`] = this.form[`${a}LE`];
44092
- data[`${a}GE`] = this.form[`${a}GE`];
44093
- } else data[a] = this.form[a];
44094
- }
44095
- }
44096
-
44097
- if (pass) {
44098
- const {
44099
- pageParams
44100
- } = this.$store.state;
44101
- this.$store.commit('changeFormParams', this.filter(data)); // 添加查询参数
44102
-
44103
- this.$store.commit('changePageParams', { ...pageParams,
44104
- page: 1
44105
- }); // 重置分页参数
44106
-
44107
- this.$emit('submit', { ...this.filter(data),
44108
- ...pageParams,
44109
- page: 1
44110
- }); // 派发事件并重置当前分页
44111
-
44112
- return data;
44113
- }
44114
- },
44115
-
44116
- cancel() {
44117
- // 重置表单
44118
- let pass = !this.verify; // 判断是否是空表单
44119
-
44120
- for (let a in this.form) if (this.form[a] != '') pass = true;
44121
-
44122
- if (pass) {
44123
- const {
44124
- pageParams
44125
- } = this.$store.state;
44126
- this.$store.commit('changePageParams', { ...pageParams,
44127
- page: 1,
44128
- size: 10
44129
- }); // 重置分页参数
44130
-
44131
- this.$store.commit('changeFormParams', {}); // 重置查询参数
44132
-
44133
- for (let a in this.form) this.form[a] = '';
44134
-
44135
- this.$emit('cancel', this.form);
44136
- }
44137
- },
44138
-
44139
- filter(form) {
44140
- // 过滤空值属性
44141
- const data = {};
44142
-
44143
- for (let a in form) {
44144
- if (form[a] != '' && form[a] != '%%' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
44145
- }
44146
-
44147
- return data;
44148
- },
44149
-
44150
- result() {
44151
- // 返回验证后的表单数据
44152
- return this.submit();
44153
- },
44154
-
44155
- switch() {
44156
- this.opened = !this.opened;
44157
- },
44158
-
44159
- prompt(a = {}, index = 0, placeholder = '') {
44160
- if (Object.keys(a).length > 0 && a.placeholder && a.placeholder.length && a.placeholder.length > 0) return a.placeholder[index];
44161
- return placeholder;
44162
- },
44163
-
44164
- format(a = {}, field = '', placeholder = '') {
44165
- const h = this.$createElement;
44166
-
44167
- if (Object.keys(a).length > 0) {
44168
- let config = {
44169
- size: this.config[a].size ? this.config[a].size : this.size,
44170
- field: field != '' ? field : `${a}`,
44171
- disabled: this.loading,
44172
- form: this.form,
44173
- ...this.config[a]
44174
- };
44175
- if (placeholder != '') return h(AformItem, {
44176
- "attrs": {
44177
- "config": { ...config,
44178
- placeholder
44179
- }
44180
- }
44181
- });
44182
- return h(AformItem, {
44183
- "attrs": {
44184
- "config": config
44185
- }
44186
- });
44187
- }
44188
- }
44189
-
44190
- },
44191
-
44192
- render() {
44193
- const h = arguments[0];
44194
- const {
44195
- submit,
44196
- cancel
44197
- } = this.$listeners;
44198
- return Object.keys(this.config).length > 0 && h("keep-alive", [h("div", {
44199
- "class": "b-f-search"
44200
- }, [h("el-form", _vue_babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
44201
- "ref": "form",
44202
- "attrs": {
44203
- "size": this.size,
44204
- "inline": this.inline
44205
- }
44206
- }, {
44207
- "props": {
44208
- model: this.form
44209
- }
44210
- }, {
44211
- "attrs": {
44212
- "labelWidth": this.labelWidth,
44213
- "labelPosition": this.labelPosition
44214
- }
44215
- }]), [h("div", {
44216
- "class": "column"
44217
- }, [h("div", {
44218
- "class": "main-row"
44219
- }, [h("el-row", {
44220
- "attrs": {
44221
- "gutter": 20
44222
- },
44223
- "class": this.cols != '' ? 'custom-cols' : ''
44224
- }, [Object.keys(this.config).map((a, b) => {
44225
- if (this.cols != '' ? b < this.cols : b < 24 / this.cols) {
44226
- return h("el-col", {
44227
- "key": b,
44228
- "attrs": {
44229
- "span": this.span != '' ? null : this.cols
44230
- },
44231
- "style": {
44232
- width: this.cols != '' ? `${100 / this.cols}%` : null
44233
- }
44234
- }, [h("el-form-item", {
44235
- "attrs": {
44236
- "prop": `${a}`,
44237
- "label": this.label ? this.config[a]['text'] : ''
44238
- }
44239
- }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
44240
- "class": "range-cols"
44241
- }, [h("el-col", {
44242
- "attrs": {
44243
- "span": 12
44244
- }
44245
- }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
44246
- "attrs": {
44247
- "span": 12
44248
- }
44249
- }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
44250
- }
44251
- })])]), h("div", {
44252
- "class": this.opened ? 'fold-row open' : 'fold-row'
44253
- }, [h("el-row", {
44254
- "attrs": {
44255
- "gutter": 20
44256
- },
44257
- "class": this.cols != '' ? 'custom-cols' : ''
44258
- }, [Object.keys(this.config).map((a, b) => {
44259
- if (this.cols != '' ? b > this.cols : b > 24 / this.cols - 1) {
44260
- return h("el-col", {
44261
- "key": b,
44262
- "attrs": {
44263
- "span": this.cols != '' ? null : this.cols
44264
- },
44265
- "style": {
44266
- width: this.cols != '' ? `${100 / this.cols}%` : null
44267
- }
44268
- }, [h("el-form-item", {
44269
- "attrs": {
44270
- "prop": `${a}`,
44271
- "label": this.label ? this.config[a]['text'] : ''
44272
- }
44273
- }, [this.config[a].than || this.config[a].range || this.config[a].scope ? h("el-col", {
44274
- "class": "range-cols"
44275
- }, [h("el-col", {
44276
- "attrs": {
44277
- "span": 12
44278
- }
44279
- }, [this.format(a, `${a}LE`, this.prompt(this.config[a], 0, '最高'))]), h("el-col", {
44280
- "attrs": {
44281
- "span": 12
44282
- }
44283
- }, [this.format(a, `${a}GE`, this.prompt(this.config[a], 1, '最低'))])]) : this.format(a)])]);
44284
- }
44285
- })])])]), (Object.keys(this.config).length > 24 / this.cols || submit || cancel) && h("el-form-item", {
44286
- "class": "action"
44287
- }, [Object.keys(this.config).length > 24 / this.cols && h("el-button", {
44288
- "attrs": {
44289
- "type": "text"
44290
- },
44291
- "class": "collapse-button",
44292
- "on": {
44293
- "click": () => this.switch()
44294
- }
44295
- }, [h("i", {
44296
- "class": `el-icon-arrow-${this.opened ? 'up' : 'down'}`
44297
- }), this.opened ? '收起' : '展开']), submit && h("el-button", {
44298
- "attrs": {
44299
- "disabled": this.loading,
44300
- "type": "primary"
44301
- },
44302
- "on": {
44303
- "click": () => this.submit(this.filter(this.form))
44304
- }
44305
- }, [this.submitText]), cancel && h("el-button", {
44306
- "attrs": {
44307
- "disabled": this.loading
44308
- },
44309
- "on": {
44310
- "click": () => this.cancel(this.filter(this.form))
44311
- }
44312
- }, [this.cancelText])])])])]);
44313
- }
44314
-
44315
- });
44316
-
44317
- /***/ }),
44318
-
44319
43963
  /***/ "6b23":
44320
43964
  /***/ (function(module, exports, __webpack_require__) {
44321
43965
 
@@ -61544,13 +61188,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADD
61544
61188
 
61545
61189
  /***/ }),
61546
61190
 
61547
- /***/ "9a62":
61548
- /***/ (function(module, exports, __webpack_require__) {
61549
-
61550
- // extracted by mini-css-extract-plugin
61551
-
61552
- /***/ }),
61553
-
61554
61191
  /***/ "9a6a":
61555
61192
  /***/ (function(module, exports, __webpack_require__) {
61556
61193
 
@@ -135491,11 +135128,11 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
135491
135128
 
135492
135129
  created() {
135493
135130
  this.create();
135131
+ this.$nextTick(() => this.search());
135494
135132
  },
135495
135133
 
135496
135134
  mounted() {
135497
135135
  this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
135498
- this.$nextTick(() => this.search());
135499
135136
  },
135500
135137
 
135501
135138
  methods: {
@@ -135779,7 +135416,7 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
135779
135416
  "row-click": this.choose,
135780
135417
  "selection-change": this.select
135781
135418
  }
135782
- }, [condition && this.selection && h("el-table-column", {
135419
+ }, [condition && this.selection && this.$listeners.select && h("el-table-column", {
135783
135420
  "attrs": {
135784
135421
  "fixed": "left",
135785
135422
  "type": "selection",
@@ -157617,7 +157254,7 @@ __webpack_require__.r(__webpack_exports__);
157617
157254
  },
157618
157255
  height: {
157619
157256
  type: String,
157620
- default: () => '80vh'
157257
+ default: () => '68vh'
157621
157258
  },
157622
157259
  verify: {
157623
157260
  type: Boolean,
@@ -166189,7 +165826,7 @@ __webpack_require__.r(__webpack_exports__);
166189
165826
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("a261");
166190
165827
  /* harmony import */ var _index_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_css__WEBPACK_IMPORTED_MODULE_1__);
166191
165828
 
166192
- // const AformItem = () => import('@/components/AformItem');
165829
+
166193
165830
 
166194
165831
  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);
166195
165832
 
@@ -166261,10 +165898,6 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
166261
165898
  this.create();
166262
165899
  },
166263
165900
 
166264
- destroyed() {
166265
- this.cancel();
166266
- },
166267
-
166268
165901
  watch: {
166269
165902
  values() {
166270
165903
  this.create();