eoss-ui 0.5.39 → 0.5.41

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 (57) hide show
  1. package/lib/button-group.js +9 -1
  2. package/lib/button.js +9 -1
  3. package/lib/checkbox-group.js +9 -1
  4. package/lib/data-table-form.js +9 -1
  5. package/lib/data-table.js +22 -6
  6. package/lib/date-picker.js +9 -1
  7. package/lib/dialog.js +9 -1
  8. package/lib/eoss-ui.common.js +66 -37
  9. package/lib/flow-group.js +12 -6
  10. package/lib/flow-list.js +9 -1
  11. package/lib/flow.js +9 -1
  12. package/lib/form.js +9 -1
  13. package/lib/handle-user.js +9 -1
  14. package/lib/handler.js +14 -5
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +9 -1
  17. package/lib/input.js +9 -1
  18. package/lib/login.js +9 -1
  19. package/lib/main.js +14 -3
  20. package/lib/nav.js +9 -1
  21. package/lib/page.js +9 -1
  22. package/lib/player.js +9 -1
  23. package/lib/qr-code.js +9 -1
  24. package/lib/radio-group.js +9 -1
  25. package/lib/retrial-auth.js +9 -1
  26. package/lib/select-ganged.js +9 -1
  27. package/lib/select.js +22 -3
  28. package/lib/selector-panel.js +9 -1
  29. package/lib/selector.js +9 -1
  30. package/lib/sizer.js +9 -1
  31. package/lib/steps.js +9 -1
  32. package/lib/switch.js +9 -1
  33. package/lib/table-form.js +9 -1
  34. package/lib/tabs.js +9 -1
  35. package/lib/theme-chalk/form.css +1 -1
  36. package/lib/theme-chalk/index.css +1 -1
  37. package/lib/theme-chalk/select.css +1 -0
  38. package/lib/tips.js +9 -1
  39. package/lib/tree-group.js +9 -1
  40. package/lib/tree.js +9 -1
  41. package/lib/upload.js +9 -1
  42. package/lib/utils/util.js +9 -1
  43. package/lib/wujie.js +9 -1
  44. package/lib/wxlogin.js +9 -1
  45. package/package.json +1 -1
  46. package/packages/data-table/src/main.vue +8 -0
  47. package/packages/flow-group/src/main.vue +1 -3
  48. package/packages/handler/src/main.vue +3 -2
  49. package/packages/main/src/main.vue +2 -0
  50. package/packages/select/src/main.vue +26 -6
  51. package/packages/theme-chalk/lib/form.css +1 -1
  52. package/packages/theme-chalk/lib/index.css +1 -1
  53. package/packages/theme-chalk/lib/select.css +1 -0
  54. package/packages/theme-chalk/src/form.scss +1 -1
  55. package/packages/theme-chalk/src/select.scss +8 -0
  56. package/src/index.js +1 -1
  57. package/src/utils/util.js +12 -2
@@ -0,0 +1 @@
1
+ .el-select-dropdown__item .es-tips{position:absolute;right:10px;top:50%;margin-top:-7px}
@@ -76,7 +76,7 @@
76
76
  display: block;
77
77
  flex: 1;
78
78
  height: 40px;
79
- line-height: 40px;
79
+ line-height: 38px;
80
80
  padding: 0 10px;
81
81
  border: $--input-border;
82
82
  border-radius: $--input-border-radius;
@@ -0,0 +1,8 @@
1
+ .el-select-dropdown__item {
2
+ .es-tips {
3
+ position: absolute;
4
+ right: 10px;
5
+ top: 50%;
6
+ margin-top: -7px;
7
+ }
8
+ }
package/src/index.js CHANGED
@@ -117,7 +117,7 @@ if (typeof window !== 'undefined' && window.Vue) {
117
117
  }
118
118
 
119
119
  export default {
120
- version: '0.5.39',
120
+ version: '0.5.41',
121
121
  install,
122
122
  Button,
123
123
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  /* eslint-disable indent */
9
9
  const sm2 = require('sm-crypto').sm2;
10
- import { authCenter, mainConfig } from '../config/api';
10
+ import { authCenter, mainConfig, logout } from '../config/api';
11
11
  import axios from 'axios';
12
12
  import qs from 'qs';
13
13
  import JSONbig from 'json-bigint';
@@ -670,7 +670,6 @@ const delUrlParam = function ({ url, key }) {
670
670
  key.forEach(item => {
671
671
  if (param.hasOwnProperty(item)) {
672
672
  let reg = `${item}=${param[item]}`;
673
- console.log(reg);
674
673
  if (src.indexOf(reg + '&') > -1) {
675
674
  src = src.replace(reg + '&', '');
676
675
  } else if (src.indexOf('&' + reg) > -1) {
@@ -1921,6 +1920,17 @@ const isLogined = function ({
1921
1920
  if (cookie === undefined) {
1922
1921
  cookie = getParams({ name: 'cookie' });
1923
1922
  }
1923
+ let quit = getParams('quit') || getParams('logout');
1924
+ if (quit) {
1925
+ ajax({ method: 'post', url: logout })
1926
+ .then((res) => {
1927
+ if (res.rCode === 0) {
1928
+ removeStorage();
1929
+ }
1930
+ })
1931
+ .catch(() => {});
1932
+ return;
1933
+ }
1924
1934
  let pathname = win.top.location.pathname;
1925
1935
  if (loginPage) {
1926
1936
  sessionStorage.setItem('loginPage', loginPage);