eoss-ui 0.5.97 → 0.5.98

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 (88) hide show
  1. package/lib/button-group.js +6 -2
  2. package/lib/button.js +6 -2
  3. package/lib/checkbox-group.js +6 -2
  4. package/lib/data-table-form.js +6 -2
  5. package/lib/data-table.js +28 -16
  6. package/lib/date-picker.js +6 -2
  7. package/lib/dialog.js +6 -2
  8. package/lib/eoss-ui.common.js +281 -209
  9. package/lib/flow-group.js +6 -2
  10. package/lib/flow-list.js +6 -2
  11. package/lib/flow.js +6 -2
  12. package/lib/form.js +6 -2
  13. package/lib/handle-user.js +6 -2
  14. package/lib/handler.js +17 -9
  15. package/lib/icon.js +6 -2
  16. package/lib/icons.js +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +6 -2
  19. package/lib/input.js +6 -2
  20. package/lib/login.js +9 -5
  21. package/lib/main.js +223 -163
  22. package/lib/nav.js +6 -2
  23. package/lib/page.js +6 -2
  24. package/lib/pagination.js +6 -2
  25. package/lib/player.js +6 -2
  26. package/lib/qr-code.js +6 -2
  27. package/lib/radio-group.js +6 -2
  28. package/lib/retrial-auth.js +6 -2
  29. package/lib/select-ganged.js +6 -2
  30. package/lib/select.js +6 -2
  31. package/lib/selector-panel.js +6 -2
  32. package/lib/selector.js +6 -2
  33. package/lib/sizer.js +6 -2
  34. package/lib/steps.js +6 -2
  35. package/lib/switch.js +6 -2
  36. package/lib/table-form.js +6 -2
  37. package/lib/tabs.js +6 -2
  38. package/lib/theme-chalk/base.css +1 -1
  39. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  40. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  41. package/lib/theme-chalk/icon.css +1 -1
  42. package/lib/theme-chalk/index.css +1 -1
  43. package/lib/theme-chalk/main.css +1 -1
  44. package/lib/theme-chalk/menu.css +1 -1
  45. package/lib/theme-chalk/simplicity.css +1 -1
  46. package/lib/theme-chalk/sizer.css +1 -1
  47. package/lib/theme-chalk/upload.css +1 -1
  48. package/lib/tips.js +6 -2
  49. package/lib/tree-group.js +6 -2
  50. package/lib/tree.js +6 -2
  51. package/lib/upload.js +6 -2
  52. package/lib/utils/util.js +6 -2
  53. package/lib/wujie.js +6 -2
  54. package/lib/wxlogin.js +6 -2
  55. package/package.json +1 -1
  56. package/packages/.DS_Store +0 -0
  57. package/packages/data-table/src/main.vue +18 -12
  58. package/packages/handler/.DS_Store +0 -0
  59. package/packages/handler/src/main.vue +11 -6
  60. package/packages/icons/src/icon.json +1 -1
  61. package/packages/login/.DS_Store +0 -0
  62. package/packages/login/src/main.vue +1 -1
  63. package/packages/main/.DS_Store +0 -0
  64. package/packages/main/src/.DS_Store +0 -0
  65. package/packages/main/src/default/index.vue +19 -3
  66. package/packages/main/src/default/settings.vue +2 -2
  67. package/packages/main/src/main.vue +22 -3
  68. package/packages/main/src/simplicity/handler.vue +32 -28
  69. package/packages/main/src/simplicity/index.vue +46 -39
  70. package/packages/theme-chalk/lib/base.css +1 -1
  71. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  72. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  73. package/packages/theme-chalk/lib/icon.css +1 -1
  74. package/packages/theme-chalk/lib/index.css +1 -1
  75. package/packages/theme-chalk/lib/main.css +1 -1
  76. package/packages/theme-chalk/lib/menu.css +1 -1
  77. package/packages/theme-chalk/lib/simplicity.css +1 -1
  78. package/packages/theme-chalk/lib/sizer.css +1 -1
  79. package/packages/theme-chalk/lib/upload.css +1 -1
  80. package/packages/theme-chalk/src/.DS_Store +0 -0
  81. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  82. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  83. package/packages/theme-chalk/src/icon.scss +8 -0
  84. package/packages/theme-chalk/src/mixins/util.scss +0 -0
  85. package/packages/theme-chalk/src/simplicity.scss +160 -0
  86. package/src/.DS_Store +0 -0
  87. package/src/index.js +1 -1
  88. package/src/utils/util.js +6 -2
@@ -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
  }
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,6 +240,15 @@
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;
@@ -239,6 +266,21 @@
239
266
  display: flex;
240
267
  justify-content: space-between;
241
268
  align-items: center;
269
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
270
+ font-size: 17px;
271
+ line-height: 26px;
272
+ padding: 6px 10px 10px;
273
+ }
274
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
275
+ font-size: 14px;
276
+ line-height: 20px;
277
+ padding: 4px 8px 8px;
278
+ }
279
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
280
+ font-size: 12px;
281
+ line-height: 16px;
282
+ padding: 4px 6px 6px;
283
+ }
242
284
  }
243
285
  .es-simplicity_apps-box {
244
286
  position: relative;
@@ -271,12 +313,38 @@
271
313
  width: 34px;
272
314
  height: 34px;
273
315
  line-height: 34px;
316
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
317
+ font-size: 30px;
318
+ width: 30px;
319
+ height: 30px;
320
+ line-height: 30px;
321
+ }
322
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
323
+ font-size: 26px;
324
+ width: 26px;
325
+ height: 26px;
326
+ line-height: 26px;
327
+ }
328
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
329
+ font-size: 22px;
330
+ width: 22px;
331
+ height: 22px;
332
+ line-height: 22px;
333
+ }
274
334
  }
275
335
  .es-simplicity_apps-text {
276
336
  font-weight: 400;
277
337
  font-size: 16px;
278
338
  text-align: center;
279
339
  line-height: 19px;
340
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
341
+ font-size: 14px;
342
+ line-height: 17px;
343
+ }
344
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
345
+ font-size: 12px;
346
+ line-height: 15px;
347
+ }
280
348
  }
281
349
  .es-simplicity_apps-hover {
282
350
  opacity: 0;
@@ -297,17 +365,78 @@
297
365
  .es-simplicity_apps-pagination {
298
366
  text-align: right;
299
367
  padding: 18px 20px;
368
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
369
+ padding: 14px 16px;
370
+ }
371
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
372
+ padding: 10px 12px;
373
+ }
374
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
375
+ padding: 7px 8px;
376
+ }
300
377
  .el-pagination__total {
301
378
  float: left;
379
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
380
+ height: 24px;
381
+ line-height: 24px;
382
+ }
383
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
384
+ font-size: 12px;
385
+ height: 20px;
386
+ line-height: 20px;
387
+ }
388
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
389
+ font-size: 12px;
390
+ height: 16px;
391
+ line-height: 16px;
392
+ }
393
+ }
394
+
395
+ & > button {
396
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
397
+ height: 24px;
398
+ line-height: 24px;
399
+ }
400
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
401
+ font-size: 12px;
402
+ height: 20px;
403
+ line-height: 20px;
404
+ }
405
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
406
+ font-size: 12px;
407
+ height: 16px;
408
+ line-height: 16px;
409
+ }
302
410
  }
303
411
  .el-pager li {
304
412
  background-color: #fff;
413
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
414
+ min-width: 26px;
415
+ height: 24px;
416
+ line-height: 24px;
417
+ }
418
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
419
+ min-width: 22px;
420
+ height: 20px;
421
+ line-height: 20px;
422
+ }
423
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
424
+ min-width: 18px;
425
+ height: 16px;
426
+ line-height: 16px;
427
+ }
305
428
  }
306
429
  }
307
430
  .es-simplicity_apps-other {
308
431
  width: 34%;
309
432
  padding-left: 20px;
310
433
  border-left: 1px solid #cdd9e4;
434
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
435
+ padding-left: 14px;
436
+ }
437
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
438
+ padding-left: 8px;
439
+ }
311
440
  .es-simplicity_apps-list {
312
441
  display: flex;
313
442
  align-content: flex-start;
@@ -315,6 +444,15 @@
315
444
  .es-simplicity_apps-list-item {
316
445
  width: 50%;
317
446
  padding: 12px;
447
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
448
+ padding: 8px;
449
+ }
450
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
451
+ padding: 4px;
452
+ }
453
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
454
+ padding: 2px;
455
+ }
318
456
  }
319
457
  .es-simplicity_app-icon {
320
458
  display: block;
@@ -328,12 +466,34 @@
328
466
  .es-simplicity_apps-text {
329
467
  margin-left: 12px;
330
468
  text-align: left;
469
+ overflow: hidden;
470
+ text-overflow: ellipsis;
471
+ display: -webkit-box;
472
+ -webkit-box-orient: vertical;
473
+ line-clamp: 3;
474
+ -webkit-line-clamp: 3;
475
+ word-wrap: break-word;
476
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
477
+ margin-left: 8px;
478
+ }
479
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
480
+ margin-left: 4px;
481
+ }
331
482
  }
332
483
  }
333
484
  .es-simplicity_apps-list-content {
334
485
  display: flex;
335
486
  align-items: center;
336
487
  padding: 16px;
488
+ @media screen and (max-width: 1600px) and (max-height: 900px) {
489
+ padding: 12px;
490
+ }
491
+ @media screen and (max-width: 1280px) and (max-height: 720px) {
492
+ padding: 8px;
493
+ }
494
+ @media screen and (max-width: 1024px) and (max-height: 768px) {
495
+ padding: 4px;
496
+ }
337
497
  .es-simplicity_apps-texts {
338
498
  min-height: 36px;
339
499
  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.98',
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');