eoss-ui 0.6.76 → 0.6.77

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 (64) hide show
  1. package/lib/button-group.js +30 -8
  2. package/lib/button.js +30 -8
  3. package/lib/calogin.js +30 -8
  4. package/lib/checkbox-group.js +30 -8
  5. package/lib/data-table-form.js +30 -8
  6. package/lib/data-table.js +30 -8
  7. package/lib/date-picker.js +30 -8
  8. package/lib/dialog.js +30 -8
  9. package/lib/eoss-ui.common.js +300 -241
  10. package/lib/flow-group.js +30 -8
  11. package/lib/flow-list.js +30 -8
  12. package/lib/flow.js +30 -8
  13. package/lib/form.js +50 -10
  14. package/lib/handle-user.js +30 -8
  15. package/lib/handler.js +30 -8
  16. package/lib/icon.js +30 -8
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +30 -8
  19. package/lib/input.js +30 -8
  20. package/lib/login.js +30 -8
  21. package/lib/main.js +241 -200
  22. package/lib/nav.js +30 -8
  23. package/lib/page.js +30 -8
  24. package/lib/pagination.js +30 -8
  25. package/lib/player.js +30 -8
  26. package/lib/qr-code.js +30 -8
  27. package/lib/radio-group.js +30 -8
  28. package/lib/retrial-auth.js +30 -8
  29. package/lib/select-ganged.js +30 -8
  30. package/lib/select.js +30 -8
  31. package/lib/selector-panel.js +30 -8
  32. package/lib/selector.js +30 -8
  33. package/lib/sizer.js +30 -8
  34. package/lib/steps.js +30 -8
  35. package/lib/switch.js +30 -8
  36. package/lib/table-form.js +30 -8
  37. package/lib/tabs.js +30 -8
  38. package/lib/theme-chalk/form.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/tips.js +30 -8
  41. package/lib/tree-group.js +30 -8
  42. package/lib/tree.js +30 -8
  43. package/lib/upload.js +30 -8
  44. package/lib/utils/util.js +26 -4
  45. package/lib/wujie.js +30 -8
  46. package/lib/wxlogin.js +30 -8
  47. package/package.json +1 -1
  48. package/packages/.DS_Store +0 -0
  49. package/packages/form/.DS_Store +0 -0
  50. package/packages/form/src/main.vue +1 -0
  51. package/packages/login/.DS_Store +0 -0
  52. package/packages/main/.DS_Store +0 -0
  53. package/packages/main/src/.DS_Store +0 -0
  54. package/packages/main/src/default/index.vue +6 -5
  55. package/packages/main/src/main.vue +107 -84
  56. package/packages/main/src/simplicity/index.vue +5 -2
  57. package/packages/theme-chalk/lib/form.css +1 -1
  58. package/packages/theme-chalk/lib/index.css +1 -1
  59. package/packages/theme-chalk/src/form.scss +3 -0
  60. package/packages/upload/.DS_Store +0 -0
  61. package/src/.DS_Store +0 -0
  62. package/src/index.js +1 -1
  63. package/src/utils/util.js +39 -3
  64. package/packages/login/src/IcpItem.vue +0 -66
@@ -328,6 +328,9 @@ div.es-input__inner {
328
328
  .es-upload {
329
329
  padding: 48px 8px 8px;
330
330
  position: relative;
331
+ &.es-avatar-uploader {
332
+ display: block;
333
+ }
331
334
  &.es-upload-readonly {
332
335
  padding-top: 8px;
333
336
  }
Binary file
package/src/.DS_Store CHANGED
Binary file
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.6.76',
128
+ version: '0.6.77',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -2514,7 +2514,19 @@ const isLogined = async function ({
2514
2514
  if (loginPage) {
2515
2515
  win.top.location.replace(loginPage);
2516
2516
  } else if (document.referrer) {
2517
- win.top.location.replace(document.referrer);
2517
+ const referrerUrl = new URL(document.referrer);
2518
+ if (referrerUrl.host !== win.top.location.host) {
2519
+ win.top.location.replace(document.referrer);
2520
+ } else if (
2521
+ win.top.location.href.indexOf('main.html') > -1 ||
2522
+ win.top.location.href.indexOf('index.html') > -1 ||
2523
+ document.referrer.indexOf('main.html') > -1 ||
2524
+ document.referrer.indexOf('index.html') > -1
2525
+ ) {
2526
+ win.top.location.href = './login.html';
2527
+ } else {
2528
+ next('/login');
2529
+ }
2518
2530
  } else if (
2519
2531
  win.top.location.href.indexOf('main.html') > -1
2520
2532
  ) {
@@ -2540,7 +2552,19 @@ const isLogined = async function ({
2540
2552
  if (loginPage) {
2541
2553
  win.top.location.replace(loginPage);
2542
2554
  } else if (document.referrer) {
2543
- win.top.location.replace(document.referrer);
2555
+ const referrerUrl = new URL(document.referrer);
2556
+ if (referrerUrl.host !== win.top.location.host) {
2557
+ win.top.location.replace(document.referrer);
2558
+ } else if (
2559
+ win.top.location.href.indexOf('main.html') > -1 ||
2560
+ win.top.location.href.indexOf('index.html') > -1 ||
2561
+ document.referrer.indexOf('main.html') > -1 ||
2562
+ document.referrer.indexOf('index.html') > -1
2563
+ ) {
2564
+ win.top.location.href = './login.html';
2565
+ } else {
2566
+ next('/login');
2567
+ }
2544
2568
  } else if (win.top.location.href.indexOf('main.html') > -1) {
2545
2569
  win.top.location.href = './login.html';
2546
2570
  } else {
@@ -2580,7 +2604,19 @@ const isLogined = async function ({
2580
2604
  if (loginPage) {
2581
2605
  win.top.location.replace(loginPage);
2582
2606
  } else if (document.referrer) {
2583
- win.top.location.replace(document.referrer);
2607
+ const referrerUrl = new URL(document.referrer);
2608
+ if (referrerUrl.host !== win.top.location.host) {
2609
+ win.top.location.replace(document.referrer);
2610
+ } else if (
2611
+ win.top.location.href.indexOf('main.html') > -1 ||
2612
+ win.top.location.href.indexOf('index.html') > -1 ||
2613
+ document.referrer.indexOf('main.html') > -1 ||
2614
+ document.referrer.indexOf('index.html') > -1
2615
+ ) {
2616
+ win.top.location.href = './login.html';
2617
+ } else {
2618
+ next('/login');
2619
+ }
2584
2620
  } else if (win.top.location.href.indexOf('main.html') > -1) {
2585
2621
  win.top.location.href = './login.html';
2586
2622
  } else {
@@ -1,66 +0,0 @@
1
- <template>
2
- <span>
3
- <a
4
- v-if="item.url || item.open"
5
- class="es-login-icp-item"
6
- :target="item.open ? '_blank' : '_self'"
7
- :style="{
8
- color: '#63c2ff',
9
- ...item.style
10
- }"
11
- :key="item.title"
12
- :href="item.url || item.open"
13
- >
14
- {{ item.title }}
15
- </a>
16
- <span
17
- v-else
18
- class="es-login-icp-item"
19
- :style="item.style || copyrightStyle"
20
- :key="item.title"
21
- >
22
- {{ item.title }}
23
- </span>
24
- <template v-if="item.children && item.children.length">
25
- <template v-for="child in item.children">
26
- <a
27
- v-if="child.url || child.open"
28
- class="es-login-icp-child-item"
29
- :target="child.open ? '_blank' : '_self'"
30
- :style="{
31
- color: '#63c2ff',
32
- ...child.style
33
- }"
34
- :key="child.title"
35
- :href="child.url || child.open"
36
- >
37
- {{ child.title }}
38
- </a>
39
- <span
40
- v-else
41
- class="es-login-icp-child-item"
42
- :style="child.style || copyrightStyle"
43
- :key="child.title"
44
- >
45
- {{ child.title }}
46
- </span>
47
- </template>
48
- </template>
49
- </span>
50
- </template>
51
-
52
- <script>
53
- export default {
54
- name: 'IcpItem',
55
- props: {
56
- item: {
57
- type: Object,
58
- required: true
59
- },
60
- copyrightStyle: {
61
- type: Object,
62
- required: true
63
- }
64
- }
65
- };
66
- </script>