eoss-ui 0.3.97 → 0.4.14

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 (102) hide show
  1. package/lib/button-group.js +98 -15
  2. package/lib/button.js +100 -17
  3. package/lib/ca-login.js +326 -0
  4. package/lib/card.js +2 -2
  5. package/lib/cascader.js +2 -2
  6. package/lib/checkbox-group.js +104 -18
  7. package/lib/clients.js +2 -2
  8. package/lib/data-table-form.js +104 -21
  9. package/lib/data-table.js +228 -35
  10. package/lib/date-picker.js +100 -17
  11. package/lib/dialog.js +101 -17
  12. package/lib/enterprise.js +2 -2
  13. package/lib/eoss-ui.common.js +480 -122
  14. package/lib/error-page.js +2 -2
  15. package/lib/flow-group.js +100 -17
  16. package/lib/flow-list.js +98 -15
  17. package/lib/flow.js +98 -15
  18. package/lib/form.js +112 -26
  19. package/lib/handle-user.js +100 -17
  20. package/lib/handler.js +100 -17
  21. package/lib/index.js +1 -1
  22. package/lib/input-number.js +100 -17
  23. package/lib/input.js +100 -17
  24. package/lib/label.js +2 -2
  25. package/lib/login.js +126 -27
  26. package/lib/main.js +98 -15
  27. package/lib/mainComp.js +98 -15
  28. package/lib/menu.js +2 -2
  29. package/lib/nav.js +100 -17
  30. package/lib/notify.js +2 -2
  31. package/lib/page.js +100 -17
  32. package/lib/pagination.js +2 -2
  33. package/lib/player.js +100 -17
  34. package/lib/qr-code.js +107 -24
  35. package/lib/radio-group.js +106 -20
  36. package/lib/select-ganged.js +104 -18
  37. package/lib/select.js +114 -25
  38. package/lib/selector-panel.js +109 -23
  39. package/lib/selector.js +106 -20
  40. package/lib/sizer.js +100 -17
  41. package/lib/steps.js +100 -17
  42. package/lib/switch.js +100 -17
  43. package/lib/table-form.js +107 -24
  44. package/lib/tabs-panel.js +2 -2
  45. package/lib/tabs.js +100 -17
  46. package/lib/theme-chalk/base.css +1 -1
  47. package/lib/theme-chalk/ca-login.css +1 -0
  48. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  49. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  50. package/lib/theme-chalk/icon.css +1 -1
  51. package/lib/theme-chalk/index.css +1 -1
  52. package/lib/theme-chalk/main.css +1 -1
  53. package/lib/theme-chalk/menu.css +1 -1
  54. package/lib/theme-chalk/sizer.css +1 -1
  55. package/lib/theme-chalk/upload.css +1 -1
  56. package/lib/tips.js +110 -22
  57. package/lib/toolbar.js +2 -2
  58. package/lib/tree-group.js +100 -17
  59. package/lib/tree.js +100 -17
  60. package/lib/upload.js +98 -15
  61. package/lib/utils/util.js +98 -15
  62. package/lib/wujie.js +100 -17
  63. package/lib/wxlogin.js +100 -17
  64. package/package.json +2 -2
  65. package/packages/ca-login/index.js +5 -0
  66. package/packages/ca-login/src/main.vue +62 -0
  67. package/packages/checkbox-group/index.js +3 -3
  68. package/packages/checkbox-group/src/main.vue +4 -1
  69. package/packages/data-table/src/column.vue +110 -28
  70. package/packages/data-table/src/main.vue +2 -1
  71. package/packages/data-table-form/src/table.vue +1 -1
  72. package/packages/form/src/main.vue +17 -7
  73. package/packages/login/src/main.vue +40 -13
  74. package/packages/radio-group/index.js +3 -3
  75. package/packages/radio-group/src/main.vue +4 -1
  76. package/packages/select/src/main.vue +7 -1
  77. package/packages/select-ganged/src/main.vue +4 -1
  78. package/packages/selector/src/main.vue +4 -1
  79. package/packages/selector-panel/src/selection.vue +4 -1
  80. package/packages/theme-chalk/lib/base.css +1 -1
  81. package/packages/theme-chalk/lib/ca-login.css +1 -0
  82. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  83. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  84. package/packages/theme-chalk/lib/icon.css +1 -1
  85. package/packages/theme-chalk/lib/index.css +1 -1
  86. package/packages/theme-chalk/lib/main.css +1 -1
  87. package/packages/theme-chalk/lib/menu.css +1 -1
  88. package/packages/theme-chalk/lib/sizer.css +1 -1
  89. package/packages/theme-chalk/lib/upload.css +1 -1
  90. package/packages/theme-chalk/src/ca-login.scss +4 -0
  91. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  92. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  93. package/packages/theme-chalk/src/icon.scss +8 -0
  94. package/packages/theme-chalk/src/index.scss +1 -0
  95. package/packages/tips/src/main.vue +5 -2
  96. package/src/index.js +4 -1
  97. package/src/utils/util.js +108 -36
  98. package/lib/theme-chalk/radio.css +0 -1
  99. package/packages/radio/index.js +0 -5
  100. package/packages/radio/src/main.vue +0 -259
  101. package/packages/theme-chalk/lib/radio.css +0 -1
  102. package/packages/theme-chalk/src/radio.scss +0 -3
@@ -534,7 +534,7 @@ var esEncode = function esEncode(value) {
534
534
  **/
535
535
  var esDecode = function esDecode(value) {
536
536
  var kleng = publicKey.length;
537
- var result;
537
+ var result = void 0;
538
538
  var cat1 = void 0;
539
539
  var cat2 = void 0;
540
540
  var cat3 = void 0;
@@ -639,11 +639,13 @@ var exportXls = function exportXls(_ref6) {
639
639
  _ref6$data = _ref6.data,
640
640
  data = _ref6$data === undefined ? [] : _ref6$data,
641
641
  name = _ref6.name,
642
- numbers = _ref6.numbers;
642
+ numbers = _ref6.numbers,
643
+ option = _ref6.option;
643
644
 
644
645
  var tbody = '';
645
646
  var aligns = [];
646
647
  var fields = [];
648
+ var keys = {};
647
649
  var others = {};
648
650
  var alink = document.createElement('a');
649
651
  for (var i = 0; i < thead.length; i++) {
@@ -653,12 +655,15 @@ var exportXls = function exportXls(_ref6) {
653
655
  }
654
656
  var tr = thead[i];
655
657
  var col = 0;
656
- for (var _x = 0; _x < tr.length; _x++) {
657
- var td = tr[_x];
658
+ for (var x = 0; x < tr.length; x++) {
659
+ var td = tr[x];
658
660
  if (td.property) {
659
- if (col === _x) {
661
+ if (col === x) {
660
662
  fields.push(td.property);
661
663
  aligns.push(td.align);
664
+ if (td.labelKey && td.valueKey) {
665
+ keys[td.property] = { labelKey: td.labelKey, valueKey: td.valueKey, multiple: !!(td.valueToString || td['value-to-string']) };
666
+ }
662
667
  } else {
663
668
  others[String(col)] = [td.property, td.align];
664
669
  }
@@ -676,12 +681,72 @@ var exportXls = function exportXls(_ref6) {
676
681
  fields.splice(_i2, 0, others[_i2][0]);
677
682
  aligns.splice(_i2, 0, others[_i2][1]);
678
683
  }
679
- for (var _i3 = 0; _i3 < data.length; _i3++) {
684
+
685
+ var _loop = function _loop(_i3) {
680
686
  tbody += '<tr>';
681
- for (var x in fields) {
682
- tbody += '<td align="' + aligns[x] + '">' + data[_i3][fields[x]] + '</td>';
687
+
688
+ var _loop2 = function _loop2(_x) {
689
+ var field = '';
690
+ var valueKey = keys[fields[_x]] && keys[fields[_x]].valueKey ? keys[fields[_x]].valueKey : 'value';
691
+ var labelKey = keys[fields[_x]] && keys[fields[_x]].labelKey ? keys[fields[_x]].labelKey : 'name';
692
+ if (option[fields[_x]]) {
693
+ if (Array.isArray(data[_i3][fields[_x]])) {
694
+ field = [];
695
+ data[_i3][fields[_x]].forEach(function (ele) {
696
+ option[fields[_x]].forEach(function (item) {
697
+ // eslint-disable-next-line eqeqeq
698
+ if (item[valueKey] == ele) {
699
+ field.push(item[labelKey]);
700
+ return;
701
+ }
702
+ });
703
+ });
704
+ field = field.join(' ');
705
+ } else if (typeof data[_i3][fields[_x]] === 'string' && keys[fields[_x]] && keys[fields[_x]].multiple) {
706
+ field = [];
707
+ data[_i3][fields[_x]].split(',').forEach(function (ele) {
708
+ option[fields[_x]].forEach(function (item) {
709
+ // eslint-disable-next-line eqeqeq
710
+ if (item[valueKey] == ele) {
711
+ field.push(item[labelKey]);
712
+ return;
713
+ }
714
+ });
715
+ });
716
+ field = field.join(' ');
717
+ } else {
718
+ option[fields[_x]].forEach(function (item) {
719
+ // eslint-disable-next-line eqeqeq
720
+ if (item[valueKey] == data[_i3][fields[_x]]) {
721
+ field = item[labelKey];
722
+ return;
723
+ }
724
+ });
725
+ }
726
+ } else if (_typeof(data[_i3][fields[_x]]) === 'object' && keys[fields[_x]]) {
727
+ if (Array.isArray(data[_i3][fields[_x]])) {
728
+ data[_i3][fields[_x]].forEach(function (item) {
729
+ field = [];
730
+ field.push({}.toString.call(item) === '[object Object]' ? item[labelKey] : item);
731
+ });
732
+ field = field.join(' ');
733
+ } else {
734
+ field = data[_i3][fields[_x]][labelKey];
735
+ }
736
+ } else {
737
+ field = data[_i3][fields[_x]];
738
+ }
739
+ tbody += '<td align="' + aligns[_x] + '">' + field + '</td>';
740
+ };
741
+
742
+ for (var _x in fields) {
743
+ _loop2(_x);
683
744
  }
684
745
  tbody += '</tr>';
746
+ };
747
+
748
+ for (var _i3 = 0; _i3 < data.length; _i3++) {
749
+ _loop(_i3);
685
750
  }
686
751
  if (!name) {
687
752
  name = 'table_' + new Date().getTime();
@@ -1383,7 +1448,8 @@ var isLogged = function isLogged(_ref8) {
1383
1448
  var to = _ref8.to,
1384
1449
  from = _ref8.from,
1385
1450
  next = _ref8.next,
1386
- exclude = _ref8.exclude,
1451
+ _ref8$exclude = _ref8.exclude,
1452
+ exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1387
1453
  open = _ref8.open,
1388
1454
  cookie = _ref8.cookie,
1389
1455
  loginPage = _ref8.loginPage,
@@ -1429,10 +1495,27 @@ var isLogged = function isLogged(_ref8) {
1429
1495
  break;
1430
1496
  case 3:
1431
1497
  var href = res.results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
1432
- if (open) {
1433
- win.open(href);
1498
+ if (to.query.openType) {
1499
+ switch (to.query.openType) {
1500
+ case 'self':
1501
+ win.location.href = href;
1502
+ break;
1503
+ case 'blank':
1504
+ win.open(href);
1505
+ break;
1506
+ case 'top':
1507
+ win.top.location.href = href;
1508
+ break;
1509
+ case 'parent':
1510
+ win.parent.location.href = href;
1511
+ break;
1512
+ }
1434
1513
  } else {
1435
- win.top.location.href = href;
1514
+ if (open) {
1515
+ win.open(href);
1516
+ } else {
1517
+ win.top.location.href = href;
1518
+ }
1436
1519
  }
1437
1520
  break;
1438
1521
  }
@@ -1444,9 +1527,9 @@ var isLogged = function isLogged(_ref8) {
1444
1527
  }
1445
1528
  }
1446
1529
  }).catch(function (e) {});
1447
- } else if (token || to.path === '/' || to.path === '/login' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1) {
1448
- if (redirect && to.name && (to.name === 'login' || to.name === 'main')) {
1449
- window.location.replace(urlJoinParams({ url: './' + to.name + '.html', param: to.query }));
1530
+ } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
1531
+ if (redirect && (to.path === '/main' || to.path === '/login')) {
1532
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1450
1533
  } else {
1451
1534
  next();
1452
1535
  }
package/lib/button.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 62);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 63);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -534,7 +534,7 @@ var esEncode = function esEncode(value) {
534
534
  **/
535
535
  var esDecode = function esDecode(value) {
536
536
  var kleng = publicKey.length;
537
- var result;
537
+ var result = void 0;
538
538
  var cat1 = void 0;
539
539
  var cat2 = void 0;
540
540
  var cat3 = void 0;
@@ -639,11 +639,13 @@ var exportXls = function exportXls(_ref6) {
639
639
  _ref6$data = _ref6.data,
640
640
  data = _ref6$data === undefined ? [] : _ref6$data,
641
641
  name = _ref6.name,
642
- numbers = _ref6.numbers;
642
+ numbers = _ref6.numbers,
643
+ option = _ref6.option;
643
644
 
644
645
  var tbody = '';
645
646
  var aligns = [];
646
647
  var fields = [];
648
+ var keys = {};
647
649
  var others = {};
648
650
  var alink = document.createElement('a');
649
651
  for (var i = 0; i < thead.length; i++) {
@@ -653,12 +655,15 @@ var exportXls = function exportXls(_ref6) {
653
655
  }
654
656
  var tr = thead[i];
655
657
  var col = 0;
656
- for (var _x = 0; _x < tr.length; _x++) {
657
- var td = tr[_x];
658
+ for (var x = 0; x < tr.length; x++) {
659
+ var td = tr[x];
658
660
  if (td.property) {
659
- if (col === _x) {
661
+ if (col === x) {
660
662
  fields.push(td.property);
661
663
  aligns.push(td.align);
664
+ if (td.labelKey && td.valueKey) {
665
+ keys[td.property] = { labelKey: td.labelKey, valueKey: td.valueKey, multiple: !!(td.valueToString || td['value-to-string']) };
666
+ }
662
667
  } else {
663
668
  others[String(col)] = [td.property, td.align];
664
669
  }
@@ -676,12 +681,72 @@ var exportXls = function exportXls(_ref6) {
676
681
  fields.splice(_i2, 0, others[_i2][0]);
677
682
  aligns.splice(_i2, 0, others[_i2][1]);
678
683
  }
679
- for (var _i3 = 0; _i3 < data.length; _i3++) {
684
+
685
+ var _loop = function _loop(_i3) {
680
686
  tbody += '<tr>';
681
- for (var x in fields) {
682
- tbody += '<td align="' + aligns[x] + '">' + data[_i3][fields[x]] + '</td>';
687
+
688
+ var _loop2 = function _loop2(_x) {
689
+ var field = '';
690
+ var valueKey = keys[fields[_x]] && keys[fields[_x]].valueKey ? keys[fields[_x]].valueKey : 'value';
691
+ var labelKey = keys[fields[_x]] && keys[fields[_x]].labelKey ? keys[fields[_x]].labelKey : 'name';
692
+ if (option[fields[_x]]) {
693
+ if (Array.isArray(data[_i3][fields[_x]])) {
694
+ field = [];
695
+ data[_i3][fields[_x]].forEach(function (ele) {
696
+ option[fields[_x]].forEach(function (item) {
697
+ // eslint-disable-next-line eqeqeq
698
+ if (item[valueKey] == ele) {
699
+ field.push(item[labelKey]);
700
+ return;
701
+ }
702
+ });
703
+ });
704
+ field = field.join(' ');
705
+ } else if (typeof data[_i3][fields[_x]] === 'string' && keys[fields[_x]] && keys[fields[_x]].multiple) {
706
+ field = [];
707
+ data[_i3][fields[_x]].split(',').forEach(function (ele) {
708
+ option[fields[_x]].forEach(function (item) {
709
+ // eslint-disable-next-line eqeqeq
710
+ if (item[valueKey] == ele) {
711
+ field.push(item[labelKey]);
712
+ return;
713
+ }
714
+ });
715
+ });
716
+ field = field.join(' ');
717
+ } else {
718
+ option[fields[_x]].forEach(function (item) {
719
+ // eslint-disable-next-line eqeqeq
720
+ if (item[valueKey] == data[_i3][fields[_x]]) {
721
+ field = item[labelKey];
722
+ return;
723
+ }
724
+ });
725
+ }
726
+ } else if (_typeof(data[_i3][fields[_x]]) === 'object' && keys[fields[_x]]) {
727
+ if (Array.isArray(data[_i3][fields[_x]])) {
728
+ data[_i3][fields[_x]].forEach(function (item) {
729
+ field = [];
730
+ field.push({}.toString.call(item) === '[object Object]' ? item[labelKey] : item);
731
+ });
732
+ field = field.join(' ');
733
+ } else {
734
+ field = data[_i3][fields[_x]][labelKey];
735
+ }
736
+ } else {
737
+ field = data[_i3][fields[_x]];
738
+ }
739
+ tbody += '<td align="' + aligns[_x] + '">' + field + '</td>';
740
+ };
741
+
742
+ for (var _x in fields) {
743
+ _loop2(_x);
683
744
  }
684
745
  tbody += '</tr>';
746
+ };
747
+
748
+ for (var _i3 = 0; _i3 < data.length; _i3++) {
749
+ _loop(_i3);
685
750
  }
686
751
  if (!name) {
687
752
  name = 'table_' + new Date().getTime();
@@ -1383,7 +1448,8 @@ var isLogged = function isLogged(_ref8) {
1383
1448
  var to = _ref8.to,
1384
1449
  from = _ref8.from,
1385
1450
  next = _ref8.next,
1386
- exclude = _ref8.exclude,
1451
+ _ref8$exclude = _ref8.exclude,
1452
+ exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1387
1453
  open = _ref8.open,
1388
1454
  cookie = _ref8.cookie,
1389
1455
  loginPage = _ref8.loginPage,
@@ -1429,10 +1495,27 @@ var isLogged = function isLogged(_ref8) {
1429
1495
  break;
1430
1496
  case 3:
1431
1497
  var href = res.results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
1432
- if (open) {
1433
- win.open(href);
1498
+ if (to.query.openType) {
1499
+ switch (to.query.openType) {
1500
+ case 'self':
1501
+ win.location.href = href;
1502
+ break;
1503
+ case 'blank':
1504
+ win.open(href);
1505
+ break;
1506
+ case 'top':
1507
+ win.top.location.href = href;
1508
+ break;
1509
+ case 'parent':
1510
+ win.parent.location.href = href;
1511
+ break;
1512
+ }
1434
1513
  } else {
1435
- win.top.location.href = href;
1514
+ if (open) {
1515
+ win.open(href);
1516
+ } else {
1517
+ win.top.location.href = href;
1518
+ }
1436
1519
  }
1437
1520
  break;
1438
1521
  }
@@ -1444,9 +1527,9 @@ var isLogged = function isLogged(_ref8) {
1444
1527
  }
1445
1528
  }
1446
1529
  }).catch(function (e) {});
1447
- } else if (token || to.path === '/' || to.path === '/login' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1) {
1448
- if (redirect && to.name && (to.name === 'login' || to.name === 'main')) {
1449
- window.location.replace(urlJoinParams({ url: './' + to.name + '.html', param: to.query }));
1530
+ } else if (token || to.path === '/' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
1531
+ if (redirect && (to.path === '/main' || to.path === '/login')) {
1532
+ window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
1450
1533
  } else {
1451
1534
  next();
1452
1535
  }
@@ -2600,7 +2683,7 @@ module.exports = require("json-bigint");
2600
2683
 
2601
2684
  /***/ }),
2602
2685
 
2603
- /***/ 62:
2686
+ /***/ 63:
2604
2687
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2605
2688
 
2606
2689
  "use strict";
@@ -0,0 +1,326 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "/dist/";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 35);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ 2:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
+
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
96
+
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
100
+
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
+
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
121
+
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
126
+
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
131
+
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
167
+
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
185
+
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
191
+
192
+
193
+ /***/ }),
194
+
195
+ /***/ 35:
196
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
+
198
+ "use strict";
199
+ // ESM COMPAT FLAG
200
+ __webpack_require__.r(__webpack_exports__);
201
+
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/ca-login/src/main.vue?vue&type=template&id=27153275&
203
+ var render = function () {
204
+ var _vm = this
205
+ var _h = _vm.$createElement
206
+ var _c = _vm._self._c || _h
207
+ return _c(
208
+ "span",
209
+ {
210
+ staticClass: "es-ca-login",
211
+ on: {
212
+ click: function ($event) {
213
+ $event.stopPropagation()
214
+ return _vm.handleClick($event)
215
+ },
216
+ },
217
+ },
218
+ [_vm._t("default", [_c("i", { staticClass: "es-icon-ca" })])],
219
+ 2
220
+ )
221
+ }
222
+ var staticRenderFns = []
223
+ render._withStripped = true
224
+
225
+
226
+ // CONCATENATED MODULE: ./packages/ca-login/src/main.vue?vue&type=template&id=27153275&
227
+
228
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/ca-login/src/main.vue?vue&type=script&lang=js&
229
+ //
230
+ //
231
+ //
232
+ //
233
+ //
234
+ //
235
+ //
236
+ //
237
+ //
238
+ //
239
+ //
240
+ //
241
+ //
242
+ //
243
+ //
244
+
245
+ //import util from 'eoss-ui/src/utils/util';
246
+ /* harmony default export */ var mainvue_type_script_lang_js_ = ({
247
+ name: 'EsCaLogin',
248
+ props: {
249
+ type: String,
250
+ javaScript: Array,
251
+ exePath: String,
252
+ license: {
253
+ type: String,
254
+ default: 'MIIMRwYJKoZIhvcNAQcCoIIMODCCDDQCAQExDjAMBggqgRzPVQGDEQUAMIIHjAYJKoZIhvcNAQcBoIIHfQSCB3l7Iklzc3VlciI6IigoKC4qQ0495oiQ6YO95biC5Yqz5Yqo5L+d6Zqc5L+h5oGv5Lit5b+DQ0EuKil8KC4qT1U9Q2xhc3MgMiBFbnRlcnByaXNlIEluZGl2aWR1YWwgU3Vic2NyaWJlciBDQS4qKXwoLipPVT1UZXJtcyBvZiB1c2UgYXQgaHR0cHM6Ly93d3cuaXRydXMuY29tLmNuL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NkE1QjIyOTI5Qjc1REYwREZCQzBENzk2MB8GA1UdIwQYMBaAFD2JxkfLcYWw2TvWSLCJ2ef+79rZMB0GA1UdDgQWBBRLO+1/h4KGh6ASkrEu5gAl2LURADAMBggqgRzPVQGDdQUAA0cAMEQCIL201xfMjR+Y7Gxuq+1y+SxLqSXfJfMfWpM/K4TuV2GCAiDoPocZ+ReODefsGqhvtQ27OpvcYiA/N1ZB55qbXTKEezGCAUUwggFBAgEBMG0wVTEmMCQGA1UEAwwd5aSp6K+a5a6J5L+h5rWL6K+VU00y55So5oi3Q0ExDjAMBgNVBAsMBVRPUENBMQ4wDAYDVQQKDAVUT1BDQTELMAkGA1UEBhMCQ04CFF8lnNrMgrt+8wWzAHuLjsm9+bXyMAwGCCqBHM9VAYMRBQCgaTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNTA1MDExNzIwNTJaMC8GCSqGSIb3DQEJBDEiBCDs2pV1a3ksLnX9zKPnhTuhyReuILoHJ71xo6Thv8PQ4zAMBggqgRzPVQGCLQUABEYwRAIgZ5y2C6hiI4RdMtcVEWcVh0qPhp0rBpdTYIGqBfZlvIwCIFQD0G7u4dK0k0UAnTs3WVNrVfRKE7JLcLprZ+787v91'
255
+ }
256
+ },
257
+ computed: {
258
+ path: function path() {
259
+ if (this.exePath) {
260
+ return this.exePath;
261
+ }
262
+ if (this.type === 'SICHUAN' || this.type === 'sichuan') {
263
+ return 'https://cdn.scca.com.cn/Files/证书助手(i信).rar';
264
+ }
265
+ }
266
+ },
267
+ watch: {},
268
+ data: function data() {
269
+ return {};
270
+ },
271
+ created: function created() {
272
+ // if (this.type === 'SICHUAN' || this.type === 'sichuan') {
273
+ // loadJs();
274
+ // }
275
+ },
276
+ mounted: function mounted() {},
277
+
278
+ methods: {
279
+ handleClick: function handleClick() {
280
+ if (this.type === 'SICHUAN' || this.type === 'sichuan') {
281
+ var config = {
282
+ license: this.license,
283
+ exepath: this.path,
284
+ disableExeUrl: true
285
+ };
286
+ }
287
+ }
288
+ }
289
+ });
290
+ // CONCATENATED MODULE: ./packages/ca-login/src/main.vue?vue&type=script&lang=js&
291
+ /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
292
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
293
+ var componentNormalizer = __webpack_require__(2);
294
+
295
+ // CONCATENATED MODULE: ./packages/ca-login/src/main.vue
296
+
297
+
298
+
299
+
300
+
301
+ /* normalize component */
302
+
303
+ var component = Object(componentNormalizer["a" /* default */])(
304
+ src_mainvue_type_script_lang_js_,
305
+ render,
306
+ staticRenderFns,
307
+ false,
308
+ null,
309
+ null,
310
+ null
311
+
312
+ )
313
+
314
+ /* harmony default export */ var main = (component.exports);
315
+ // CONCATENATED MODULE: ./packages/ca-login/index.js
316
+
317
+
318
+ main.install = function (Vue) {
319
+ return Vue.component(main.name, main);
320
+ };
321
+
322
+ /* harmony default export */ var ca_login = __webpack_exports__["default"] = (main);
323
+
324
+ /***/ })
325
+
326
+ /******/ });