eoss-ui 0.5.97 → 0.5.99

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 (103) hide show
  1. package/lib/button-group.js +8 -4
  2. package/lib/button.js +8 -4
  3. package/lib/calendar.js +2 -2
  4. package/lib/card.js +2 -2
  5. package/lib/cascader.js +2 -2
  6. package/lib/checkbox-group.js +9 -4
  7. package/lib/clients.js +2 -2
  8. package/lib/data-table-form.js +9 -4
  9. package/lib/data-table.js +31 -18
  10. package/lib/date-picker.js +8 -4
  11. package/lib/dialog.js +12 -7
  12. package/lib/enterprise.js +2 -2
  13. package/lib/eoss-ui.common.js +767 -797
  14. package/lib/error-page.js +2 -2
  15. package/lib/flow-group.js +8 -4
  16. package/lib/flow-list.js +8 -4
  17. package/lib/flow.js +9 -4
  18. package/lib/form.js +9 -4
  19. package/lib/handle-user.js +8 -4
  20. package/lib/handler.js +22 -18
  21. package/lib/icon.js +8 -4
  22. package/lib/icons.js +3 -3
  23. package/lib/index.js +1 -1
  24. package/lib/input-number.js +8 -4
  25. package/lib/input.js +8 -4
  26. package/lib/label.js +2 -2
  27. package/lib/layout.js +2 -2
  28. package/lib/login.js +13 -7
  29. package/lib/main.js +2720 -2759
  30. package/lib/menu.js +2 -2
  31. package/lib/nav.js +8 -4
  32. package/lib/notify.js +2 -2
  33. package/lib/page.js +8 -4
  34. package/lib/pagination.js +8 -4
  35. package/lib/player.js +10 -6
  36. package/lib/qr-code.js +10 -6
  37. package/lib/radio-group.js +8 -4
  38. package/lib/retrial-auth.js +15 -11
  39. package/lib/select-ganged.js +15 -11
  40. package/lib/select.js +8 -4
  41. package/lib/selector-panel.js +9 -4
  42. package/lib/selector.js +8 -4
  43. package/lib/sizer.js +8 -4
  44. package/lib/steps.js +8 -4
  45. package/lib/switch.js +8 -4
  46. package/lib/table-form.js +8 -4
  47. package/lib/tabs-panel.js +2 -2
  48. package/lib/tabs.js +8 -4
  49. package/lib/theme-chalk/base.css +1 -1
  50. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  51. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  52. package/lib/theme-chalk/icon.css +1 -1
  53. package/lib/theme-chalk/index.css +1 -1
  54. package/lib/theme-chalk/main.css +1 -1
  55. package/lib/theme-chalk/menu.css +1 -1
  56. package/lib/theme-chalk/simplicity.css +1 -1
  57. package/lib/theme-chalk/sizer.css +1 -1
  58. package/lib/theme-chalk/upload.css +1 -1
  59. package/lib/tips.js +8 -4
  60. package/lib/toolbar.js +2 -2
  61. package/lib/tree-group.js +8 -4
  62. package/lib/tree.js +8 -4
  63. package/lib/upload.js +9 -4
  64. package/lib/utils/util.js +6 -2
  65. package/lib/wujie.js +151 -147
  66. package/lib/wxlogin.js +8 -4
  67. package/package.json +1 -1
  68. package/packages/.DS_Store +0 -0
  69. package/packages/data-table/src/main.vue +18 -12
  70. package/packages/dialog/src/main.vue +1 -1
  71. package/packages/handler/.DS_Store +0 -0
  72. package/packages/handler/src/main.vue +6 -6
  73. package/packages/icons/src/icon.json +1 -1
  74. package/packages/login/.DS_Store +0 -0
  75. package/packages/login/src/main.vue +2 -1
  76. package/packages/main/.DS_Store +0 -0
  77. package/packages/main/src/.DS_Store +0 -0
  78. package/packages/main/src/default/index.vue +34 -12
  79. package/packages/main/src/main.vue +28 -3
  80. package/packages/main/src/{default → public}/settings.vue +53 -21
  81. package/packages/main/src/simplicity/handler.vue +21 -28
  82. package/packages/main/src/simplicity/index.vue +132 -114
  83. package/packages/theme-chalk/lib/base.css +1 -1
  84. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  85. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  86. package/packages/theme-chalk/lib/icon.css +1 -1
  87. package/packages/theme-chalk/lib/index.css +1 -1
  88. package/packages/theme-chalk/lib/main.css +1 -1
  89. package/packages/theme-chalk/lib/menu.css +1 -1
  90. package/packages/theme-chalk/lib/simplicity.css +1 -1
  91. package/packages/theme-chalk/lib/sizer.css +1 -1
  92. package/packages/theme-chalk/lib/upload.css +1 -1
  93. package/packages/theme-chalk/src/.DS_Store +0 -0
  94. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  95. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  96. package/packages/theme-chalk/src/icon.scss +8 -0
  97. package/packages/theme-chalk/src/main.scss +16 -0
  98. package/packages/theme-chalk/src/mixins/util.scss +0 -0
  99. package/packages/theme-chalk/src/simplicity.scss +197 -0
  100. package/src/.DS_Store +0 -0
  101. package/src/index.js +1 -1
  102. package/src/utils/util.js +6 -2
  103. package/packages/main/src/simplicity/settings.vue +0 -119
@@ -16,6 +16,14 @@
16
16
  -moz-osx-font-smoothing: grayscale;
17
17
  }
18
18
 
19
+ .es-icon-shiyongjiuban:before {
20
+ content: '\e6c9';
21
+ }
22
+
23
+ .es-icon-tiyanxinban:before {
24
+ content: '\e829';
25
+ }
26
+
19
27
  .es-icon-home:before {
20
28
  content: '\e6c5';
21
29
  }
@@ -322,6 +322,22 @@
322
322
  background-color: $--color-primary-light-10;
323
323
  }
324
324
  }
325
+ &.es-setting-app-nav {
326
+ &::before {
327
+ content: '';
328
+ display: block;
329
+ position: absolute;
330
+ left: 0;
331
+ width: 8px;
332
+ top: 0;
333
+ bottom: 0;
334
+ z-index: 2;
335
+ background-color: $--color-primary-light-8;
336
+ }
337
+ &::after {
338
+ top: 0;
339
+ }
340
+ }
325
341
  &.es-setting-subsystem-nav {
326
342
  &::before {
327
343
  content: '';
File without changes
@@ -153,6 +153,15 @@
153
153
  .el-drawer__body {
154
154
  background-color: #f4f4f4;
155
155
  padding: 20px;
156
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
157
+ padding: 14px;
158
+ }
159
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
160
+ padding: 10px;
161
+ }
162
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
163
+ padding: 6px;
164
+ }
156
165
  }
157
166
  }
158
167
  .es-simplicity-public-drawer {
@@ -211,6 +220,15 @@
211
220
  width: 20%;
212
221
  height: 25%;
213
222
  padding: 12px;
223
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
224
+ padding: 8px;
225
+ }
226
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
227
+ padding: 4px;
228
+ }
229
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
230
+ padding: 2px;
231
+ }
214
232
  }
215
233
  }
216
234
  .es-simplicity_apps-list-content {
@@ -222,11 +240,57 @@
222
240
  .es-simplicity_apps-icon {
223
241
  margin-bottom: 16px;
224
242
  color: $--color-primary;
243
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
244
+ margin-bottom: 12px;
245
+ }
246
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
247
+ margin-bottom: 8px;
248
+ }
249
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
250
+ margin-bottom: 4px;
251
+ }
225
252
  }
226
253
  .es-simplicity_apps-search {
227
254
  width: 200px;
228
255
  .el-input__inner {
229
256
  border-radius: 16px;
257
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
258
+ height: 28px;
259
+ line-height: 28px;
260
+ font-size: 14px;
261
+ }
262
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
263
+ height: 24px;
264
+ line-height: 24px;
265
+ font-size: 12px;
266
+ }
267
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
268
+ height: 20px;
269
+ line-height: 20px;
270
+ font-size: 12px;
271
+ }
272
+ &::placeholder {
273
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
274
+ font-size: 14px;
275
+ }
276
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
277
+ font-size: 12px;
278
+ }
279
+ }
280
+ }
281
+ .el-input__icon {
282
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
283
+ line-height: 28px;
284
+ font-size: 14px;
285
+ }
286
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
287
+ line-height: 24px;
288
+ font-size: 12px;
289
+ }
290
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
291
+ line-height: 20px;
292
+ font-size: 12px;
293
+ }
230
294
  }
231
295
  }
232
296
  }
@@ -239,6 +303,21 @@
239
303
  display: flex;
240
304
  justify-content: space-between;
241
305
  align-items: center;
306
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
307
+ font-size: 17px;
308
+ line-height: 26px;
309
+ padding: 6px 10px 10px;
310
+ }
311
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
312
+ font-size: 14px;
313
+ line-height: 20px;
314
+ padding: 4px 8px 8px;
315
+ }
316
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
317
+ font-size: 12px;
318
+ line-height: 16px;
319
+ padding: 4px 6px 6px;
320
+ }
242
321
  }
243
322
  .es-simplicity_apps-box {
244
323
  position: relative;
@@ -271,12 +350,38 @@
271
350
  width: 34px;
272
351
  height: 34px;
273
352
  line-height: 34px;
353
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
354
+ font-size: 30px;
355
+ width: 30px;
356
+ height: 30px;
357
+ line-height: 30px;
358
+ }
359
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
360
+ font-size: 26px;
361
+ width: 26px;
362
+ height: 26px;
363
+ line-height: 26px;
364
+ }
365
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
366
+ font-size: 22px;
367
+ width: 22px;
368
+ height: 22px;
369
+ line-height: 22px;
370
+ }
274
371
  }
275
372
  .es-simplicity_apps-text {
276
373
  font-weight: 400;
277
374
  font-size: 16px;
278
375
  text-align: center;
279
376
  line-height: 19px;
377
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
378
+ font-size: 14px;
379
+ line-height: 17px;
380
+ }
381
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
382
+ font-size: 12px;
383
+ line-height: 15px;
384
+ }
280
385
  }
281
386
  .es-simplicity_apps-hover {
282
387
  opacity: 0;
@@ -297,17 +402,78 @@
297
402
  .es-simplicity_apps-pagination {
298
403
  text-align: right;
299
404
  padding: 18px 20px;
405
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
406
+ padding: 14px 16px;
407
+ }
408
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
409
+ padding: 10px 12px;
410
+ }
411
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
412
+ padding: 7px 8px;
413
+ }
300
414
  .el-pagination__total {
301
415
  float: left;
416
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
417
+ height: 24px;
418
+ line-height: 24px;
419
+ }
420
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
421
+ font-size: 12px;
422
+ height: 20px;
423
+ line-height: 20px;
424
+ }
425
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
426
+ font-size: 12px;
427
+ height: 16px;
428
+ line-height: 16px;
429
+ }
430
+ }
431
+
432
+ & > button {
433
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
434
+ height: 24px;
435
+ line-height: 24px;
436
+ }
437
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
438
+ font-size: 12px;
439
+ height: 20px;
440
+ line-height: 20px;
441
+ }
442
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
443
+ font-size: 12px;
444
+ height: 16px;
445
+ line-height: 16px;
446
+ }
302
447
  }
303
448
  .el-pager li {
304
449
  background-color: #fff;
450
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
451
+ min-width: 26px;
452
+ height: 24px;
453
+ line-height: 24px;
454
+ }
455
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
456
+ min-width: 22px;
457
+ height: 20px;
458
+ line-height: 20px;
459
+ }
460
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
461
+ min-width: 18px;
462
+ height: 16px;
463
+ line-height: 16px;
464
+ }
305
465
  }
306
466
  }
307
467
  .es-simplicity_apps-other {
308
468
  width: 34%;
309
469
  padding-left: 20px;
310
470
  border-left: 1px solid #cdd9e4;
471
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
472
+ padding-left: 14px;
473
+ }
474
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
475
+ padding-left: 8px;
476
+ }
311
477
  .es-simplicity_apps-list {
312
478
  display: flex;
313
479
  align-content: flex-start;
@@ -315,6 +481,15 @@
315
481
  .es-simplicity_apps-list-item {
316
482
  width: 50%;
317
483
  padding: 12px;
484
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
485
+ padding: 8px;
486
+ }
487
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
488
+ padding: 4px;
489
+ }
490
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
491
+ padding: 2px;
492
+ }
318
493
  }
319
494
  .es-simplicity_app-icon {
320
495
  display: block;
@@ -328,12 +503,34 @@
328
503
  .es-simplicity_apps-text {
329
504
  margin-left: 12px;
330
505
  text-align: left;
506
+ overflow: hidden;
507
+ text-overflow: ellipsis;
508
+ display: -webkit-box;
509
+ -webkit-box-orient: vertical;
510
+ line-clamp: 3;
511
+ -webkit-line-clamp: 3;
512
+ word-wrap: break-word;
513
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
514
+ margin-left: 8px;
515
+ }
516
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
517
+ margin-left: 4px;
518
+ }
331
519
  }
332
520
  }
333
521
  .es-simplicity_apps-list-content {
334
522
  display: flex;
335
523
  align-items: center;
336
524
  padding: 16px;
525
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
526
+ padding: 12px;
527
+ }
528
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
529
+ padding: 8px;
530
+ }
531
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
532
+ padding: 4px;
533
+ }
337
534
  .es-simplicity_apps-texts {
338
535
  min-height: 36px;
339
536
  display: flex;
package/src/.DS_Store CHANGED
Binary file
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.97',
124
+ version: '0.5.99',
125
125
  install,
126
126
  Button,
127
127
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -2230,6 +2230,7 @@ const isLogined = function ({
2230
2230
  Object.prototype.hasOwnProperty.call(to.query, 'serverId') &&
2231
2231
  Object.prototype.hasOwnProperty.call(to.query, 'authType')
2232
2232
  ) {
2233
+ let loadingInstance = Loading.service({text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)'});
2233
2234
  ajax({
2234
2235
  method: 'post',
2235
2236
  url: authCenter,
@@ -2345,8 +2346,11 @@ const isLogined = function ({
2345
2346
  }
2346
2347
  });
2347
2348
  }
2349
+ loadingInstance.close();
2348
2350
  })
2349
- .catch((e) => {});
2351
+ .catch((e) => {
2352
+ loadingInstance.close();
2353
+ });
2350
2354
  } else if (
2351
2355
  token ||
2352
2356
  to.path === '/' ||
@@ -2768,7 +2772,7 @@ const setScale = function (width = 1920, height = 1080) {
2768
2772
  } else {
2769
2773
  n = 1;
2770
2774
  }
2771
- if (zoom === 1) {
2775
+ if (zoom === 1 && window.innerWidth === width) {
2772
2776
  document.body.style.removeProperty('transform');
2773
2777
  document.body.style.removeProperty('width');
2774
2778
  document.body.style.removeProperty('height');
@@ -1,119 +0,0 @@
1
- <template>
2
- <el-drawer
3
- title="设置"
4
- custom-class="es-sets-drawer"
5
- size="280px"
6
- :visible.sync="show"
7
- :append-to-body="true"
8
- >
9
- <div class="es-setting-item">
10
- <div class="es-setting-title">主题色</div>
11
- <el-radio-group
12
- v-if="themes"
13
- v-model="color"
14
- size="mini"
15
- class="es-setting-theme"
16
- @change="handleTheme"
17
- >
18
- <el-radio-button
19
- v-for="(item, index) in themes"
20
- :key="index"
21
- :label="index"
22
- :style="{ backgroundColor: item }"
23
- >
24
- <i class="el-icon-check"></i>
25
- </el-radio-button>
26
- </el-radio-group>
27
- <div class="es-color-picker" v-else>
28
- <el-color-picker
29
- v-model="color"
30
- :predefine="predefineColor"
31
- @change="handleTheme"
32
- ></el-color-picker>
33
- <div class="el-color-picker-tip">请不要选择偏白或者偏黑的颜色</div>
34
- </div>
35
- </div>
36
- </el-drawer>
37
- </template>
38
- <script>
39
- import util from 'eoss-ui/src/utils/util';
40
- export default {
41
- name: 'Message',
42
- props: {
43
- visible: Boolean,
44
- //主题颜色选择颜色集合
45
- themes: Array,
46
- //默认主题色
47
- theme: String,
48
- //颜色板预设颜色
49
- predefine: {
50
- type: Array,
51
- default() {
52
- return ['#a60006', '#409eff'];
53
- }
54
- },
55
- layout: {
56
- type: String,
57
- default: 'default'
58
- }
59
- },
60
- computed: {
61
- show: {
62
- get() {
63
- return this.visible;
64
- },
65
- set(val) {
66
- this.$emit('update:visible', val);
67
- }
68
- },
69
- //颜色板预设颜色
70
- predefineColor() {
71
- if (
72
- this.theme &&
73
- this.predefine.indexOf(this.theme.toLowerCase()) === -1
74
- ) {
75
- let arry = this.predefine;
76
- arry.push(this.theme);
77
- return arry;
78
- }
79
- return this.predefine;
80
- }
81
- },
82
- watch: {
83
- theme: {
84
- immediate: true,
85
- handler(val) {
86
- if (val) {
87
- this.color = val;
88
- }
89
- }
90
- }
91
- },
92
- data() {
93
- return {
94
- color: '',
95
- activeName: this.layout
96
- };
97
- },
98
- mounted() {},
99
- methods: {
100
- //选择主题颜色
101
- handleTheme(res) {
102
- res = res.toLowerCase();
103
- // const rgb = util.getRgb(res);
104
- // const luma = 0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2];
105
- util.updateTheme(res);
106
- this.color = res;
107
- this.$emit('change', { type: 'theme', value: res });
108
- //this.setTheme(res);
109
- },
110
- //选择菜单布局
111
- handleLayout(res) {
112
- let old = this.activeName;
113
- this.activeName = res;
114
- this.$emit('update:layout', res);
115
- this.$emit('layout', res, old);
116
- }
117
- }
118
- };
119
- </script>