tntd 1.4.20 → 1.4.22

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 (163) hide show
  1. package/components/Handle/README.md +0 -20
  2. package/components/Handle/index.js +44 -7
  3. package/components/locale.js +8 -2
  4. package/dist/1.tntd.js +1 -1
  5. package/dist/stats.json +24430 -24390
  6. package/dist/tntd.css +1 -1
  7. package/dist/tntd.js +13 -8
  8. package/es/ArrayInput/icon.js +5 -5
  9. package/es/ArrayInput/index.js +108 -76
  10. package/es/AuthContext.js +1 -1
  11. package/es/Columns/index.js +38 -31
  12. package/es/DevelopmentLogin/LoginModal.js +45 -32
  13. package/es/DevelopmentLogin/index.js +17 -13
  14. package/es/Ellipsis/Svg/CopySVG.js +13 -13
  15. package/es/Ellipsis/Svg/TickSVG.js +8 -8
  16. package/es/Ellipsis/index.js +69 -58
  17. package/es/Handle/README.md +0 -20
  18. package/es/Handle/index.js +100 -33
  19. package/es/Icon/fonts/iconfont.js +12 -7
  20. package/es/Icon/index.js +13 -10
  21. package/es/Img/Contain.js +29 -24
  22. package/es/Img/Cover.js +54 -40
  23. package/es/Img/index.js +45 -36
  24. package/es/Layout/ActionsContext.js +2 -3
  25. package/es/Layout/AppList.js +92 -37
  26. package/es/Layout/Application.js +72 -26
  27. package/es/Layout/Avatar.js +66 -29
  28. package/es/Layout/CompatibleLanguage.js +94 -39
  29. package/es/Layout/EnterpriseLayout/Avatar.js +76 -38
  30. package/es/Layout/EnterpriseLayout/Language.js +32 -14
  31. package/es/Layout/EnterpriseLayout/Theme.js +34 -16
  32. package/es/Layout/EnterpriseLayout/index.js +16 -14
  33. package/es/Layout/GlobalNavigation/NavigationPopup.js +170 -59
  34. package/es/Layout/GlobalNavigation/index.js +54 -20
  35. package/es/Layout/Header.js +46 -25
  36. package/es/Layout/HeaderActions.js +56 -42
  37. package/es/Layout/HeaderNavs.js +47 -20
  38. package/es/Layout/HeaderTabs.js +102 -49
  39. package/es/Layout/Iconfont.js +1 -1
  40. package/es/Layout/Language.js +32 -14
  41. package/es/Layout/Layout.js +108 -86
  42. package/es/Layout/Logo.js +32 -16
  43. package/es/Layout/OrgAppList.js +107 -62
  44. package/es/Layout/SideMenu.js +124 -63
  45. package/es/Layout/Theme.js +61 -23
  46. package/es/Layout/checkAuth.js +29 -0
  47. package/es/Layout/index.js +34 -26
  48. package/es/Layout/paaslayout/CompactSideMenu.js +74 -35
  49. package/es/Layout/paaslayout/Header.js +45 -22
  50. package/es/Layout/paaslayout/Logo.js +13 -3
  51. package/es/Layout/paaslayout/SideMenu.js +78 -39
  52. package/es/Layout/paaslayout/index.js +102 -75
  53. package/es/Layout/storage.js +9 -10
  54. package/es/Layout/utils.js +136 -0
  55. package/es/LoadingButton/index.js +24 -15
  56. package/es/Modal/index.js +46 -38
  57. package/es/Page/Box.js +41 -34
  58. package/es/Page/index.js +67 -52
  59. package/es/Page/utils.js +5 -0
  60. package/es/QueryForm/Field/Checkbox.js +9 -5
  61. package/es/QueryForm/Field/Select.js +41 -31
  62. package/es/QueryForm/Field/SelectInput.js +41 -26
  63. package/es/QueryForm/Field/fieldsMap.js +1 -0
  64. package/es/QueryForm/Field/index.js +71 -41
  65. package/es/QueryForm/createActions.js +7 -6
  66. package/es/QueryForm/index.js +135 -76
  67. package/es/QueryListScene/List.js +128 -74
  68. package/es/QueryListScene/QueryForm.js +81 -46
  69. package/es/QueryListScene/QueryListScene.js +40 -25
  70. package/es/QueryListScene/Title.js +3 -3
  71. package/es/QueryListScene/Toolbar.js +12 -11
  72. package/es/Select/DropDownWrap.js +50 -29
  73. package/es/Select/index.js +231 -135
  74. package/es/Table/ResizableTable/index.js +40 -26
  75. package/es/Table/index.js +16 -18
  76. package/es/Title/index.js +23 -21
  77. package/es/locale.js +11 -3
  78. package/es/utils/checkAuth.js +5 -3
  79. package/es/utils/findMenuInfoByPath.js +4 -0
  80. package/es/utils/index.js +23 -12
  81. package/lib/ArrayInput/icon.js +6 -6
  82. package/lib/ArrayInput/index.js +127 -78
  83. package/lib/AuthContext.js +4 -1
  84. package/lib/Columns/index.js +47 -31
  85. package/lib/DevelopmentLogin/LoginModal.js +58 -32
  86. package/lib/DevelopmentLogin/index.js +27 -16
  87. package/lib/Ellipsis/Svg/CopySVG.js +15 -13
  88. package/lib/Ellipsis/Svg/TickSVG.js +10 -8
  89. package/lib/Ellipsis/index.js +80 -57
  90. package/lib/Handle/README.md +0 -20
  91. package/lib/Handle/index.js +119 -33
  92. package/lib/Icon/fonts/iconfont.js +12 -7
  93. package/lib/Icon/index.js +20 -11
  94. package/lib/Img/Contain.js +34 -24
  95. package/lib/Img/Cover.js +65 -42
  96. package/lib/Img/index.js +51 -36
  97. package/lib/Layout/ActionsContext.js +4 -1
  98. package/lib/Layout/AppList.js +118 -40
  99. package/lib/Layout/Application.js +86 -26
  100. package/lib/Layout/Avatar.js +86 -32
  101. package/lib/Layout/CompatibleLanguage.js +110 -39
  102. package/lib/Layout/EnterpriseLayout/Avatar.js +100 -41
  103. package/lib/Layout/EnterpriseLayout/Header.js +113 -0
  104. package/lib/Layout/EnterpriseLayout/HeaderActions.js +104 -0
  105. package/lib/Layout/EnterpriseLayout/Language.js +48 -17
  106. package/lib/Layout/EnterpriseLayout/Theme.js +44 -16
  107. package/lib/Layout/EnterpriseLayout/index.js +23 -14
  108. package/lib/Layout/GlobalNavigation/NavigationPopup.js +186 -59
  109. package/lib/Layout/GlobalNavigation/index.js +74 -23
  110. package/lib/Layout/Header.js +63 -28
  111. package/lib/Layout/HeaderActions.js +74 -45
  112. package/lib/Layout/HeaderNavs.js +61 -23
  113. package/lib/Layout/HeaderTabs.js +118 -51
  114. package/lib/Layout/Iconfont.js +5 -1
  115. package/lib/Layout/Language.js +48 -17
  116. package/lib/Layout/Layout.js +128 -88
  117. package/lib/Layout/Logo.js +43 -19
  118. package/lib/Layout/OrgAppList.js +127 -64
  119. package/lib/Layout/SideMenu.js +143 -65
  120. package/lib/Layout/Theme.js +73 -23
  121. package/lib/Layout/checkAuth.js +39 -0
  122. package/lib/Layout/createActions.js +5 -0
  123. package/lib/Layout/images/index.js +28 -0
  124. package/lib/Layout/index.js +55 -30
  125. package/lib/Layout/paaslayout/CompactSideMenu.js +84 -35
  126. package/lib/Layout/paaslayout/Header.js +55 -22
  127. package/lib/Layout/paaslayout/Logo.js +19 -3
  128. package/lib/Layout/paaslayout/SideMenu.js +87 -39
  129. package/lib/Layout/paaslayout/index.js +122 -77
  130. package/lib/Layout/storage.js +40 -11
  131. package/lib/Layout/utils.js +166 -0
  132. package/lib/LoadingButton/index.js +29 -15
  133. package/lib/Modal/index.js +53 -38
  134. package/lib/Page/Box.js +45 -34
  135. package/lib/Page/index.js +77 -52
  136. package/lib/Page/utils.js +9 -1
  137. package/lib/QueryForm/Field/Checkbox.js +13 -5
  138. package/lib/QueryForm/Field/Select.js +53 -33
  139. package/lib/QueryForm/Field/SelectInput.js +56 -28
  140. package/lib/QueryForm/Field/fieldsMap.js +15 -1
  141. package/lib/QueryForm/Field/index.js +81 -43
  142. package/lib/QueryForm/createActions.js +12 -6
  143. package/lib/QueryForm/index.js +157 -78
  144. package/lib/QueryForm/useForm.js +5 -0
  145. package/lib/QueryListScene/List.js +140 -76
  146. package/lib/QueryListScene/QueryForm.js +86 -46
  147. package/lib/QueryListScene/QueryListScene.js +46 -25
  148. package/lib/QueryListScene/Title.js +7 -3
  149. package/lib/QueryListScene/Toolbar.js +16 -11
  150. package/lib/QueryListScene/createActions.js +5 -0
  151. package/lib/QueryListScene/index.js +10 -0
  152. package/lib/QueryListScene/useActions.js +5 -0
  153. package/lib/Select/DropDownWrap.js +56 -31
  154. package/lib/Select/index.js +241 -135
  155. package/lib/Table/ResizableTable/index.js +48 -26
  156. package/lib/Table/index.js +28 -17
  157. package/lib/Title/index.js +28 -21
  158. package/lib/index.js +56 -35
  159. package/lib/locale.js +19 -4
  160. package/lib/utils/checkAuth.js +9 -4
  161. package/lib/utils/findMenuInfoByPath.js +8 -1
  162. package/lib/utils/index.js +42 -15
  163. package/package.json +2 -2
@@ -4,28 +4,79 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
+
7
8
  require("antd/lib/popover/style");
9
+
8
10
  var _popover = _interopRequireDefault(require("antd/lib/popover"));
11
+
9
12
  var _react = require("react");
13
+
10
14
  var _styledComponents = _interopRequireDefault(require("styled-components"));
15
+
11
16
  var _classnames = _interopRequireDefault(require("classnames"));
17
+
12
18
  var _lodash = require("lodash");
19
+
13
20
  var _Icon = _interopRequireDefault(require("../Icon"));
21
+
14
22
  var _images = _interopRequireDefault(require("./images"));
23
+
15
24
  var _storage = require("./storage");
16
- var _templateObject,
17
- _templateObject2,
18
- _templateObject3,
19
- _templateObject4,
20
- _this = void 0;
25
+
26
+ var _this = void 0;
27
+
21
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
22
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
23
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
25
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
26
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
29
+
30
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
31
+
32
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
33
+
34
+ function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
35
+
27
36
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
+
38
+ function _templateObject4() {
39
+ var data = _taggedTemplateLiteral(["\n z-index: 1;\n background-color: #fff;\n border-radius: 4px;\n min-width: 203px;\n padding: 8px 4px 8px 8px;\n .line {\n background: #f0f0f0;\n height: 1px;\n margin: 20px 0;\n width: calc(100% + 44px);\n transform: translateX(-22px);\n }\n"]);
40
+
41
+ _templateObject4 = function _templateObject4() {
42
+ return data;
43
+ };
44
+
45
+ return data;
46
+ }
47
+
48
+ function _templateObject3() {
49
+ var data = _taggedTemplateLiteral(["\n margin-bottom: 20px;\n & > div {\n position: relative;\n display: inline-block;\n cursor: pointer;\n img {\n width: 48px;\n }\n &:first-child {\n margin-right: 10px;\n }\n &:last-child {\n margin-left: 10px;\n }\n & > i, & > .tnt-icon, & > .anticon {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: #1890ff;\n }\n }\n"]);
50
+
51
+ _templateObject3 = function _templateObject3() {
52
+ return data;
53
+ };
54
+
55
+ return data;
56
+ }
57
+
58
+ function _templateObject2() {
59
+ var data = _taggedTemplateLiteral(["\n margin-left: 20px;\n font-size: 20px;\n .tnt-themeS1 & {\n color: rgba(255,255,255,.85);\n }\n .isInIframe & {\n display: none;\n }\n .tnt-icon {\n font-size: 30px;\n vertical-align: middle;\n opacity: .75;\n color: #2b5696;\n .tnt-themeS1 & {\n /* color: #fff; */\n }\n }\n"]);
60
+
61
+ _templateObject2 = function _templateObject2() {
62
+ return data;
63
+ };
64
+
65
+ return data;
66
+ }
67
+
68
+ function _templateObject() {
69
+ var data = _taggedTemplateLiteral(["\n margin-bottom: 10px;\n\n & > div {\n padding: 10px 13px 10px 17px;\n border-radius: 20px 0 0 20px;\n border-right: none;\n display: inline-block;\n color: #fff;\n width: 49%;\n text-align: center;\n font-size: 14px;\n letter-spacing: 0!important;\n color: #666;\n border: 1px solid #e5e5e5;\n vertical-align: middle;\n display: inline-block;\n letter-spacing: -4px;\n cursor: pointer;\n &:first-child {\n padding: 10px 13px 10px 17px;\n border-radius: 20px 0 0 20px;\n border-right: none;\n }\n &:last-child {\n padding: 10px 17px 10px 13px;\n border-radius: 0 20px 20px 0;\n border-left: none;\n }\n &.active {\n background-color: #4b93e5;\n border-color: #4b93e5;\n color: #fff;\n }\n }\n"]);
70
+
71
+ _templateObject = function _templateObject() {
72
+ return data;
73
+ };
74
+
75
+ return data;
76
+ }
77
+
28
78
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
79
+
29
80
  var languages = [{
30
81
  value: 'cn',
31
82
  name: '中文'
@@ -37,10 +88,15 @@ var languagesMap = languages.reduce(function (acc, cur) {
37
88
  acc[cur.value] = cur;
38
89
  return acc;
39
90
  }, {});
40
- var LanguageSwitch = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-bottom: 10px;\n\n & > div {\n padding: 10px 13px 10px 17px;\n border-radius: 20px 0 0 20px;\n border-right: none;\n display: inline-block;\n color: #fff;\n width: 49%;\n text-align: center;\n font-size: 14px;\n letter-spacing: 0!important;\n color: #666;\n border: 1px solid #e5e5e5;\n vertical-align: middle;\n display: inline-block;\n letter-spacing: -4px;\n cursor: pointer;\n &:first-child {\n padding: 10px 13px 10px 17px;\n border-radius: 20px 0 0 20px;\n border-right: none;\n }\n &:last-child {\n padding: 10px 17px 10px 13px;\n border-radius: 0 20px 20px 0;\n border-left: none;\n }\n &.active {\n background-color: #4b93e5;\n border-color: #4b93e5;\n color: #fff;\n }\n }\n"])));
41
- var Theme = _styledComponents["default"].li(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-left: 20px;\n font-size: 20px;\n .tnt-themeS1 & {\n color: rgba(255,255,255,.85);\n }\n .isInIframe & {\n display: none;\n }\n .tnt-icon {\n font-size: 30px;\n vertical-align: middle;\n opacity: .75;\n color: #2b5696;\n .tnt-themeS1 & {\n /* color: #fff; */\n }\n }\n"])));
42
- var ThemeSwitch = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-bottom: 20px;\n & > div {\n position: relative;\n display: inline-block;\n cursor: pointer;\n img {\n width: 48px;\n }\n &:first-child {\n margin-right: 10px;\n }\n &:last-child {\n margin-left: 10px;\n }\n & > i, & > .tnt-icon, & > .anticon {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: #1890ff;\n }\n }\n"])));
43
- var ThemeContentWrapper = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n z-index: 1;\n background-color: #fff;\n border-radius: 4px;\n min-width: 203px;\n padding: 8px 4px 8px 8px;\n .line {\n background: #f0f0f0;\n height: 1px;\n margin: 20px 0;\n width: calc(100% + 44px);\n transform: translateX(-22px);\n }\n"])));
91
+
92
+ var LanguageSwitch = _styledComponents["default"].div(_templateObject());
93
+
94
+ var Theme = _styledComponents["default"].li(_templateObject2());
95
+
96
+ var ThemeSwitch = _styledComponents["default"].div(_templateObject3());
97
+
98
+ var ThemeContentWrapper = _styledComponents["default"].div(_templateObject4());
99
+
44
100
  var themes = [{
45
101
  value: 'themeS1',
46
102
  img: _images["default"].themeSymbol1
@@ -48,15 +104,18 @@ var themes = [{
48
104
  value: 'themeS2',
49
105
  img: _images["default"].themeSymbol2
50
106
  }];
107
+
51
108
  var ThemeContent = function ThemeContent(props) {
52
109
  var config = props.config,
53
- onLanguageChange = props.onLanguageChange,
54
- onThemeChange = props.onThemeChange;
110
+ onLanguageChange = props.onLanguageChange,
111
+ onThemeChange = props.onThemeChange;
112
+
55
113
  var _ref = config || {},
56
- _ref$language = _ref.language,
57
- languageVisible = _ref$language === void 0 ? true : _ref$language,
58
- _ref$theme = _ref.theme,
59
- themeVisible = _ref$theme === void 0 ? true : _ref$theme;
114
+ _ref$language = _ref.language,
115
+ languageVisible = _ref$language === void 0 ? true : _ref$language,
116
+ _ref$theme = _ref.theme,
117
+ themeVisible = _ref$theme === void 0 ? true : _ref$theme;
118
+
60
119
  var getTheme = function getTheme() {
61
120
  var theme = (0, _storage.getThemeStore)() || props.theme || 'themeS2';
62
121
  return themes.some(function (_ref2) {
@@ -64,49 +123,57 @@ var ThemeContent = function ThemeContent(props) {
64
123
  return value === theme;
65
124
  }) ? theme : 'themeS2';
66
125
  };
126
+
67
127
  var _useState = (0, _react.useState)(getTheme()),
68
- _useState2 = _slicedToArray(_useState, 2),
69
- theme = _useState2[0],
70
- setTheme = _useState2[1];
128
+ _useState2 = _slicedToArray(_useState, 2),
129
+ theme = _useState2[0],
130
+ setTheme = _useState2[1];
131
+
71
132
  var changeTheme = function changeTheme(theme) {
72
133
  setTheme(theme);
73
134
  (0, _storage.setThemeStore)(theme);
74
135
  onThemeChange(theme);
75
136
  };
137
+
76
138
  var getLanguage = function getLanguage() {
77
139
  var lang = (0, _storage.getLanguageStore)() || props.language;
140
+
78
141
  if (!languagesMap[lang]) {
79
142
  lang = (0, _lodash.get)(languages, '0.value');
80
143
  }
144
+
81
145
  return lang;
82
146
  };
147
+
83
148
  var _useState3 = (0, _react.useState)(getLanguage()),
84
- _useState4 = _slicedToArray(_useState3, 2),
85
- _useState4$ = _useState4[0],
86
- language = _useState4$ === void 0 ? 'cn' : _useState4$,
87
- setLanguage = _useState4[1];
149
+ _useState4 = _slicedToArray(_useState3, 2),
150
+ _useState4$ = _useState4[0],
151
+ language = _useState4$ === void 0 ? 'cn' : _useState4$,
152
+ setLanguage = _useState4[1];
153
+
88
154
  var changeLanguage = function changeLanguage(language) {
89
155
  setLanguage(language);
90
156
  (0, _storage.setLanguageStore)(language);
91
157
  onLanguageChange(language);
92
158
  };
93
- return /*#__PURE__*/React.createElement(ThemeContentWrapper, null, themeVisible && /*#__PURE__*/React.createElement(ThemeSwitch, null, themes.map(function (_ref3) {
159
+
160
+ return React.createElement(ThemeContentWrapper, null, themeVisible && React.createElement(ThemeSwitch, null, themes.map(function (_ref3) {
94
161
  var value = _ref3.value,
95
- img = _ref3.img;
96
- return /*#__PURE__*/React.createElement("div", {
162
+ img = _ref3.img;
163
+ return React.createElement("div", {
97
164
  key: value,
98
165
  onClick: changeTheme.bind(_this, value)
99
- }, /*#__PURE__*/React.createElement("img", {
166
+ }, React.createElement("img", {
100
167
  src: img
101
- }), theme === value && /*#__PURE__*/React.createElement(_Icon["default"], {
168
+ }), theme === value && React.createElement(_Icon["default"], {
102
169
  type: "check1"
103
170
  }));
104
- })), themeVisible && languageVisible && /*#__PURE__*/React.createElement("div", {
171
+ })), themeVisible && languageVisible && React.createElement("div", {
105
172
  className: "line"
106
- }), languageVisible && /*#__PURE__*/React.createElement(LanguageSwitch, null, languages.map(function (_ref4) {
173
+ }), languageVisible && React.createElement(LanguageSwitch, null, languages.map(function (_ref4) {
107
174
  var value = _ref4.value,
108
- name = _ref4.name;
109
- return /*#__PURE__*/React.createElement("div", {
175
+ name = _ref4.name;
176
+ return React.createElement("div", {
110
177
  className: (0, _classnames["default"])({
111
178
  active: value === language
112
179
  }),
@@ -115,18 +182,22 @@ var ThemeContent = function ThemeContent(props) {
115
182
  }, name);
116
183
  })));
117
184
  };
185
+
118
186
  var _default = function _default(props) {
119
187
  var config = props.config;
188
+
120
189
  if ((config == null ? void 0 : config.language) === false && (config == null ? void 0 : config.theme) === false) {
121
190
  return null;
122
191
  }
123
- return /*#__PURE__*/React.createElement(Theme, null, /*#__PURE__*/React.createElement(_popover["default"], {
192
+
193
+ return React.createElement(Theme, null, React.createElement(_popover["default"], {
124
194
  placement: "bottomRight",
125
195
  title: null,
126
- content: /*#__PURE__*/React.createElement(ThemeContent, props),
196
+ content: React.createElement(ThemeContent, props),
127
197
  trigger: "click"
128
- }, /*#__PURE__*/React.createElement(_Icon["default"], {
198
+ }, React.createElement(_Icon["default"], {
129
199
  type: "daxiaoxie"
130
200
  })));
131
201
  };
202
+
132
203
  exports["default"] = _default;
@@ -1,32 +1,83 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports["default"] = void 0;
9
+
8
10
  require("antd/lib/popover/style");
11
+
9
12
  var _popover = _interopRequireDefault(require("antd/lib/popover"));
13
+
10
14
  require("antd/lib/row/style");
15
+
11
16
  var _row = _interopRequireDefault(require("antd/lib/row"));
17
+
12
18
  require("antd/lib/divider/style");
19
+
13
20
  var _divider = _interopRequireDefault(require("antd/lib/divider"));
21
+
14
22
  var _react = require("react");
23
+
15
24
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
25
+
16
26
  var _lodash = require("lodash");
27
+
17
28
  var _images = _interopRequireDefault(require("../images"));
29
+
18
30
  var _ActionsContext = _interopRequireDefault(require("../ActionsContext"));
31
+
19
32
  var _Language = _interopRequireDefault(require("./Language"));
33
+
20
34
  var _Theme = _interopRequireDefault(require("./Theme"));
35
+
21
36
  var _storage = require("../storage");
22
- var _templateObject, _templateObject2, _templateObject3;
23
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
24
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
37
+
38
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
39
+
40
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
41
+
25
42
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
43
+
44
+ function _templateObject3() {
45
+ var data = _taggedTemplateLiteral(["\n width: 330px;\n z-index: 1;\n background-color: #fff;\n border-radius: 4px;\n box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.1);\n .isInIframe & {\n display: none;\n }\n\n .user-info-body {\n padding: 20px 15px;\n line-height: 16px;\n list-style: none;\n margin: 0;\n .user-info-body-username {\n margin-top: 0px;\n font-family: PingFangSC-Regular;\n font-weight: normal;\n font-size: 14px;\n color: ", ";\n line-height: 14px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .user-info-body-account {\n margin-top: 0px;\n font-family: PingFangSC-Regular;\n font-size: 12px;\n color: #8B919E;\n margin-bottom: 14px;\n line-height: 14px;\n margin-left: 10px;\n }\n }\n .user-info-footer {\n border-top: ", ";\n background-color: #fff;\n height: 36px;\n line-height: 36px;\n padding: 0 15px;\n font-size: 12px;\n color: ", ";\n a{\n flex: 1;\n text-align:center;\n color: ", ";\n }\n }\n"]);
46
+
47
+ _templateObject3 = function _templateObject3() {
48
+ return data;
49
+ };
50
+
51
+ return data;
52
+ }
53
+
54
+ function _templateObject2() {
55
+ var data = _taggedTemplateLiteral(["\n .tnt-layout-personal-popover {\n .ant-popover-inner-content {\n padding: 0;\n }\n }\n"]);
56
+
57
+ _templateObject2 = function _templateObject2() {
58
+ return data;
59
+ };
60
+
61
+ return data;
62
+ }
63
+
64
+ function _templateObject() {
65
+ var data = _taggedTemplateLiteral(["\n margin-right: 0;\n font-size: 0;\n img {\n width: 26px;\n height: 26px;\n border-radius: 50%;\n cursor: pointer;\n .large-size & {\n width: 32px;\n height: 32px;\n }\n }\n"]);
66
+
67
+ _templateObject = function _templateObject() {
68
+ return data;
69
+ };
70
+
71
+ return data;
72
+ }
73
+
26
74
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
27
- var Avatar = _styledComponents["default"].li(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-right: 0;\n font-size: 0;\n img {\n width: 26px;\n height: 26px;\n border-radius: 50%;\n cursor: pointer;\n .large-size & {\n width: 32px;\n height: 32px;\n }\n }\n"])));
28
- var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .tnt-layout-personal-popover {\n .ant-popover-inner-content {\n padding: 0;\n }\n }\n"])));
29
- var UserInfoWrapper = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 330px;\n z-index: 1;\n background-color: #fff;\n border-radius: 4px;\n box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.1);\n .isInIframe & {\n display: none;\n }\n\n .user-info-body {\n padding: 20px 15px;\n line-height: 16px;\n list-style: none;\n margin: 0;\n .user-info-body-username {\n margin-top: 0px;\n font-family: PingFangSC-Regular;\n font-weight: normal;\n font-size: 14px;\n color: ", ";\n line-height: 14px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .user-info-body-account {\n margin-top: 0px;\n font-family: PingFangSC-Regular;\n font-size: 12px;\n color: #8B919E;\n margin-bottom: 14px;\n line-height: 14px;\n margin-left: 10px;\n }\n }\n .user-info-footer {\n border-top: ", ";\n background-color: #fff;\n height: 36px;\n line-height: 36px;\n padding: 0 15px;\n font-size: 12px;\n color: ", ";\n a{\n flex: 1;\n text-align:center;\n color: ", ";\n }\n }\n"])), function (props) {
75
+
76
+ var Avatar = _styledComponents["default"].li(_templateObject());
77
+
78
+ var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject2());
79
+
80
+ var UserInfoWrapper = _styledComponents["default"].div(_templateObject3(), function (props) {
30
81
  return "".concat(props.theme.primaryTextColor);
31
82
  }, function (props) {
32
83
  return "1px solid ".concat(props.theme.dividerColor);
@@ -35,59 +86,63 @@ var UserInfoWrapper = _styledComponents["default"].div(_templateObject3 || (_tem
35
86
  }, function (props) {
36
87
  return "".concat(props.theme.primaryColor);
37
88
  });
89
+
38
90
  var UserInfoContent = function UserInfoContent(props) {
39
91
  var userInfo = props.userInfo,
40
- _props$config = props.config,
41
- config = _props$config === void 0 ? {} : _props$config,
42
- onLogout = props.onLogout,
43
- _props$onChangePasswo = props.onChangePassword,
44
- onChangePassword = _props$onChangePasswo === void 0 ? function () {
45
- return true;
46
- } : _props$onChangePasswo,
47
- _props$onPersonalSett = props.onPersonalSetting,
48
- onPersonalSetting = _props$onPersonalSett === void 0 ? function () {
49
- return true;
50
- } : _props$onPersonalSett,
51
- onLanguageChange = props.onLanguageChange,
52
- onThemeChange = props.onThemeChange;
92
+ _props$config = props.config,
93
+ config = _props$config === void 0 ? {} : _props$config,
94
+ onLogout = props.onLogout,
95
+ _props$onChangePasswo = props.onChangePassword,
96
+ onChangePassword = _props$onChangePasswo === void 0 ? function () {
97
+ return true;
98
+ } : _props$onChangePasswo,
99
+ _props$onPersonalSett = props.onPersonalSetting,
100
+ onPersonalSetting = _props$onPersonalSett === void 0 ? function () {
101
+ return true;
102
+ } : _props$onPersonalSett,
103
+ onLanguageChange = props.onLanguageChange,
104
+ onThemeChange = props.onThemeChange;
105
+
53
106
  var _useContext = (0, _react.useContext)(_ActionsContext["default"]),
54
- getText = _useContext.getText;
107
+ getText = _useContext.getText;
108
+
55
109
  var _ref = config || {},
56
- _ref$language = _ref.language,
57
- language = _ref$language === void 0 ? true : _ref$language;
58
- return /*#__PURE__*/React.createElement(UserInfoWrapper, {
110
+ _ref$language = _ref.language,
111
+ language = _ref$language === void 0 ? true : _ref$language;
112
+
113
+ return React.createElement(UserInfoWrapper, {
59
114
  className: "user-info-setting-wrap"
60
- }, /*#__PURE__*/React.createElement("ul", {
115
+ }, React.createElement("ul", {
61
116
  className: "user-info-body"
62
- }, /*#__PURE__*/React.createElement("li", {
117
+ }, React.createElement("li", {
63
118
  className: "user-info-body-username"
64
- }, userInfo.userName || getText('nameNull'), /*#__PURE__*/React.createElement("span", {
119
+ }, userInfo.userName || getText('nameNull'), React.createElement("span", {
65
120
  className: "user-info-body-account"
66
- }, userInfo.account)), language && /*#__PURE__*/React.createElement(_Language["default"], {
121
+ }, userInfo.account)), language && React.createElement(_Language["default"], {
67
122
  language: userInfo.lang,
68
123
  onChange: onLanguageChange
69
- }), /*#__PURE__*/React.createElement(_Theme["default"], {
124
+ }), React.createElement(_Theme["default"], {
70
125
  theme: userInfo.theme,
71
126
  onChange: onThemeChange
72
- })), /*#__PURE__*/React.createElement(_row["default"], {
127
+ })), React.createElement(_row["default"], {
73
128
  className: "user-info-footer",
74
129
  type: "flex",
75
130
  justify: "space-between",
76
131
  align: "middle"
77
- }, /*#__PURE__*/React.createElement("a", {
132
+ }, React.createElement("a", {
78
133
  onClick: onPersonalSetting,
79
134
  href: "/bridge/userCenter?currentTab=1"
80
- }, getText('personalSettings')), /*#__PURE__*/React.createElement(_divider["default"], {
135
+ }, getText('personalSettings')), React.createElement(_divider["default"], {
81
136
  type: "vertical"
82
- }), /*#__PURE__*/React.createElement("a", {
137
+ }), React.createElement("a", {
83
138
  onClick: onChangePassword,
84
139
  href: "/bridge/userCenter?currentTab=2",
85
140
  style: (0, _storage.getLanguageStore)() === 'en' ? {
86
141
  flex: 2
87
142
  } : {}
88
- }, getText('changePwd')), /*#__PURE__*/React.createElement(_divider["default"], {
143
+ }, getText('changePwd')), React.createElement(_divider["default"], {
89
144
  type: "vertical"
90
- }), /*#__PURE__*/React.createElement("a", {
145
+ }), React.createElement("a", {
91
146
  className: "user-info-footer-signout",
92
147
  onClick: function onClick() {
93
148
  if (onLogout) {
@@ -100,26 +155,30 @@ var UserInfoContent = function UserInfoContent(props) {
100
155
  }
101
156
  }, getText('signOut'))));
102
157
  };
158
+
103
159
  var _default = function _default(props) {
104
160
  var _images$empty2;
161
+
105
162
  var _props$userInfo = props.userInfo,
106
- userInfo = _props$userInfo === void 0 ? {} : _props$userInfo;
163
+ userInfo = _props$userInfo === void 0 ? {} : _props$userInfo;
107
164
  var avatar = userInfo.avatar;
108
- return /*#__PURE__*/React.createElement(Avatar, null, /*#__PURE__*/React.createElement(_popover["default"], {
165
+ return React.createElement(Avatar, null, React.createElement(_popover["default"], {
109
166
  popupClassName: "tnt-layout-personal-popover",
110
167
  placement: "bottomRight",
111
168
  title: null,
112
- content: /*#__PURE__*/React.createElement(UserInfoContent, props),
169
+ content: React.createElement(UserInfoContent, props),
113
170
  trigger: "click"
114
- }, avatar ? /*#__PURE__*/React.createElement("img", {
171
+ }, avatar ? React.createElement("img", {
115
172
  src: avatar.indexOf('base64') > 0 ? avatar : (0, _lodash.get)(_images["default"][avatar], 'default', _images["default"][avatar]),
116
173
  onError: function onError(e) {
117
174
  var _images$empty;
175
+
118
176
  e.target.onerror = null;
119
177
  e.target.src = ((_images$empty = _images["default"].empty) == null ? void 0 : _images$empty["default"]) || _images["default"].empty;
120
178
  }
121
- }) : /*#__PURE__*/React.createElement("img", {
179
+ }) : React.createElement("img", {
122
180
  src: ((_images$empty2 = _images["default"].empty) == null ? void 0 : _images$empty2["default"]) || _images["default"].empty
123
- })), /*#__PURE__*/React.createElement(GlobalStyle, null));
181
+ })), React.createElement(GlobalStyle, null));
124
182
  };
183
+
125
184
  exports["default"] = _default;
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = require("react");
11
+
12
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
13
+
14
+ var _Icon = _interopRequireDefault(require("../../Icon"));
15
+
16
+ var _AppList = _interopRequireDefault(require("../AppList"));
17
+
18
+ var _OrgAppList = _interopRequireDefault(require("../OrgAppList"));
19
+
20
+ var _HeaderActions = _interopRequireDefault(require("./HeaderActions"));
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
25
+
26
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
+
28
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
+
30
+ function _templateObject2() {
31
+ var data = _taggedTemplateLiteral(["\n flex: 1;\n .isInIframe & {\n display: none;\n }\n"]);
32
+
33
+ _templateObject2 = function _templateObject2() {
34
+ return data;
35
+ };
36
+
37
+ return data;
38
+ }
39
+
40
+ function _templateObject() {
41
+ var data = _taggedTemplateLiteral(["\n position: relative;\n z-index: 201;\n height: ", ";\n display: flex;\n color: rgba(255,255,255,.85);\n background: #fff;\n\n .hasHeaderTabs & {\n background: #191D29;\n .tnt-layout-header-content {\n display: none;\n }\n }\n\n .tnt-themeS3.hasHeaderTabs &{\n background: ", "; //#1D4295 !important;\n }\n\n .isInIframe.noAppList &,\n .isEmptyLayout & {\n display: none;\n }\n .tnt-themeS1 & {\n background: #FFFFFF;\n box-shadow: 0 1px 10px 0 rgba(0,0,0,0.15);\n }\n .tnt-themeS1.compatible & {\n /* background: #323b4a; */\n }\n padding-right: 20px;\n background: #FFFFFF;\n box-shadow: 0 1px 10px 0 rgba(0,0,0,0.10);\n .compatible & {\n box-shadow: 0 1px 10px 0 rgba(0,0,0,0.10);\n }\n transition: box-shadow .2s cubic-bezier(.4,0,.2,1), -webkit-box-shadow .2s cubic-bezier(.4,0,.2,1);\n\n .sidebar-collapsed-controller {\n text-align: center;\n width: ", ";\n line-height: ", ";\n height: ", ";\n cursor: pointer;\n color: ", ";\n margin-right: 10px;\n\n & > .tnt-icon {\n font-size: 16px;\n .large-size & {\n font-size: 20px;\n }\n }\n\n i {\n position: relative;\n top: -1px;\n vertical-align: sub;\n }\n\n &:hover {\n background-color: rgba(0,0,0,.06);\n }\n\n .tnt-themeS1 & {\n /* color: rgba(255,255,255,.85); */\n color: ", ";\n }\n .large-size & {\n font-size: 18px;\n }\n .isInIframe & {\n display: none;\n }\n }\n"]);
42
+
43
+ _templateObject = function _templateObject() {
44
+ return data;
45
+ };
46
+
47
+ return data;
48
+ }
49
+
50
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
51
+
52
+ var Header = _styledComponents["default"].div(_templateObject(), function (props) {
53
+ return "".concat(props.theme.headerHeight, "px");
54
+ }, function (props) {
55
+ return "".concat(props.theme.blueBgColor, " !important");
56
+ }, function (props) {
57
+ return "".concat(props.theme.headerHeight, "px");
58
+ }, function (props) {
59
+ return "".concat(props.theme.headerHeight, "px");
60
+ }, function (props) {
61
+ return "".concat(props.theme.headerHeight, "px");
62
+ }, function (props) {
63
+ return "".concat(props.theme.primaryTextColor);
64
+ }, function (props) {
65
+ return "".concat(props.theme.primaryTextColor);
66
+ });
67
+
68
+ var Content = _styledComponents["default"].div(_templateObject2());
69
+
70
+ var _default = (0, _styledComponents.withTheme)(function (props) {
71
+ var collapsed = props.collapsed,
72
+ _props$collapseIconPl = props.collapseIconPlacement,
73
+ collapseIconPlacement = _props$collapseIconPl === void 0 ? 'right' : _props$collapseIconPl,
74
+ selectedAppKey = props.selectedAppKey,
75
+ appList = props.appList,
76
+ orgAppShow = props.orgAppShow,
77
+ orgAppList = props.orgAppList,
78
+ selectedOrgKey = props.selectedOrgKey,
79
+ orgList = props.orgList,
80
+ headerTabs = props.headerTabs,
81
+ onAppChange = props.onAppChange,
82
+ onOrgChange = props.onOrgChange,
83
+ onCollapseChange = props.onCollapseChange,
84
+ extraActions = props.extraActions;
85
+ var headerRef = (0, _react.useRef)();
86
+ return React.createElement(Header, {
87
+ className: "tnt-layout-header",
88
+ ref: headerRef
89
+ }, collapseIconPlacement === 'right' && React.createElement("div", {
90
+ className: "sidebar-collapsed-controller",
91
+ onClick: onCollapseChange
92
+ }, React.createElement(_Icon["default"], {
93
+ type: "menu-".concat(collapsed ? 'unfold' : 'fold')
94
+ })), headerTabs, orgList && React.createElement(_OrgAppList["default"], {
95
+ orgAppShow: orgAppShow,
96
+ selectedOrgKey: selectedOrgKey,
97
+ orgList: orgList,
98
+ onOrgChange: onOrgChange,
99
+ selectedAppKey: selectedAppKey,
100
+ orgAppList: orgAppList,
101
+ onAppChange: onAppChange
102
+ }), appList && !orgList && React.createElement(_AppList["default"], {
103
+ items: appList,
104
+ selectedKey: selectedAppKey,
105
+ onChange: onAppChange
106
+ }), React.createElement(Content, {
107
+ className: "tnt-layout-header-content"
108
+ }, props.children), React.createElement(_HeaderActions["default"], _extends({}, props, {
109
+ headerRef: headerRef
110
+ }), extraActions));
111
+ });
112
+
113
+ exports["default"] = _default;