eoss-ui 0.8.3 → 0.8.5

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 (52) hide show
  1. package/lib/button-group.js +46 -45
  2. package/lib/button.js +46 -45
  3. package/lib/calogin.js +89 -57
  4. package/lib/checkbox-group.js +46 -45
  5. package/lib/data-table-form.js +46 -45
  6. package/lib/data-table.js +95 -69
  7. package/lib/date-picker.js +46 -45
  8. package/lib/dialog.js +46 -45
  9. package/lib/eoss-ui.common.js +401 -333
  10. package/lib/flow-group.js +46 -45
  11. package/lib/flow-list.js +46 -45
  12. package/lib/flow.js +285 -270
  13. package/lib/form.js +46 -45
  14. package/lib/handle-user.js +46 -45
  15. package/lib/handler.js +46 -45
  16. package/lib/icon.js +46 -45
  17. package/lib/index.js +1 -1
  18. package/lib/input-number.js +46 -45
  19. package/lib/input.js +46 -45
  20. package/lib/login.js +46 -45
  21. package/lib/main.js +63 -61
  22. package/lib/nav.js +46 -45
  23. package/lib/page.js +46 -45
  24. package/lib/pagination.js +46 -45
  25. package/lib/player.js +46 -45
  26. package/lib/qr-code.js +46 -45
  27. package/lib/radio-group.js +46 -45
  28. package/lib/retrial-auth.js +46 -45
  29. package/lib/select-ganged.js +46 -45
  30. package/lib/select.js +46 -45
  31. package/lib/selector-panel.js +46 -45
  32. package/lib/selector.js +46 -45
  33. package/lib/sizer.js +46 -45
  34. package/lib/steps.js +46 -45
  35. package/lib/switch.js +46 -45
  36. package/lib/table-form.js +46 -45
  37. package/lib/tabs.js +46 -45
  38. package/lib/tips.js +46 -45
  39. package/lib/tree-group.js +46 -45
  40. package/lib/tree.js +46 -45
  41. package/lib/upload.js +46 -45
  42. package/lib/utils/util.js +46 -45
  43. package/lib/wujie.js +46 -45
  44. package/lib/wxlogin.js +46 -45
  45. package/package.json +1 -1
  46. package/packages/calogin/src/plugin.js +3 -3
  47. package/packages/data-table/src/main.vue +49 -20
  48. package/packages/flow/src/processForm.vue +259 -228
  49. package/packages/main/src/main.vue +1 -1
  50. package/packages/main/src/simplicityTop/index.vue +6 -5
  51. package/src/index.js +1 -1
  52. package/src/utils/util.js +49 -48
@@ -286,6 +286,7 @@ var lodash = __webpack_require__(12);
286
286
 
287
287
 
288
288
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
289
+ var winTop = getWinTop();
289
290
  var isIE = /MSIE|Trident/.test(navigator.userAgent);
290
291
  var parser = new external_ua_parser_js_["UAParser"]();
291
292
  var $hueStep = 2;
@@ -833,19 +834,19 @@ var busEmit = function busEmit(that, _ref3) {
833
834
  return;
834
835
  }
835
836
  if (isIE) {
836
- if (win.top !== win.self) {
837
- win.top.postMessage({ method: method, query: args, args: args }, '*');
837
+ if (winTop !== win.self) {
838
+ winTop.postMessage({ method: method, query: args, args: args }, '*');
838
839
  return;
839
840
  }
840
841
  var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
841
842
  bus && (Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args));
842
843
  } else {
843
- if (win.top !== win.self) {
844
+ if (winTop !== win.self) {
844
845
  var _bus2 = win.$wujie ? win.$wujie.bus : null;
845
846
  if (_bus2) {
846
847
  Array.isArray(args) ? _bus2.$emit.apply(_bus2, [method].concat(args)) : _bus2.$emit(method, args);
847
848
  } else {
848
- win.top.postMessage({ method: method, query: args, args: args }, '*');
849
+ winTop.postMessage({ method: method, query: args, args: args }, '*');
849
850
  }
850
851
  return;
851
852
  }
@@ -1083,7 +1084,7 @@ var delUrlParam = function delUrlParam(_ref4) {
1083
1084
 
1084
1085
  var pUrl = '';
1085
1086
  try {
1086
- pUrl = win.top.location.href;
1087
+ pUrl = winTop.location.href;
1087
1088
  } catch (error) {
1088
1089
  pUrl = win.location.href;
1089
1090
  }
@@ -2537,7 +2538,7 @@ var isLogined = function () {
2537
2538
  pathname = '';
2538
2539
 
2539
2540
  try {
2540
- pathname = win.top.location.pathname;
2541
+ pathname = winTop.location.pathname;
2541
2542
  } catch (error) {
2542
2543
  pathname = win.location.pathname;
2543
2544
  }
@@ -2603,12 +2604,12 @@ var isLogined = function () {
2603
2604
  });
2604
2605
  try {
2605
2606
  var url = delUrlParam({
2606
- url: win.top.location.href,
2607
+ url: winTop.location.href,
2607
2608
  key: ['serverId', 'authType', 'code', 'sessionId']
2608
2609
  });
2609
- win.top.location.href = url;
2610
+ winTop.location.href = url;
2610
2611
  setTimeout(function () {
2611
- win.top.location.reload();
2612
+ winTop.location.reload();
2612
2613
  }, 200);
2613
2614
  } catch (error) {
2614
2615
  var _url2 = delUrlParam({
@@ -2627,8 +2628,8 @@ var isLogined = function () {
2627
2628
  break;
2628
2629
  case 3:
2629
2630
  try {
2630
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2631
- win.top.location.href = href;
2631
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(winTop.location.href));
2632
+ winTop.location.href = href;
2632
2633
  } catch (error) {
2633
2634
  var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.location.href));
2634
2635
  win.location.href = _href;
@@ -2642,18 +2643,18 @@ var isLogined = function () {
2642
2643
  sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2643
2644
  try {
2644
2645
  if (loginPage) {
2645
- win.top.location.replace(loginPage);
2646
+ winTop.location.replace(loginPage);
2646
2647
  } else if (document.referrer) {
2647
2648
  var referrerUrl = new URL(document.referrer);
2648
- if (referrerUrl.host !== win.top.location.host) {
2649
- win.top.location.replace(document.referrer);
2650
- } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2651
- win.top.location.href = './login.html';
2649
+ if (referrerUrl.host !== winTop.location.host) {
2650
+ winTop.location.replace(document.referrer);
2651
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2652
+ winTop.location.href = './login.html';
2652
2653
  } else {
2653
2654
  next('/login');
2654
2655
  }
2655
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2656
- win.top.location.href = './login.html';
2656
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2657
+ winTop.location.href = './login.html';
2657
2658
  } else {
2658
2659
  next('/login');
2659
2660
  }
@@ -2672,18 +2673,18 @@ var isLogined = function () {
2672
2673
  callback: function callback() {
2673
2674
  try {
2674
2675
  if (loginPage) {
2675
- win.top.location.replace(loginPage);
2676
+ winTop.location.replace(loginPage);
2676
2677
  } else if (document.referrer) {
2677
2678
  var referrerUrl = new URL(document.referrer);
2678
- if (referrerUrl.host !== win.top.location.host) {
2679
- win.top.location.replace(document.referrer);
2680
- } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2681
- win.top.location.href = './login.html';
2679
+ if (referrerUrl.host !== winTop.location.host) {
2680
+ winTop.location.replace(document.referrer);
2681
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2682
+ winTop.location.href = './login.html';
2682
2683
  } else {
2683
2684
  next('/login');
2684
2685
  }
2685
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2686
- win.top.location.href = './login.html';
2686
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2687
+ winTop.location.href = './login.html';
2687
2688
  } else {
2688
2689
  next('/login');
2689
2690
  }
@@ -2712,19 +2713,19 @@ var isLogined = function () {
2712
2713
  } else {
2713
2714
  try {
2714
2715
  if (loginPage) {
2715
- win.top.location.replace(loginPage);
2716
+ winTop.location.replace(loginPage);
2716
2717
  } else if (document.referrer) {
2717
2718
  referrerUrl = new URL(document.referrer);
2718
2719
 
2719
- if (referrerUrl.host !== win.top.location.host) {
2720
- win.top.location.replace(document.referrer);
2721
- } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2722
- win.top.location.href = './login.html';
2720
+ if (referrerUrl.host !== winTop.location.host) {
2721
+ winTop.location.replace(document.referrer);
2722
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2723
+ winTop.location.href = './login.html';
2723
2724
  } else {
2724
2725
  next('/login');
2725
2726
  }
2726
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2727
- win.top.location.href = './login.html';
2727
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2728
+ winTop.location.href = './login.html';
2728
2729
  } else {
2729
2730
  next('/login');
2730
2731
  }
@@ -2856,7 +2857,7 @@ var util_loading = function loading($loading, res) {
2856
2857
  }
2857
2858
  if (isObject(res)) {
2858
2859
  var config = extend({}, {
2859
- target: win.top.document.body,
2860
+ target: winTop.document.body,
2860
2861
  fullscreen: true,
2861
2862
  background: 'rgba(0, 0, 0, 0.65)',
2862
2863
  spinner: 'el-icon-loading',
@@ -2865,7 +2866,7 @@ var util_loading = function loading($loading, res) {
2865
2866
  return $loading(config);
2866
2867
  } else {
2867
2868
  var _loading = $loading({
2868
- target: win.top.document.body,
2869
+ target: winTop.document.body,
2869
2870
  fullscreen: true,
2870
2871
  background: 'rgba(0, 0, 0, 0.65)',
2871
2872
  spinner: 'el-icon-loading',
@@ -3011,7 +3012,7 @@ var util_responses = function responses(data) {
3011
3012
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
3012
3013
  var href = '';
3013
3014
  try {
3014
- href = win.top.location.href;
3015
+ href = winTop.location.href;
3015
3016
  } catch (error) {
3016
3017
  href = win.location.href;
3017
3018
  }
@@ -3036,7 +3037,7 @@ var util_responses = function responses(data) {
3036
3037
  if (loginPage) {
3037
3038
  var src = void 0;
3038
3039
  if (!startWith(loginPage, ['http', '/'], true)) {
3039
- var pathname = win.top.location.pathname;
3040
+ var pathname = winTop.location.pathname;
3040
3041
  if (pathname !== '/') {
3041
3042
  pathname = pathname.split('/');
3042
3043
  pathname.splice(pathname.length - 1);
@@ -3048,16 +3049,16 @@ var util_responses = function responses(data) {
3048
3049
  } else {
3049
3050
  src = loginPage;
3050
3051
  }
3051
- win.top.location.href = src;
3052
- } else if (win.top.location.href.indexOf('main.html') > -1) {
3053
- win.top.location.href = './login.html';
3052
+ winTop.location.href = src;
3053
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
3054
+ winTop.location.href = './login.html';
3054
3055
  } else {
3055
- var hash = win.top.location.hash;
3056
+ var hash = winTop.location.hash;
3056
3057
  if (hash) {
3057
- var len = win.top.location.href.indexOf(hash);
3058
- win.top.location.href = win.location.href.slice(0, len) + '#/login';
3058
+ var len = winTop.location.href.indexOf(hash);
3059
+ winTop.location.href = win.location.href.slice(0, len) + '#/login';
3059
3060
  } else {
3060
- win.top.location.href = '/login.html';
3061
+ winTop.location.href = '/login.html';
3061
3062
  }
3062
3063
  }
3063
3064
  } catch (error) {
@@ -3876,9 +3877,9 @@ var removeCookie = function removeCookie(key) {
3876
3877
 
3877
3878
  var winTopOpen = function winTopOpen(config) {
3878
3879
  if (isIE) {
3879
- if (win.top !== win.self) {
3880
+ if (winTop !== win.self) {
3880
3881
  try {
3881
- win.top.windowOpen(config);
3882
+ winTop.windowOpen(config);
3882
3883
  } catch (error) {
3883
3884
  win.postMessage({ method: 'windowOpen', query: config }, '*');
3884
3885
  }
package/lib/data-table.js CHANGED
@@ -286,6 +286,7 @@ var lodash = __webpack_require__(12);
286
286
 
287
287
 
288
288
  var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
289
+ var winTop = getWinTop();
289
290
  var isIE = /MSIE|Trident/.test(navigator.userAgent);
290
291
  var parser = new external_ua_parser_js_["UAParser"]();
291
292
  var $hueStep = 2;
@@ -833,19 +834,19 @@ var busEmit = function busEmit(that, _ref3) {
833
834
  return;
834
835
  }
835
836
  if (isIE) {
836
- if (win.top !== win.self) {
837
- win.top.postMessage({ method: method, query: args, args: args }, '*');
837
+ if (winTop !== win.self) {
838
+ winTop.postMessage({ method: method, query: args, args: args }, '*');
838
839
  return;
839
840
  }
840
841
  var bus = that ? that.bus || that.$root.Bus || that.$root.$bus : null;
841
842
  bus && (Array.isArray(args) ? bus.$emit.apply(bus, [method].concat(args)) : bus.$emit(method, args));
842
843
  } else {
843
- if (win.top !== win.self) {
844
+ if (winTop !== win.self) {
844
845
  var _bus2 = win.$wujie ? win.$wujie.bus : null;
845
846
  if (_bus2) {
846
847
  Array.isArray(args) ? _bus2.$emit.apply(_bus2, [method].concat(args)) : _bus2.$emit(method, args);
847
848
  } else {
848
- win.top.postMessage({ method: method, query: args, args: args }, '*');
849
+ winTop.postMessage({ method: method, query: args, args: args }, '*');
849
850
  }
850
851
  return;
851
852
  }
@@ -1083,7 +1084,7 @@ var delUrlParam = function delUrlParam(_ref4) {
1083
1084
 
1084
1085
  var pUrl = '';
1085
1086
  try {
1086
- pUrl = win.top.location.href;
1087
+ pUrl = winTop.location.href;
1087
1088
  } catch (error) {
1088
1089
  pUrl = win.location.href;
1089
1090
  }
@@ -2537,7 +2538,7 @@ var isLogined = function () {
2537
2538
  pathname = '';
2538
2539
 
2539
2540
  try {
2540
- pathname = win.top.location.pathname;
2541
+ pathname = winTop.location.pathname;
2541
2542
  } catch (error) {
2542
2543
  pathname = win.location.pathname;
2543
2544
  }
@@ -2603,12 +2604,12 @@ var isLogined = function () {
2603
2604
  });
2604
2605
  try {
2605
2606
  var url = delUrlParam({
2606
- url: win.top.location.href,
2607
+ url: winTop.location.href,
2607
2608
  key: ['serverId', 'authType', 'code', 'sessionId']
2608
2609
  });
2609
- win.top.location.href = url;
2610
+ winTop.location.href = url;
2610
2611
  setTimeout(function () {
2611
- win.top.location.reload();
2612
+ winTop.location.reload();
2612
2613
  }, 200);
2613
2614
  } catch (error) {
2614
2615
  var _url2 = delUrlParam({
@@ -2627,8 +2628,8 @@ var isLogined = function () {
2627
2628
  break;
2628
2629
  case 3:
2629
2630
  try {
2630
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2631
- win.top.location.href = href;
2631
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(winTop.location.href));
2632
+ winTop.location.href = href;
2632
2633
  } catch (error) {
2633
2634
  var _href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.location.href));
2634
2635
  win.location.href = _href;
@@ -2642,18 +2643,18 @@ var isLogined = function () {
2642
2643
  sessionStorage.setItem('extUserBindHandleId', results.extUserBindHandleId);
2643
2644
  try {
2644
2645
  if (loginPage) {
2645
- win.top.location.replace(loginPage);
2646
+ winTop.location.replace(loginPage);
2646
2647
  } else if (document.referrer) {
2647
2648
  var referrerUrl = new URL(document.referrer);
2648
- if (referrerUrl.host !== win.top.location.host) {
2649
- win.top.location.replace(document.referrer);
2650
- } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2651
- win.top.location.href = './login.html';
2649
+ if (referrerUrl.host !== winTop.location.host) {
2650
+ winTop.location.replace(document.referrer);
2651
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2652
+ winTop.location.href = './login.html';
2652
2653
  } else {
2653
2654
  next('/login');
2654
2655
  }
2655
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2656
- win.top.location.href = './login.html';
2656
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2657
+ winTop.location.href = './login.html';
2657
2658
  } else {
2658
2659
  next('/login');
2659
2660
  }
@@ -2672,18 +2673,18 @@ var isLogined = function () {
2672
2673
  callback: function callback() {
2673
2674
  try {
2674
2675
  if (loginPage) {
2675
- win.top.location.replace(loginPage);
2676
+ winTop.location.replace(loginPage);
2676
2677
  } else if (document.referrer) {
2677
2678
  var referrerUrl = new URL(document.referrer);
2678
- if (referrerUrl.host !== win.top.location.host) {
2679
- win.top.location.replace(document.referrer);
2680
- } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2681
- win.top.location.href = './login.html';
2679
+ if (referrerUrl.host !== winTop.location.host) {
2680
+ winTop.location.replace(document.referrer);
2681
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2682
+ winTop.location.href = './login.html';
2682
2683
  } else {
2683
2684
  next('/login');
2684
2685
  }
2685
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2686
- win.top.location.href = './login.html';
2686
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2687
+ winTop.location.href = './login.html';
2687
2688
  } else {
2688
2689
  next('/login');
2689
2690
  }
@@ -2712,19 +2713,19 @@ var isLogined = function () {
2712
2713
  } else {
2713
2714
  try {
2714
2715
  if (loginPage) {
2715
- win.top.location.replace(loginPage);
2716
+ winTop.location.replace(loginPage);
2716
2717
  } else if (document.referrer) {
2717
2718
  referrerUrl = new URL(document.referrer);
2718
2719
 
2719
- if (referrerUrl.host !== win.top.location.host) {
2720
- win.top.location.replace(document.referrer);
2721
- } else if (win.top.location.href.indexOf('main.html') > -1 || win.top.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2722
- win.top.location.href = './login.html';
2720
+ if (referrerUrl.host !== winTop.location.host) {
2721
+ winTop.location.replace(document.referrer);
2722
+ } else if (winTop.location.href.indexOf('main.html') > -1 || winTop.location.href.indexOf('index.html') > -1 || document.referrer.indexOf('main.html') > -1 || document.referrer.indexOf('index.html') > -1) {
2723
+ winTop.location.href = './login.html';
2723
2724
  } else {
2724
2725
  next('/login');
2725
2726
  }
2726
- } else if (win.top.location.href.indexOf('main.html') > -1) {
2727
- win.top.location.href = './login.html';
2727
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
2728
+ winTop.location.href = './login.html';
2728
2729
  } else {
2729
2730
  next('/login');
2730
2731
  }
@@ -2856,7 +2857,7 @@ var util_loading = function loading($loading, res) {
2856
2857
  }
2857
2858
  if (isObject(res)) {
2858
2859
  var config = extend({}, {
2859
- target: win.top.document.body,
2860
+ target: winTop.document.body,
2860
2861
  fullscreen: true,
2861
2862
  background: 'rgba(0, 0, 0, 0.65)',
2862
2863
  spinner: 'el-icon-loading',
@@ -2865,7 +2866,7 @@ var util_loading = function loading($loading, res) {
2865
2866
  return $loading(config);
2866
2867
  } else {
2867
2868
  var _loading = $loading({
2868
- target: win.top.document.body,
2869
+ target: winTop.document.body,
2869
2870
  fullscreen: true,
2870
2871
  background: 'rgba(0, 0, 0, 0.65)',
2871
2872
  spinner: 'el-icon-loading',
@@ -3011,7 +3012,7 @@ var util_responses = function responses(data) {
3011
3012
  removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump', 'showLaunch']);
3012
3013
  var href = '';
3013
3014
  try {
3014
- href = win.top.location.href;
3015
+ href = winTop.location.href;
3015
3016
  } catch (error) {
3016
3017
  href = win.location.href;
3017
3018
  }
@@ -3036,7 +3037,7 @@ var util_responses = function responses(data) {
3036
3037
  if (loginPage) {
3037
3038
  var src = void 0;
3038
3039
  if (!startWith(loginPage, ['http', '/'], true)) {
3039
- var pathname = win.top.location.pathname;
3040
+ var pathname = winTop.location.pathname;
3040
3041
  if (pathname !== '/') {
3041
3042
  pathname = pathname.split('/');
3042
3043
  pathname.splice(pathname.length - 1);
@@ -3048,16 +3049,16 @@ var util_responses = function responses(data) {
3048
3049
  } else {
3049
3050
  src = loginPage;
3050
3051
  }
3051
- win.top.location.href = src;
3052
- } else if (win.top.location.href.indexOf('main.html') > -1) {
3053
- win.top.location.href = './login.html';
3052
+ winTop.location.href = src;
3053
+ } else if (winTop.location.href.indexOf('main.html') > -1) {
3054
+ winTop.location.href = './login.html';
3054
3055
  } else {
3055
- var hash = win.top.location.hash;
3056
+ var hash = winTop.location.hash;
3056
3057
  if (hash) {
3057
- var len = win.top.location.href.indexOf(hash);
3058
- win.top.location.href = win.location.href.slice(0, len) + '#/login';
3058
+ var len = winTop.location.href.indexOf(hash);
3059
+ winTop.location.href = win.location.href.slice(0, len) + '#/login';
3059
3060
  } else {
3060
- win.top.location.href = '/login.html';
3061
+ winTop.location.href = '/login.html';
3061
3062
  }
3062
3063
  }
3063
3064
  } catch (error) {
@@ -3876,9 +3877,9 @@ var removeCookie = function removeCookie(key) {
3876
3877
 
3877
3878
  var winTopOpen = function winTopOpen(config) {
3878
3879
  if (isIE) {
3879
- if (win.top !== win.self) {
3880
+ if (winTop !== win.self) {
3880
3881
  try {
3881
- win.top.windowOpen(config);
3882
+ winTop.windowOpen(config);
3882
3883
  } catch (error) {
3883
3884
  win.postMessage({ method: 'windowOpen', query: config }, '*');
3884
3885
  }
@@ -4656,8 +4657,8 @@ module.exports = require("throttle-debounce");
4656
4657
  // ESM COMPAT FLAG
4657
4658
  __webpack_require__.r(__webpack_exports__);
4658
4659
 
4659
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=d5922368&
4660
- var mainvue_type_template_id_d5922368_render = function () {
4660
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=339d1ec1&
4661
+ var mainvue_type_template_id_339d1ec1_render = function () {
4661
4662
  var _vm = this
4662
4663
  var _h = _vm.$createElement
4663
4664
  var _c = _vm._self._c || _h
@@ -5059,10 +5060,10 @@ var mainvue_type_template_id_d5922368_render = function () {
5059
5060
  )
5060
5061
  }
5061
5062
  var staticRenderFns = []
5062
- mainvue_type_template_id_d5922368_render._withStripped = true
5063
+ mainvue_type_template_id_339d1ec1_render._withStripped = true
5063
5064
 
5064
5065
 
5065
- // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=d5922368&
5066
+ // CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=339d1ec1&
5066
5067
 
5067
5068
  // EXTERNAL MODULE: ./src/config/api.js
5068
5069
  var api = __webpack_require__(1);
@@ -7512,6 +7513,7 @@ var pageView = util["a" /* default */].getParams('pageView');
7512
7513
  default: false
7513
7514
  },
7514
7515
  readonly: Boolean,
7516
+ allowToolbar: Boolean,
7515
7517
  url: {
7516
7518
  type: String,
7517
7519
  default: ''
@@ -7917,27 +7919,51 @@ var pageView = util["a" /* default */].getParams('pageView');
7917
7919
  },
7918
7920
  showToolbar: function showToolbar() {
7919
7921
  if (this.readonly) {
7920
- return false;
7921
- }
7922
- if (typeof this.toolbar === 'boolean') {
7923
- if (this.toolbar) {
7924
- this.toolbars = [{
7925
- type: 'search',
7926
- contents: [{
7927
- type: 'text',
7928
- name: 'keyword',
7929
- placeholder: '请输入关键字'
7930
- }]
7931
- }];
7922
+ if (this.allowToolbar) {
7923
+ if (typeof this.toolbar === 'boolean') {
7924
+ if (this.toolbar) {
7925
+ this.toolbars = [{
7926
+ type: 'search',
7927
+ contents: [{
7928
+ type: 'text',
7929
+ name: 'keyword',
7930
+ placeholder: '请输入关键字'
7931
+ }]
7932
+ }];
7933
+ }
7934
+ return this.toolbar;
7935
+ } else if (Array.isArray(this.toolbar)) {
7936
+ this.toolbars = this.toolbar;
7937
+ return true;
7938
+ } else {
7939
+ this.toolbars = this.toolbar.contents;
7940
+ this.toolbarEvents = this.toolbar.events || {};
7941
+ return true;
7942
+ }
7943
+ } else {
7944
+ return false;
7932
7945
  }
7933
- return this.toolbar;
7934
- } else if (Array.isArray(this.toolbar)) {
7935
- this.toolbars = this.toolbar;
7936
- return true;
7937
7946
  } else {
7938
- this.toolbars = this.toolbar.contents;
7939
- this.toolbarEvents = this.toolbar.events || {};
7940
- return true;
7947
+ if (typeof this.toolbar === 'boolean') {
7948
+ if (this.toolbar) {
7949
+ this.toolbars = [{
7950
+ type: 'search',
7951
+ contents: [{
7952
+ type: 'text',
7953
+ name: 'keyword',
7954
+ placeholder: '请输入关键字'
7955
+ }]
7956
+ }];
7957
+ }
7958
+ return this.toolbar;
7959
+ } else if (Array.isArray(this.toolbar)) {
7960
+ this.toolbars = this.toolbar;
7961
+ return true;
7962
+ } else {
7963
+ this.toolbars = this.toolbar.contents;
7964
+ this.toolbarEvents = this.toolbar.events || {};
7965
+ return true;
7966
+ }
7941
7967
  }
7942
7968
  },
7943
7969
 
@@ -8976,7 +9002,7 @@ var pageView = util["a" /* default */].getParams('pageView');
8976
9002
 
8977
9003
  var main_component = Object(componentNormalizer["a" /* default */])(
8978
9004
  src_mainvue_type_script_lang_js_,
8979
- mainvue_type_template_id_d5922368_render,
9005
+ mainvue_type_template_id_339d1ec1_render,
8980
9006
  staticRenderFns,
8981
9007
  false,
8982
9008
  null,