eoss-ui 0.5.68 → 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 (96) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/lib/button-group.js +34 -36
  3. package/lib/button.js +34 -36
  4. package/lib/checkbox-group.js +70 -56
  5. package/lib/data-table-form.js +37 -39
  6. package/lib/data-table.js +73 -64
  7. package/lib/date-picker.js +34 -36
  8. package/lib/dialog.js +49 -51
  9. package/lib/eoss-ui.common.js +944 -728
  10. package/lib/flow-group.js +34 -36
  11. package/lib/flow-list.js +36 -38
  12. package/lib/flow.js +40 -42
  13. package/lib/form.js +410 -376
  14. package/lib/handle-user.js +36 -38
  15. package/lib/handler.js +34 -36
  16. package/lib/icon.js +12 -3593
  17. package/lib/icons.js +1 -1
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +34 -36
  20. package/lib/input.js +65 -48
  21. package/lib/layout.js +2 -2
  22. package/lib/login.js +131 -114
  23. package/lib/main.js +80 -50
  24. package/lib/menu.js +91 -55
  25. package/lib/nav.js +66 -41
  26. package/lib/page.js +34 -36
  27. package/lib/player.js +36 -38
  28. package/lib/qr-code.js +34 -36
  29. package/lib/radio-group.js +69 -53
  30. package/lib/retrial-auth.js +34 -36
  31. package/lib/select-ganged.js +122 -106
  32. package/lib/select.js +112 -96
  33. package/lib/selector-panel.js +90 -76
  34. package/lib/selector.js +34 -36
  35. package/lib/sizer.js +36 -38
  36. package/lib/steps.js +60 -44
  37. package/lib/switch.js +34 -36
  38. package/lib/table-form.js +36 -38
  39. package/lib/tabs.js +34 -36
  40. package/lib/theme-chalk/base.css +1 -1
  41. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  42. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  43. package/lib/theme-chalk/icon.css +1 -1
  44. package/lib/theme-chalk/index.css +1 -1
  45. package/lib/theme-chalk/login.css +1 -1
  46. package/lib/theme-chalk/main.css +1 -1
  47. package/lib/theme-chalk/menu.css +1 -1
  48. package/lib/theme-chalk/sizer.css +1 -1
  49. package/lib/theme-chalk/upload.css +1 -1
  50. package/lib/tips.js +59 -42
  51. package/lib/tree-group.js +34 -36
  52. package/lib/tree.js +93 -77
  53. package/lib/upload.js +111 -94
  54. package/lib/utils/util.js +34 -36
  55. package/lib/wujie.js +34 -36
  56. package/lib/wxlogin.js +34 -36
  57. package/package.json +2 -2
  58. package/packages/checkbox-group/src/main.vue +7 -1
  59. package/packages/data-table/src/main.vue +13 -6
  60. package/packages/dialog/src/main.vue +2 -3
  61. package/packages/form/src/main.vue +11 -2
  62. package/packages/icon/src/main.vue +10 -3
  63. package/packages/icons/src/icon.json +1 -1
  64. package/packages/input/src/main.vue +8 -1
  65. package/packages/login/src/main.vue +36 -24
  66. package/packages/main/src/main.vue +28 -6
  67. package/packages/menu/src/main.vue +76 -65
  68. package/packages/nav/src/main.vue +23 -4
  69. package/packages/radio-group/src/main.vue +7 -1
  70. package/packages/select/src/main.vue +7 -1
  71. package/packages/select-ganged/src/main.vue +7 -1
  72. package/packages/selector-panel/src/main.vue +7 -1
  73. package/packages/steps/src/main.vue +9 -3
  74. package/packages/theme-chalk/lib/base.css +1 -1
  75. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  76. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  77. package/packages/theme-chalk/lib/icon.css +1 -1
  78. package/packages/theme-chalk/lib/index.css +1 -1
  79. package/packages/theme-chalk/lib/login.css +1 -1
  80. package/packages/theme-chalk/lib/main.css +1 -1
  81. package/packages/theme-chalk/lib/menu.css +1 -1
  82. package/packages/theme-chalk/lib/sizer.css +1 -1
  83. package/packages/theme-chalk/lib/upload.css +1 -1
  84. package/packages/theme-chalk/src/common/var.scss +2 -0
  85. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  86. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  87. package/packages/theme-chalk/src/icon.scss +430 -426
  88. package/packages/theme-chalk/src/login.scss +2 -3
  89. package/packages/theme-chalk/src/main.scss +14 -5
  90. package/packages/theme-chalk/src/menu.scss +1 -1
  91. package/packages/theme-chalk/src/nav.scss +2 -2
  92. package/packages/tips/src/main.vue +8 -1
  93. package/packages/tree/src/main.vue +8 -2
  94. package/packages/upload/src/main.vue +11 -2
  95. package/src/index.js +1 -1
  96. package/src/utils/util.js +34 -34
@@ -55,8 +55,8 @@
55
55
  &::after {
56
56
  content: '';
57
57
  position: absolute;
58
- left: -10px;
59
- top: 1px;
58
+ left: 0;
59
+ top: 0;
60
60
  border-color: transparent transparent #fff #fff;
61
61
  border-style: solid;
62
62
  border-width: 30px;
@@ -333,7 +333,6 @@
333
333
  top: 20px;
334
334
  }
335
335
  .es-login-name {
336
- width: 428px;
337
336
  margin-bottom: 40px;
338
337
  }
339
338
  .es-login-main {
@@ -20,7 +20,7 @@
20
20
  @extend .es-align-middle;
21
21
 
22
22
  .es-main-logo {
23
- height: 36px;
23
+ max-height: 60%;
24
24
  margin-left: 20px;
25
25
  }
26
26
 
@@ -51,7 +51,7 @@
51
51
  position: absolute;
52
52
  left: 0;
53
53
  right: 0;
54
- height: 60px;
54
+ height: $--main-header-height;
55
55
  }
56
56
  .es-fourth-tabs {
57
57
  border: 0;
@@ -62,7 +62,7 @@
62
62
  .el-menu-item,
63
63
  .es-submenu,
64
64
  .el-submenu__title {
65
- height: 60px !important;
65
+ height: $--main-header-height !important;
66
66
  line-height: 1 !important;
67
67
  color: rgba(255, 255, 255, 0.85) !important;
68
68
  &:not(.is-disabled) {
@@ -110,9 +110,18 @@
110
110
  height: $--main-header-height;
111
111
  display: block;
112
112
  width: 230px;
113
- padding: 12px 0 12px 12px;
114
113
  .es-main-logo {
115
- height: 36px;
114
+ height: $--main-header-height;
115
+ }
116
+ }
117
+ .es-handle-user {
118
+ .es-user-info {
119
+ height: auto;
120
+ padding: 8px 4px 8px 0;
121
+ .es-user-name {
122
+ height: 30px;
123
+ line-height: 30px;
124
+ }
116
125
  }
117
126
  }
118
127
  }
@@ -93,7 +93,7 @@
93
93
  }
94
94
  }
95
95
  .es-item-vertical {
96
- width: 70px;
96
+ width: $--nav-initial-width;
97
97
  height: auto;
98
98
  min-height: 70px;
99
99
  padding: 8px 0 !important;
@@ -63,7 +63,7 @@
63
63
  }
64
64
  }
65
65
  .es-nav-initial {
66
- width: 70px;
66
+ width: $--nav-initial-width;
67
67
  box-shadow: $--box-shadow-light;
68
68
  position: relative;
69
69
  z-index: 2;
@@ -81,7 +81,7 @@
81
81
  position: relative;
82
82
  .es-nav-main {
83
83
  position: absolute;
84
- left: 70px;
84
+ left: $--nav-initial-width;
85
85
  top: 0;
86
86
  bottom: 0;
87
87
  }
@@ -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.68',
124
+ version: '0.5.70',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -49,17 +49,17 @@ import { MessageBox, Loading } from 'eoss-element';
49
49
  * @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
50
50
  **/
51
51
  // 请求
52
- const pendingRequest = new Map();
53
- function getRequestKey(config) {
54
- const { method, url, params, data } = config;
55
- return [method, url, qs.stringify(params), qs.stringify(data)].join('&');
56
- };
57
- function delPendingRequest(config) {
58
- let requestKey = getRequestKey(config);
59
- if (pendingRequest.has(requestKey)) {
60
- pendingRequest.delete(requestKey);
61
- }
62
- }
52
+ // const pendingRequest = new Map();
53
+ // function getRequestKey(config) {
54
+ // const { method, url, params, data } = config;
55
+ // return [method, url, qs.stringify(params), qs.stringify(data)].join('&');
56
+ // };
57
+ // function delPendingRequest(config) {
58
+ // let requestKey = getRequestKey(config);
59
+ // if (pendingRequest.has(requestKey)) {
60
+ // pendingRequest.delete(requestKey);
61
+ // }
62
+ // }
63
63
  const ajax = function ({
64
64
  headers,
65
65
  method,
@@ -104,25 +104,25 @@ const ajax = function ({
104
104
  config => {
105
105
  config.headers.common = getStorage();
106
106
  // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
107
- let requestKey = getRequestKey(config);
108
- // 判断请求是否重复
109
- if (pendingRequest.has(requestKey)) {
110
- // 取消上次请求
111
- let cancel = pendingRequest.get(requestKey);
112
- cancel();
113
- // 删除请求信息
114
- pendingRequest.delete(requestKey);
115
- }
116
- // 把请求信息,添加请求到map当中
117
- // 生成取消方法
118
- config.cancelToken =
119
- config.cancelToken ||
120
- new axios.CancelToken(cancel => {
121
- // 把取消方法添加到map
122
- if (!pendingRequest.has(requestKey)) {
123
- pendingRequest.set(requestKey, cancel);
124
- }
125
- });
107
+ // let requestKey = getRequestKey(config);
108
+ // // 判断请求是否重复
109
+ // if (pendingRequest.has(requestKey)) {
110
+ // // 取消上次请求
111
+ // let cancel = pendingRequest.get(requestKey);
112
+ // cancel();
113
+ // // 删除请求信息
114
+ // pendingRequest.delete(requestKey);
115
+ // }
116
+ // // 把请求信息,添加请求到map当中
117
+ // // 生成取消方法
118
+ // config.cancelToken =
119
+ // config.cancelToken ||
120
+ // new axios.CancelToken(cancel => {
121
+ // // 把取消方法添加到map
122
+ // if (!pendingRequest.has(requestKey)) {
123
+ // pendingRequest.set(requestKey, cancel);
124
+ // }
125
+ // });
126
126
  return config;
127
127
  },
128
128
  err => {
@@ -132,7 +132,7 @@ const ajax = function ({
132
132
  // 响应拦截
133
133
  http.interceptors.response.use(
134
134
  response => {
135
- delPendingRequest(response.config);
135
+ // delPendingRequest(response.config);
136
136
  loading && loading.close();
137
137
  if (
138
138
  response.headers.authorization &&
@@ -301,9 +301,9 @@ const ajax = function ({
301
301
  },
302
302
  error => {
303
303
  loading && loading.close();
304
- if (!axios.isCancel(error)) {
305
- delPendingRequest(error.config || {});
306
- }
304
+ // if (!axios.isCancel(error)) {
305
+ // delPendingRequest(error.config || {});
306
+ // }
307
307
  if (error && error.response) {
308
308
  if (error.response.status) {
309
309
  switch (error.response.status) {