eoss-ui 0.5.69 → 0.5.70

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.
Files changed (61) hide show
  1. package/lib/button-group.js +34 -36
  2. package/lib/button.js +34 -36
  3. package/lib/checkbox-group.js +70 -56
  4. package/lib/data-table-form.js +37 -39
  5. package/lib/data-table.js +58 -58
  6. package/lib/date-picker.js +34 -36
  7. package/lib/dialog.js +49 -51
  8. package/lib/eoss-ui.common.js +660 -562
  9. package/lib/flow-group.js +34 -36
  10. package/lib/flow-list.js +36 -38
  11. package/lib/flow.js +40 -42
  12. package/lib/form.js +410 -376
  13. package/lib/handle-user.js +36 -38
  14. package/lib/handler.js +34 -36
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +34 -36
  17. package/lib/input.js +65 -48
  18. package/lib/layout.js +2 -2
  19. package/lib/login.js +54 -55
  20. package/lib/main.js +39 -41
  21. package/lib/menu.js +4 -3
  22. package/lib/nav.js +34 -36
  23. package/lib/page.js +34 -36
  24. package/lib/player.js +34 -36
  25. package/lib/qr-code.js +34 -36
  26. package/lib/radio-group.js +69 -53
  27. package/lib/retrial-auth.js +34 -36
  28. package/lib/select-ganged.js +122 -106
  29. package/lib/select.js +112 -96
  30. package/lib/selector-panel.js +90 -76
  31. package/lib/selector.js +34 -36
  32. package/lib/sizer.js +36 -38
  33. package/lib/steps.js +60 -44
  34. package/lib/switch.js +34 -36
  35. package/lib/table-form.js +36 -38
  36. package/lib/tabs.js +34 -36
  37. package/lib/tips.js +59 -42
  38. package/lib/tree-group.js +34 -36
  39. package/lib/tree.js +93 -77
  40. package/lib/upload.js +111 -94
  41. package/lib/utils/util.js +34 -36
  42. package/lib/wujie.js +34 -36
  43. package/lib/wxlogin.js +34 -36
  44. package/package.json +2 -2
  45. package/packages/checkbox-group/src/main.vue +7 -1
  46. package/packages/data-table/src/main.vue +3 -1
  47. package/packages/dialog/src/main.vue +2 -3
  48. package/packages/form/src/main.vue +11 -2
  49. package/packages/input/src/main.vue +8 -1
  50. package/packages/login/src/main.vue +15 -11
  51. package/packages/menu/src/main.vue +2 -1
  52. package/packages/radio-group/src/main.vue +7 -1
  53. package/packages/select/src/main.vue +7 -1
  54. package/packages/select-ganged/src/main.vue +7 -1
  55. package/packages/selector-panel/src/main.vue +7 -1
  56. package/packages/steps/src/main.vue +9 -3
  57. package/packages/tips/src/main.vue +8 -1
  58. package/packages/tree/src/main.vue +8 -2
  59. package/packages/upload/src/main.vue +11 -2
  60. package/src/index.js +1 -1
  61. package/src/utils/util.js +34 -34
package/lib/wxlogin.js CHANGED
@@ -154,21 +154,17 @@ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ store
154
154
  * @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
155
155
  **/
156
156
  // 请求
157
- var pendingRequest = new Map();
158
- function getRequestKey(config) {
159
- var method = config.method,
160
- url = config.url,
161
- params = config.params,
162
- data = config.data;
163
-
164
- return [method, url, qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(params), qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data)].join('&');
165
- };
166
- function delPendingRequest(config) {
167
- var requestKey = getRequestKey(config);
168
- if (pendingRequest.has(requestKey)) {
169
- pendingRequest.delete(requestKey);
170
- }
171
- }
157
+ // const pendingRequest = new Map();
158
+ // function getRequestKey(config) {
159
+ // const { method, url, params, data } = config;
160
+ // return [method, url, qs.stringify(params), qs.stringify(data)].join('&');
161
+ // };
162
+ // function delPendingRequest(config) {
163
+ // let requestKey = getRequestKey(config);
164
+ // if (pendingRequest.has(requestKey)) {
165
+ // pendingRequest.delete(requestKey);
166
+ // }
167
+ // }
172
168
  var ajax = function ajax(_ref) {
173
169
  var headers = _ref.headers,
174
170
  method = _ref.method,
@@ -217,30 +213,32 @@ var ajax = function ajax(_ref) {
217
213
  http.interceptors.request.use(function (config) {
218
214
  config.headers.common = getStorage();
219
215
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
220
- var requestKey = getRequestKey(config);
221
- // 判断请求是否重复
222
- if (pendingRequest.has(requestKey)) {
223
- // 取消上次请求
224
- var cancel = pendingRequest.get(requestKey);
225
- cancel();
226
- // 删除请求信息
227
- pendingRequest.delete(requestKey);
228
- }
229
- // 把请求信息,添加请求到map当中
230
- // 生成取消方法
231
- config.cancelToken = config.cancelToken || new axios__WEBPACK_IMPORTED_MODULE_1___default.a.CancelToken(function (cancel) {
232
- // 把取消方法添加到map
233
- if (!pendingRequest.has(requestKey)) {
234
- pendingRequest.set(requestKey, cancel);
235
- }
236
- });
216
+ // let requestKey = getRequestKey(config);
217
+ // // 判断请求是否重复
218
+ // if (pendingRequest.has(requestKey)) {
219
+ // // 取消上次请求
220
+ // let cancel = pendingRequest.get(requestKey);
221
+ // cancel();
222
+ // // 删除请求信息
223
+ // pendingRequest.delete(requestKey);
224
+ // }
225
+ // // 把请求信息,添加请求到map当中
226
+ // // 生成取消方法
227
+ // config.cancelToken =
228
+ // config.cancelToken ||
229
+ // new axios.CancelToken(cancel => {
230
+ // // 把取消方法添加到map
231
+ // if (!pendingRequest.has(requestKey)) {
232
+ // pendingRequest.set(requestKey, cancel);
233
+ // }
234
+ // });
237
235
  return config;
238
236
  }, function (err) {
239
237
  return err;
240
238
  });
241
239
  // 响应拦截
242
240
  http.interceptors.response.use(function (response) {
243
- delPendingRequest(response.config);
241
+ // delPendingRequest(response.config);
244
242
  loading && loading.close();
245
243
  if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
246
244
  if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
@@ -357,9 +355,9 @@ var ajax = function ajax(_ref) {
357
355
  }
358
356
  }, function (error) {
359
357
  loading && loading.close();
360
- if (!axios__WEBPACK_IMPORTED_MODULE_1___default.a.isCancel(error)) {
361
- delPendingRequest(error.config || {});
362
- }
358
+ // if (!axios.isCancel(error)) {
359
+ // delPendingRequest(error.config || {});
360
+ // }
363
361
  if (error && error.response) {
364
362
  if (error.response.status) {
365
363
  switch (error.response.status) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.5.69",
3
+ "version": "0.5.70",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -97,7 +97,7 @@
97
97
  "cp-cli": "^1.0.2",
98
98
  "cross-env": "^3.1.3",
99
99
  "css-loader": "^2.1.0",
100
- "eoss-element": "^0.2.97",
100
+ "eoss-element": "^0.2.98",
101
101
  "es6-promise": "^4.0.5",
102
102
  "eslint": "4.18.2",
103
103
  "eslint-config-elemefe": "0.1.1",
@@ -55,6 +55,7 @@
55
55
 
56
56
  <script>
57
57
  import { findSysCode, getDictList } from 'eoss-ui/src/config/api.js';
58
+ import { debounce } from 'throttle-debounce';
58
59
  import store from 'eoss-ui/src/utils/store';
59
60
  import util from 'eoss-ui/src/utils/util';
60
61
  import bus from 'eoss-ui/src/utils/bus';
@@ -239,12 +240,17 @@ export default {
239
240
  }
240
241
  }
241
242
  },
243
+ beforeCreate() {
244
+ this.getData = debounce(300, (url, sysCode) => {
245
+ this.getDatas(url, sysCode);
246
+ });
247
+ },
242
248
  created() {
243
249
  this.bindEventBus();
244
250
  },
245
251
  mounted() {},
246
252
  methods: {
247
- getData(url, sysCode) {
253
+ getDatas(url, sysCode) {
248
254
  let params = {};
249
255
  if (this.results.length === 0) {
250
256
  params = util.extend(
@@ -721,10 +721,12 @@ export default {
721
721
  }
722
722
  }
723
723
  },
724
- created() {
724
+ beforeCreate() {
725
725
  this.getTableData = debounce(300, (res) => {
726
726
  this.getTableDatas(res);
727
727
  });
728
+ },
729
+ created() {
728
730
  if (Array.isArray(this.thead) && this.thead.length) {
729
731
  this.getOptions(this.thead);
730
732
  }
@@ -10,13 +10,11 @@
10
10
  :drag="drag"
11
11
  :modal-append-to-body="modalAppendToBody"
12
12
  v-bind="$attrs"
13
- v-on="$listeners"
13
+ v-on="{ ...$listeners, close: handleClosed, scale: handleScale }"
14
14
  :class="{ 'is-middle': middle }"
15
15
  :append-to-body="appendToBody"
16
16
  :id="wujieName"
17
17
  :ref="wujieName"
18
- @close="handleClosed"
19
- @scale="handleScale"
20
18
  >
21
19
  <slot></slot>
22
20
  <template v-if="contents">
@@ -449,6 +447,7 @@ export default {
449
447
  this.show = false;
450
448
  this.$emit('close', res, this);
451
449
  if (this.closeParent && this.esDialog) {
450
+ console.log(12121);
452
451
  this.esDialog.handleClosed(res);
453
452
  }
454
453
  },
@@ -4002,6 +4002,7 @@
4002
4002
  </template>
4003
4003
  <script>
4004
4004
  import { formContents } from 'eoss-ui/src/config/api.js';
4005
+ import { debounce } from 'throttle-debounce';
4005
4006
  import util from 'eoss-ui/src/utils/util';
4006
4007
  import rules from 'eoss-ui/src/utils/rules.js';
4007
4008
  export default {
@@ -4506,6 +4507,14 @@ export default {
4506
4507
  }
4507
4508
  }
4508
4509
  },
4510
+ beforeCreate() {
4511
+ this.getContent = debounce(300, () => {
4512
+ this.getContents();
4513
+ });
4514
+ this.getValue = debounce(300, () => {
4515
+ this.getValues();
4516
+ });
4517
+ },
4509
4518
  created() {
4510
4519
  this.dialog =
4511
4520
  window.$wujie && window.$wujie.props
@@ -4548,7 +4557,7 @@ export default {
4548
4557
  }
4549
4558
  return this.getParentHeight(dom.parentNode);
4550
4559
  },
4551
- getContent() {
4560
+ getContents() {
4552
4561
  if (
4553
4562
  typeof this.contents === 'string' ||
4554
4563
  (util.isObject(this.contents) &&
@@ -4649,7 +4658,7 @@ export default {
4649
4658
  }
4650
4659
  }
4651
4660
  },
4652
- getValue() {
4661
+ getValues() {
4653
4662
  if (typeof this.model === 'string') {
4654
4663
  this.loading = true;
4655
4664
  let param = this.paramId
@@ -1,4 +1,5 @@
1
1
  <script>
2
+ import { debounce } from 'throttle-debounce';
2
3
  import util from 'eoss-ui/src/utils/util';
3
4
  import rules from 'eoss-ui/src/utils/rules.js';
4
5
  export default {
@@ -127,9 +128,15 @@ export default {
127
128
  return undefined;
128
129
  }
129
130
  },
131
+ beforeCreate() {
132
+ this.getData = debounce(300, (query, callback, isChange) => {
133
+ this.getDatas(query, callback, isChange);
134
+ });
135
+ },
136
+ created() {},
130
137
  mounted() {},
131
138
  methods: {
132
- getData(query, callback, isChange) {
139
+ getDatas(query, callback, isChange) {
133
140
  if (typeof this.url && this.results.length === 0) {
134
141
  util
135
142
  .ajax({
@@ -30,7 +30,7 @@
30
30
  <i
31
31
  v-for="(item, index) in icons"
32
32
  v-show="switchs > 2 || active != item.type"
33
- @click="switchLogin(item.type)"
33
+ @click="switchLogin(item)"
34
34
  :title="switchs > 2 ? item.name : ''"
35
35
  :key="index"
36
36
  :class="[
@@ -378,10 +378,6 @@ export default {
378
378
  type: String,
379
379
  default: 'default'
380
380
  },
381
- title: {
382
- type: String,
383
- default: '账号登录'
384
- },
385
381
  param: {
386
382
  type: Object,
387
383
  default() {
@@ -635,11 +631,7 @@ export default {
635
631
  6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
636
632
  7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
637
633
  9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
638
- 11: {
639
- type: '11',
640
- icon: 'es-icon-wodeyouxiang',
641
- name: '邮箱登录'
642
- },
634
+ 11: { type: '11', icon: 'es-icon-wodeyouxiang', name: '邮箱登录' },
643
635
  12: { type: '12', icon: 'es-icon-jianpan', name: '账号登录' } //双因素
644
636
  };
645
637
  },
@@ -671,6 +663,7 @@ export default {
671
663
  immediate: true,
672
664
  handler(val) {
673
665
  this.active = val.split(',')[0];
666
+ this.title = this.iconfonts[this.active].name;
674
667
  }
675
668
  },
676
669
  active: {
@@ -719,6 +712,7 @@ export default {
719
712
  },
720
713
  data() {
721
714
  return {
715
+ title: '',
722
716
  align: this.position,
723
717
  loginBackgroundImg: this.loginBackground,
724
718
  loginMainImg: this.loginImage,
@@ -789,12 +783,17 @@ export default {
789
783
  document.addEventListener('keyup', this.doLogin);
790
784
  document.addEventListener('keydown', this.forbiddenTab);
791
785
  }
786
+ this.init();
792
787
  },
793
788
  mounted() {
794
789
  this.getRemember();
795
790
  delete util.win.websocket;
796
791
  },
797
792
  methods: {
793
+ init() {
794
+ let loginBoxAlign = localStorage.getItem('loginBoxAlign');
795
+ loginBoxAlign && (this.align = loginBoxAlign);
796
+ },
798
797
  doWechatLogin(code) {
799
798
  util
800
799
  .ajax({
@@ -948,7 +947,8 @@ export default {
948
947
  //this.$refs.login && this.$refs.login.resetFields();
949
948
  this.$refs.login && this.$refs.login.clearValidate();
950
949
  if (res != 1) {
951
- this.active = res;
950
+ this.active = res.type;
951
+ this.title = res.name;
952
952
  Object.keys(this.defaultModel).length &&
953
953
  (this.formData = JSON.parse(JSON.stringify(this.defaultModel)));
954
954
  }
@@ -1050,6 +1050,10 @@ export default {
1050
1050
  this.loginNameImg = res.subsystemExtend.loginBoxName;
1051
1051
  }
1052
1052
  if (res.subsystemExtend.loginBoxAlign && this.useResults) {
1053
+ localStorage.setItem(
1054
+ 'loginBoxAlign',
1055
+ res.subsystemExtend.loginBoxAlign
1056
+ );
1053
1057
  this.align = res.subsystemExtend.loginBoxAlign;
1054
1058
  }
1055
1059
  if (res.subsystemExtend.copyrightColor) {
@@ -78,11 +78,12 @@ export default {
78
78
  isChange: false
79
79
  };
80
80
  },
81
- created() {
81
+ beforeCreate() {
82
82
  this.getMaxWidth = debounce(300, () => {
83
83
  this.getWidth();
84
84
  });
85
85
  },
86
+ created() {},
86
87
  mounted() {
87
88
  this.getMaxWidth();
88
89
  },
@@ -56,6 +56,7 @@
56
56
 
57
57
  <script>
58
58
  import { findSysCode, getDictList } from 'eoss-ui/src/config/api.js';
59
+ import { debounce } from 'throttle-debounce';
59
60
  import store from 'eoss-ui/src/utils/store';
60
61
  import util from 'eoss-ui/src/utils/util';
61
62
  import bus from 'eoss-ui/src/utils/bus';
@@ -228,12 +229,17 @@ export default {
228
229
  }
229
230
  }
230
231
  },
232
+ beforeCreate() {
233
+ this.getData = debounce(300, (url, sysCode) => {
234
+ this.getDatas(url, sysCode);
235
+ });
236
+ },
231
237
  created() {
232
238
  this.bindEventBus();
233
239
  },
234
240
  mounted() {},
235
241
  methods: {
236
- getData(url, sysCode) {
242
+ getDatas(url, sysCode) {
237
243
  let params = {};
238
244
  if (this.results.length === 0) {
239
245
  params = util.extend(
@@ -1,5 +1,6 @@
1
1
  <script>
2
2
  import { findSysCode, getDictList } from 'eoss-ui/src/config/api.js';
3
+ import { debounce } from 'throttle-debounce';
3
4
  import store from 'eoss-ui/src/utils/store';
4
5
  import util from 'eoss-ui/src/utils/util';
5
6
  import bus from 'eoss-ui/src/utils/bus';
@@ -231,6 +232,11 @@ export default {
231
232
  }
232
233
  }
233
234
  },
235
+ beforeCreate() {
236
+ this.getData = debounce(300, (sysCode, param, reload) => {
237
+ this.getDatas(sysCode, param, reload);
238
+ });
239
+ },
234
240
  created() {
235
241
  this.bindEventBus();
236
242
  },
@@ -327,7 +333,7 @@ export default {
327
333
  });
328
334
  return eles;
329
335
  },
330
- getData(sysCode, param, reload) {
336
+ getDatas(sysCode, param, reload) {
331
337
  if (
332
338
  !reload &&
333
339
  (!this.ajax ||
@@ -1,5 +1,6 @@
1
1
  <script>
2
2
  import { findSysCode, getDictList } from 'eoss-ui/src/config/api.js';
3
+ import { debounce } from 'throttle-debounce';
3
4
  import util from 'eoss-ui/src/utils/util';
4
5
  export default {
5
6
  name: 'EsSelectGanged',
@@ -233,12 +234,17 @@ export default {
233
234
  }
234
235
  }
235
236
  },
237
+ beforeCreate() {
238
+ this.getData = debounce(300, () => {
239
+ this.getDatas();
240
+ });
241
+ },
236
242
  created() {
237
243
  this.getData();
238
244
  },
239
245
  mounted() {},
240
246
  methods: {
241
- getData() {
247
+ getDatas() {
242
248
  if (!this.integrality || !this.url) {
243
249
  return false;
244
250
  }
@@ -109,6 +109,7 @@ import {
109
109
  getSelectorOrgTree,
110
110
  getSelectorOrgDetail
111
111
  } from 'eoss-ui/src/config/api.js';
112
+ import { debounce } from 'throttle-debounce';
112
113
  import util from 'eoss-ui/src/utils/util.js';
113
114
  export default {
114
115
  name: 'EsSelectorPanel',
@@ -601,12 +602,17 @@ export default {
601
602
  this.trees[this.activeName].value = val;
602
603
  }
603
604
  },
605
+ beforeCreate() {
606
+ this.ajaxActive = debounce(300, (active) => {
607
+ this.getAjaxActive(active);
608
+ });
609
+ },
604
610
  created() {},
605
611
  mounted() {
606
612
  this.ajaxActive(this.activeName);
607
613
  },
608
614
  methods: {
609
- ajaxActive(active) {
615
+ getAjaxActive(active) {
610
616
  if (this.isShowTree) {
611
617
  if (
612
618
  (!this.trees[active].data ||
@@ -66,6 +66,7 @@
66
66
  </template>
67
67
  <script>
68
68
  import util from 'eoss-ui/src/utils/util.js';
69
+ import { debounce } from 'throttle-debounce';
69
70
  export default {
70
71
  name: 'EsSteps',
71
72
  inheritAttrs: false,
@@ -128,12 +129,17 @@ export default {
128
129
  }
129
130
  }
130
131
  },
132
+ beforeCreate() {
133
+ this.getData = debounce(300, () => {
134
+ this.getDatas();
135
+ });
136
+ },
131
137
  created() {
132
138
  this.getData();
133
139
  },
134
140
  mounted() {},
135
141
  methods: {
136
- getData() {
142
+ getDatas() {
137
143
  if (this.url) {
138
144
  let param = this.param ? this.param : {};
139
145
  util
@@ -143,7 +149,7 @@ export default {
143
149
  data: param,
144
150
  params: param
145
151
  })
146
- .then(res => {
152
+ .then((res) => {
147
153
  if (res.rCode === 0) {
148
154
  if (this.esForm) {
149
155
  this.esForm.stepContent = JSON.parse(
@@ -154,7 +160,7 @@ export default {
154
160
  }
155
161
  }
156
162
  })
157
- .catch(err => {
163
+ .catch((err) => {
158
164
  if (err.message && err.message !== 'canceled') {
159
165
  this.$message.error(err.message);
160
166
  }
@@ -17,6 +17,7 @@
17
17
  </template>
18
18
  <script>
19
19
  import { gethelpdoc } from 'eoss-ui/src/config/api.js';
20
+ import { debounce } from 'throttle-debounce';
20
21
  import util from 'eoss-ui/src/utils/util.js';
21
22
  export default {
22
23
  name: 'EsTips',
@@ -100,13 +101,19 @@ export default {
100
101
  }
101
102
  }
102
103
  },
104
+ beforeCreate() {
105
+ this.getTips = debounce(300, () => {
106
+ this.getTipsData();
107
+ });
108
+ },
109
+ created() {},
103
110
  mounted() {
104
111
  if (this.url && !this.contents && JSON.stringify(this.param) !== '{}') {
105
112
  this.getTips();
106
113
  }
107
114
  },
108
115
  methods: {
109
- getTips() {
116
+ getTipsData() {
110
117
  util
111
118
  .ajax({
112
119
  url: this.url,
@@ -88,6 +88,7 @@
88
88
 
89
89
  <script>
90
90
  import { getOrgMainTree } from 'eoss-ui/src/config/api.js';
91
+ import { debounce } from 'throttle-debounce';
91
92
  import util from 'eoss-ui/src/utils/util';
92
93
  export default {
93
94
  name: 'EsTree',
@@ -366,11 +367,16 @@ export default {
366
367
  }
367
368
  }
368
369
  },
370
+ beforeCreate() {
371
+ this.getTreeData = debounce(300, (param) => {
372
+ this.getTreeDatas(param);
373
+ });
374
+ },
369
375
  created() {
370
376
  if (Object.prototype.hasOwnProperty.call(this.search, 'value')) {
371
377
  this.searchValue = this.search.value;
372
378
  }
373
- this.getTreeData();
379
+ this.getTreeData(param);
374
380
  },
375
381
  mounted() {},
376
382
  methods: {
@@ -386,7 +392,7 @@ export default {
386
392
  }
387
393
  },
388
394
  //获取树节点
389
- getTreeData(param) {
395
+ getTreeDatas(param) {
390
396
  this.loading = true;
391
397
  let params = util.extend({}, this.param, this.where, param);
392
398
  if (!this.url || !this.isRemote) return;
@@ -189,6 +189,7 @@ import {
189
189
  delAdjunct,
190
190
  downloadByAdjunctId
191
191
  } from 'eoss-ui/src/config/api.js';
192
+ import { debounce } from 'throttle-debounce';
192
193
  import util from 'eoss-ui/src/utils/util.js';
193
194
  import picture from './picture.js';
194
195
  import store from 'eoss-ui/src/utils/store';
@@ -675,6 +676,14 @@ export default {
675
676
  val && this.getHeight();
676
677
  }
677
678
  },
679
+ beforeCreate() {
680
+ this.getFiles = debounce(300, (params) => {
681
+ this.getFileLists(params);
682
+ });
683
+ this.getAdjunctPropertie = debounce(300, () => {
684
+ this.getAdjunctProperties();
685
+ });
686
+ },
678
687
  created() {
679
688
  this.getAdjunctPropertie();
680
689
  },
@@ -697,7 +706,7 @@ export default {
697
706
  }
698
707
  },
699
708
  //根据code获取附件参数配置
700
- getAdjunctPropertie() {
709
+ getAdjunctProperties() {
701
710
  if (this.code !== undefined) {
702
711
  let config = store.get(this.code);
703
712
  if (config) {
@@ -748,7 +757,7 @@ export default {
748
757
  }
749
758
  }
750
759
  },
751
- getFiles(params) {
760
+ getFileLists(params) {
752
761
  if (
753
762
  !this.show ||
754
763
  (this.fileList &&
package/src/index.js CHANGED
@@ -121,7 +121,7 @@ if (typeof window !== 'undefined' && window.Vue) {
121
121
  }
122
122
 
123
123
  export default {
124
- version: '0.5.69',
124
+ version: '0.5.70',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,