@jetlinks-web/components 2.7.0 → 3.0.0

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 (284) hide show
  1. package/es/AutoComplete/AutoComplete.js +2 -3
  2. package/es/BadgeStatus/Badge.js +2 -3
  3. package/es/CardSelect/CardSelect.js +23 -18
  4. package/es/CardSelect/style/index.js +25 -1
  5. package/es/CheckButton/CheckButton.js +12 -4
  6. package/es/CheckButton/style/index.js +41 -1
  7. package/es/ConfigProvider/index.js +1 -1
  8. package/es/DragModal/DragModal.js +15 -9
  9. package/es/DragModal/style/index.js +64 -1
  10. package/es/EditTable/Body.js +10 -3
  11. package/es/EditTable/EditTable.js +14 -8
  12. package/es/EditTable/FormItem.js +15 -10
  13. package/es/EditTable/Header.js +16 -6
  14. package/es/EditTable/components/ContextMenu/Menu.js +12 -6
  15. package/es/EditTable/components/Search/search.js +1 -2
  16. package/es/EditTable/components/Search/sort.js +1 -3
  17. package/es/EditTable/group.js +24 -19
  18. package/es/EditTable/hooks/useValidate.js +1 -1
  19. package/es/EditTable/style/body.js +53 -0
  20. package/es/EditTable/style/form.js +24 -0
  21. package/es/EditTable/style/group.js +25 -0
  22. package/es/EditTable/style/header.js +58 -0
  23. package/es/EditTable/style/index.js +42 -1
  24. package/es/EditTable/style/menu.js +27 -0
  25. package/es/EditTable/style/table.js +46 -0
  26. package/es/EditTable/utils.js +1 -1
  27. package/es/Ellipsis/Ellipsis.js +11 -3
  28. package/es/Ellipsis/style/index.js +24 -1
  29. package/es/Empty/Empty.js +1 -1
  30. package/es/FullPage/FullPage.js +1 -2
  31. package/es/LocaleProvider/index.js +1 -2
  32. package/es/PermissionButton/index.js +4 -5
  33. package/es/ProLayout/Basic/BasicLayout.js +46 -42
  34. package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
  35. package/es/ProLayout/Basic/Header.js +4 -8
  36. package/es/ProLayout/Basic/HeaderStyle.js +10 -0
  37. package/es/ProLayout/PageContainer/index.js +20 -16
  38. package/es/ProLayout/PageContainer/style.js +46 -0
  39. package/es/ProLayout/SiderMenu/BaseMenu.js +14 -37
  40. package/es/ProLayout/SiderMenu/SiderMenu.js +25 -36
  41. package/es/ProLayout/SiderMenu/style.js +166 -0
  42. package/es/ProLayout/TopHeader/index.js +12 -11
  43. package/es/ProLayout/TopHeader/style.js +126 -0
  44. package/es/ProLayout/style/index.js +7 -1
  45. package/es/ProLayout/util.js +5 -5
  46. package/es/ProTable/Alert.js +13 -5
  47. package/es/ProTable/Content.js +22 -14
  48. package/es/ProTable/Header.js +22 -12
  49. package/es/ProTable/Pagination.js +13 -5
  50. package/es/ProTable/ProTable.js +43 -27
  51. package/es/ProTable/setting.js +1 -1
  52. package/es/ProTable/style/index.js +109 -1
  53. package/es/RadioButton/RadioButton.js +10 -4
  54. package/es/RadioButton/style/index.js +23 -1
  55. package/es/Scrollbar/Scrollbar.js +10 -3
  56. package/es/Scrollbar/Thumb.js +36 -25
  57. package/es/Scrollbar/style/index.js +63 -1
  58. package/es/Search/Advanced/History.js +24 -17
  59. package/es/Search/Advanced/SaveHistory.js +2 -3
  60. package/es/Search/Advanced/index.js +213 -293
  61. package/es/Search/Item.js +175 -415
  62. package/es/Search/Search.js +78 -172
  63. package/es/Search/hooks/index.js +108 -1
  64. package/es/Search/hooks/useRouteQuery.js +57 -0
  65. package/es/Search/setting.js +132 -14
  66. package/es/Search/style/index.js +4 -2
  67. package/es/Search/style/item.js +28 -0
  68. package/es/Search/style/search.js +133 -0
  69. package/es/Search/util.js +116 -124
  70. package/es/Skeleton/components/DashBoardCard.js +64 -0
  71. package/es/Skeleton/components/DashBoardChart.js +96 -0
  72. package/es/Skeleton/components/Detail.js +110 -0
  73. package/es/Skeleton/components/Drawer.js +91 -0
  74. package/es/Skeleton/components/Item.js +68 -0
  75. package/es/Skeleton/components/List.js +45 -0
  76. package/es/Skeleton/components/ListCard.js +63 -0
  77. package/es/Skeleton/components/ListCardItem.js +86 -0
  78. package/es/Skeleton/components/ListTable.js +76 -0
  79. package/es/Skeleton/components/Page.js +62 -0
  80. package/es/Skeleton/components/Search.js +54 -0
  81. package/es/Skeleton/components/Tree.js +72 -0
  82. package/es/Skeleton/index.js +15 -0
  83. package/es/Skeleton/skeleton.js +58 -0
  84. package/es/Skeleton/style/index.js +132 -0
  85. package/es/Title/style/index.js +29 -1
  86. package/es/Title/title.js +13 -5
  87. package/es/ValueItem/ValueItem.js +29 -72
  88. package/es/components.js +0 -3
  89. package/es/locale/en-US.js +0 -7
  90. package/es/locale/zh-CN.js +0 -7
  91. package/es/style/index.js +0 -3
  92. package/es/style/styleRegister.js +21 -0
  93. package/es/style/variable.js +4 -0
  94. package/es/style.js +0 -12
  95. package/lib/AutoComplete/AutoComplete.js +1 -2
  96. package/lib/BadgeStatus/Badge.js +2 -3
  97. package/lib/CardSelect/CardSelect.js +23 -18
  98. package/lib/CardSelect/style/index.js +30 -1
  99. package/lib/CheckButton/CheckButton.js +12 -4
  100. package/lib/CheckButton/style/index.js +46 -1
  101. package/lib/ConfigProvider/context.js +1 -1
  102. package/lib/ConfigProvider/index.js +3 -3
  103. package/lib/DragModal/DragModal.js +15 -9
  104. package/lib/DragModal/style/index.js +69 -1
  105. package/lib/EditTable/Body.js +10 -3
  106. package/lib/EditTable/EditTable.js +13 -7
  107. package/lib/EditTable/FormItem.js +16 -11
  108. package/lib/EditTable/Header.js +16 -6
  109. package/lib/EditTable/components/ContextMenu/Menu.js +12 -6
  110. package/lib/EditTable/components/Search/search.js +1 -2
  111. package/lib/EditTable/components/Search/sort.js +1 -3
  112. package/lib/EditTable/group.js +24 -19
  113. package/lib/EditTable/hooks/useValidate.js +1 -1
  114. package/lib/EditTable/style/body.js +60 -0
  115. package/lib/EditTable/style/form.js +31 -0
  116. package/lib/EditTable/style/group.js +32 -0
  117. package/lib/EditTable/style/header.js +65 -0
  118. package/lib/EditTable/style/index.js +47 -1
  119. package/lib/EditTable/style/menu.js +33 -0
  120. package/lib/EditTable/style/table.js +52 -0
  121. package/lib/EditTable/utils.js +1 -1
  122. package/lib/Ellipsis/Ellipsis.js +11 -3
  123. package/lib/Ellipsis/style/index.js +29 -1
  124. package/lib/Empty/Empty.js +1 -1
  125. package/lib/FullPage/FullPage.js +1 -2
  126. package/lib/LocaleProvider/index.js +1 -2
  127. package/lib/PermissionButton/index.js +9 -10
  128. package/lib/ProLayout/Basic/BasicLayout.js +55 -51
  129. package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
  130. package/lib/ProLayout/Basic/Header.js +6 -10
  131. package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
  132. package/lib/ProLayout/PageContainer/index.js +24 -20
  133. package/lib/ProLayout/PageContainer/style.js +53 -0
  134. package/lib/ProLayout/SiderMenu/BaseMenu.js +18 -40
  135. package/lib/ProLayout/SiderMenu/SiderMenu.js +28 -39
  136. package/lib/ProLayout/SiderMenu/style.js +173 -0
  137. package/lib/ProLayout/TopHeader/index.js +12 -10
  138. package/lib/ProLayout/TopHeader/style.js +133 -0
  139. package/lib/ProLayout/defaultSettings.js +1 -1
  140. package/lib/ProLayout/style/index.js +12 -1
  141. package/lib/ProLayout/util.js +5 -5
  142. package/lib/ProTable/Alert.js +13 -5
  143. package/lib/ProTable/Content.js +22 -14
  144. package/lib/ProTable/Header.js +22 -12
  145. package/lib/ProTable/Pagination.js +13 -5
  146. package/lib/ProTable/ProTable.js +43 -27
  147. package/lib/ProTable/setting.js +3 -3
  148. package/lib/ProTable/style/index.js +114 -1
  149. package/lib/RadioButton/RadioButton.js +10 -4
  150. package/lib/RadioButton/style/index.js +28 -1
  151. package/lib/Scrollbar/Scrollbar.js +10 -3
  152. package/lib/Scrollbar/Thumb.js +36 -25
  153. package/lib/Scrollbar/style/index.js +68 -1
  154. package/lib/Search/Advanced/History.js +24 -17
  155. package/lib/Search/Advanced/SaveHistory.js +2 -3
  156. package/lib/Search/Advanced/index.js +213 -293
  157. package/lib/Search/Item.js +175 -415
  158. package/lib/Search/Search.js +78 -172
  159. package/lib/Search/hooks/index.js +130 -1
  160. package/lib/Search/hooks/useRouteQuery.js +64 -0
  161. package/lib/Search/setting.js +133 -15
  162. package/lib/Search/style/index.js +9 -2
  163. package/lib/Search/style/item.js +35 -0
  164. package/lib/Search/style/search.js +140 -0
  165. package/lib/Search/util.js +116 -124
  166. package/lib/Skeleton/components/DashBoardCard.js +64 -0
  167. package/lib/Skeleton/components/DashBoardChart.js +96 -0
  168. package/lib/Skeleton/components/Detail.js +110 -0
  169. package/lib/Skeleton/components/Drawer.js +91 -0
  170. package/lib/Skeleton/components/Item.js +68 -0
  171. package/lib/Skeleton/components/List.js +45 -0
  172. package/lib/Skeleton/components/ListCard.js +63 -0
  173. package/lib/Skeleton/components/ListCardItem.js +86 -0
  174. package/lib/Skeleton/components/ListTable.js +76 -0
  175. package/lib/Skeleton/components/Page.js +62 -0
  176. package/lib/Skeleton/components/Search.js +54 -0
  177. package/lib/Skeleton/components/Tree.js +72 -0
  178. package/lib/Skeleton/index.js +75 -0
  179. package/lib/Skeleton/skeleton.js +58 -0
  180. package/lib/Skeleton/style/index.js +139 -0
  181. package/lib/Title/style/index.js +34 -1
  182. package/lib/Title/title.js +13 -5
  183. package/lib/ValueItem/ValueItem.js +29 -72
  184. package/lib/components.js +0 -21
  185. package/lib/locale/en-US.js +0 -7
  186. package/lib/locale/zh-CN.js +0 -7
  187. package/lib/style/components.less +0 -1
  188. package/lib/style/index.js +1 -4
  189. package/lib/style/styleRegister.js +28 -0
  190. package/lib/style/variable.js +10 -0
  191. package/lib/style.js +1 -14
  192. package/package.json +13 -14
  193. package/es/AMap/Map.js +0 -133
  194. package/es/AMap/index.js +0 -5
  195. package/es/AMap/util.js +0 -56
  196. package/es/CardSelect/style/index.css +0 -24
  197. package/es/CardSelect/style/index.less +0 -26
  198. package/es/CheckButton/style/index.css +0 -37
  199. package/es/CheckButton/style/index.less +0 -40
  200. package/es/DragModal/style/index.css +0 -82
  201. package/es/DragModal/style/index.less +0 -97
  202. package/es/Echarts/Echarts.js +0 -48
  203. package/es/Echarts/index.js +0 -5
  204. package/es/EditTable/style/body.less +0 -66
  205. package/es/EditTable/style/form.less +0 -33
  206. package/es/EditTable/style/group.less +0 -32
  207. package/es/EditTable/style/header.less +0 -77
  208. package/es/EditTable/style/index.css +0 -267
  209. package/es/EditTable/style/index.less +0 -41
  210. package/es/EditTable/style/menu.less +0 -25
  211. package/es/EditTable/style/table.less +0 -47
  212. package/es/Ellipsis/style/index.css +0 -17
  213. package/es/Ellipsis/style/index.less +0 -20
  214. package/es/MonacoEditor/Monaco.js +0 -242
  215. package/es/MonacoEditor/index.js +0 -5
  216. package/es/MonacoEditor/style/index.css +0 -4
  217. package/es/MonacoEditor/style/index.js +0 -1
  218. package/es/MonacoEditor/style/index.less +0 -4
  219. package/es/ProLayout/Basic/BasicLayout.less +0 -66
  220. package/es/ProLayout/Basic/Header.less +0 -8
  221. package/es/ProLayout/PageContainer/index.less +0 -103
  222. package/es/ProLayout/SiderMenu/index.less +0 -231
  223. package/es/ProLayout/TopHeader/index.less +0 -174
  224. package/es/ProLayout/style/default.less +0 -4
  225. package/es/ProLayout/style/style.less +0 -7
  226. package/es/ProTable/style/ProTable.less +0 -141
  227. package/es/RadioButton/style/index.css +0 -20
  228. package/es/RadioButton/style/index.less +0 -19
  229. package/es/Scrollbar/style/index.css +0 -65
  230. package/es/Scrollbar/style/index.less +0 -83
  231. package/es/Search/style/Item.less +0 -33
  232. package/es/Search/style/Search.less +0 -179
  233. package/es/Title/style/index.css +0 -23
  234. package/es/Title/style/index.less +0 -25
  235. package/es/style/index.css +0 -5197
  236. package/es/style/index.less +0 -13
  237. package/es/style/variable.css +0 -4
  238. package/es/style/variable.less +0 -4
  239. package/lib/AMap/Map.js +0 -133
  240. package/lib/AMap/index.js +0 -12
  241. package/lib/AMap/util.js +0 -62
  242. package/lib/CardSelect/style/index.css +0 -24
  243. package/lib/CardSelect/style/index.less +0 -26
  244. package/lib/CheckButton/style/index.css +0 -37
  245. package/lib/CheckButton/style/index.less +0 -40
  246. package/lib/DragModal/style/index.css +0 -82
  247. package/lib/DragModal/style/index.less +0 -97
  248. package/lib/Echarts/Echarts.js +0 -48
  249. package/lib/Echarts/index.js +0 -12
  250. package/lib/EditTable/style/body.less +0 -66
  251. package/lib/EditTable/style/form.less +0 -33
  252. package/lib/EditTable/style/group.less +0 -32
  253. package/lib/EditTable/style/header.less +0 -77
  254. package/lib/EditTable/style/index.css +0 -267
  255. package/lib/EditTable/style/index.less +0 -41
  256. package/lib/EditTable/style/menu.less +0 -25
  257. package/lib/EditTable/style/table.less +0 -47
  258. package/lib/Ellipsis/style/index.css +0 -17
  259. package/lib/Ellipsis/style/index.less +0 -20
  260. package/lib/MonacoEditor/Monaco.js +0 -242
  261. package/lib/MonacoEditor/index.js +0 -12
  262. package/lib/MonacoEditor/style/index.css +0 -4
  263. package/lib/MonacoEditor/style/index.js +0 -3
  264. package/lib/MonacoEditor/style/index.less +0 -4
  265. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  266. package/lib/ProLayout/Basic/Header.less +0 -8
  267. package/lib/ProLayout/PageContainer/index.less +0 -103
  268. package/lib/ProLayout/SiderMenu/index.less +0 -231
  269. package/lib/ProLayout/TopHeader/index.less +0 -174
  270. package/lib/ProLayout/style/default.less +0 -4
  271. package/lib/ProLayout/style/style.less +0 -7
  272. package/lib/ProTable/style/ProTable.less +0 -141
  273. package/lib/RadioButton/style/index.css +0 -20
  274. package/lib/RadioButton/style/index.less +0 -19
  275. package/lib/Scrollbar/style/index.css +0 -65
  276. package/lib/Scrollbar/style/index.less +0 -83
  277. package/lib/Search/style/Item.less +0 -33
  278. package/lib/Search/style/Search.less +0 -179
  279. package/lib/Title/style/index.css +0 -23
  280. package/lib/Title/style/index.less +0 -25
  281. package/lib/style/index.css +0 -5197
  282. package/lib/style/index.less +0 -13
  283. package/lib/style/variable.css +0 -4
  284. package/lib/style/variable.less +0 -4
@@ -1 +1,24 @@
1
- import './index.less';
1
+ import genCompoentStyle from "../../style/styleRegister";
2
+ var genEllipsisStyle = function genEllipsisStyle(config) {
3
+ var token = config.token;
4
+ return {
5
+ '.j-ellipsis': {
6
+ overflow: 'hidden',
7
+ verticalAlign: 'bottom'
8
+ },
9
+ '.j-ellipsis-cursor': {
10
+ cursor: 'pointer'
11
+ },
12
+ '.j-ellipsis-line-clamp': {
13
+ display: '-webkit-box',
14
+ '-webkit-box-orient': 'vertical',
15
+ wordBreak: 'break-all'
16
+ },
17
+ '.j-ellipsis-deep': {
18
+ maxHeight: '380px',
19
+ '-webkit-line-clamp': 17,
20
+ textOverflow: 'ellipsis'
21
+ }
22
+ };
23
+ };
24
+ export default genCompoentStyle([genEllipsisStyle]);
package/es/Empty/Empty.js CHANGED
@@ -16,7 +16,7 @@
16
16
  } */
17
17
  import { defineComponent as _defineComponent } from 'vue';
18
18
  import { unref as _unref, renderSlot as _renderSlot, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, withCtx as _withCtx, renderList as _renderList, createSlots as _createSlots, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
19
- import { Empty } from 'ant-design-vue/es/';
19
+ import { Empty } from 'ant-design-vue';
20
20
  import { useSlots } from 'vue';
21
21
  import NoData from './image';
22
22
  import { omit } from 'lodash-es';
@@ -8,8 +8,7 @@
8
8
  "y": "setup-maybe-ref"
9
9
  } */
10
10
  import { defineComponent as _defineComponent } from 'vue';
11
- import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
12
- const _withScopeId = n => (_pushScopeId("data-v-1755250731518"), n = n(), _popScopeId(), n);
11
+ import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
13
12
  const _hoisted_1 = { class: "full-page-warp-content" };
14
13
  import { ref, inject } from 'vue';
15
14
  import { useElementBounding } from '@vueuse/core';
@@ -3,14 +3,13 @@
3
3
  "provide": "setup-const",
4
4
  "reactive": "setup-const",
5
5
  "watch": "setup-const",
6
- "defineOptions": "setup-const",
7
6
  "defaultLocal": "setup-maybe-ref",
8
7
  "props": "setup-reactive-const",
9
8
  "state": "setup-reactive-const"
10
9
  } */
11
10
  import { defineComponent as _defineComponent } from 'vue';
12
11
  import { renderSlot as _renderSlot } from "vue";
13
- import { provide, reactive, watch, } from "vue";
12
+ import { provide, reactive, watch } from "vue";
14
13
  import defaultLocal from '../locale/zh-CN';
15
14
  const __sfc_main__ = _defineComponent({
16
15
  ...{
@@ -1,13 +1,12 @@
1
- import _typeof from "@babel/runtime/helpers/esm/typeof";
2
1
  import _extends from "@babel/runtime/helpers/esm/extends";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
5
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
7
6
  var _excluded = ["popConfirm", "tooltip", "hasPermission", "noPermissionTitle"];
8
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
7
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
9
8
  import { h, defineComponent, computed, inject, getCurrentInstance, toRefs } from "vue";
10
- import { Button, Tooltip, Modal } from 'ant-design-vue/es/';
9
+ import { Button, Tooltip, Modal } from 'ant-design-vue';
11
10
  import "ant-design-vue/es";
12
11
  import { omit } from "lodash-es";
13
12
  import { buttonProps } from "ant-design-vue/es/button/button";
@@ -77,10 +76,10 @@ var PermissionButton = defineComponent({
77
76
  noPermissionTitle = props.noPermissionTitle,
78
77
  buttonProps = _objectWithoutProperties(props, _excluded);
79
78
  if (popConfirm) {
80
- buttonProps.onClick = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
79
+ buttonProps.onClick = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
81
80
  var _props$popConfirmBefo;
82
81
  var _popConfirm;
83
- return _regeneratorRuntime().wrap(function _callee$(_context) {
82
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
84
83
  while (1) switch (_context.prev = _context.next) {
85
84
  case 0:
86
85
  _context.next = 2;
@@ -1,6 +1,7 @@
1
- import { Fragment as _Fragment, createVNode as _createVNode, isVNode as _isVNode, resolveDirective as _resolveDirective } from "vue";
1
+ import { Fragment as _Fragment, createVNode as _createVNode } from "vue";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
5
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
6
  var _excluded = ["pure", "onCollapse", "onOpenKeys", "onSelect", "onMenuClick"];
6
7
  import SiderMenu, { siderMenuProps } from '../SiderMenu/SiderMenu';
@@ -8,14 +9,12 @@ import { computed, defineComponent, provide, reactive, watchEffect, toRefs, h }
8
9
  import { defaultSettingProps, LayoutType } from '../defaultSettings';
9
10
  import { baseHeaderProps } from '../TopHeader';
10
11
  import Header, { headerViewProps } from './Header';
11
- import useConfigInject from "ant-design-vue/es/_util/hooks/useConfigInject";
12
+ import useConfigInject from "ant-design-vue/es/config-provider/hooks/useConfigInject";
12
13
  import { pick } from 'lodash-es';
13
14
  import { defaultRouteContext, routeContextInjectKey } from '../RouteContext';
14
15
  import { getMenuFirstChildren, getSlot } from '../util';
15
- import { Layout, LayoutContent, Breadcrumb, Tabs } from 'ant-design-vue/es/';
16
- function _isSlot(s) {
17
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !_isVNode(s);
18
- }
16
+ import { Layout, LayoutContent, Breadcrumb, Tabs } from 'ant-design-vue';
17
+ import useProLayoutStyle from '../style';
19
18
  export var basicLayoutProps = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, defaultSettingProps), siderMenuProps), baseHeaderProps), headerViewProps), {}, {
20
19
  pure: Boolean,
21
20
  loading: Boolean,
@@ -115,6 +114,13 @@ export default defineComponent({
115
114
  }
116
115
  return props.collapsed ? props.collapsedWidth : props.siderWidth;
117
116
  });
117
+ var stylePrefixCls = computed(function () {
118
+ return 'pro-layout';
119
+ });
120
+ var _useProLayoutStyle = useProLayoutStyle(stylePrefixCls),
121
+ _useProLayoutStyle2 = _slicedToArray(_useProLayoutStyle, 2),
122
+ wrapSSR = _useProLayoutStyle2[0],
123
+ hashId = _useProLayoutStyle2[1];
118
124
  var onCollapse = function onCollapse(collapsed) {
119
125
  emit('update:collapsed', collapsed);
120
126
  emit('collapse', collapsed);
@@ -152,7 +158,7 @@ export default defineComponent({
152
158
  return "".concat(props.prefixCls, "-basicLayout");
153
159
  });
154
160
  var className = computed(function () {
155
- return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, baseClassName.value, true), "".concat(baseClassName.value, "-top-menu"), isTop.value), "".concat(baseClassName.value, "-is-children"), props.isChildrenLayout), "".concat(baseClassName.value, "-fix-siderbar"), props.fixSiderbar), "".concat(baseClassName.value, "-").concat(props.layout), props.layout), "".concat(baseClassName.value, "-").concat(props.layoutType), props.layoutType);
161
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, baseClassName.value, true), "".concat(baseClassName.value, "-top-menu"), isTop.value), "".concat(baseClassName.value, "-is-children"), props.isChildrenLayout), "".concat(baseClassName.value, "-fix-siderbar"), props.fixSiderbar), "".concat(baseClassName.value, "-").concat(props.layout), props.layout), "".concat(baseClassName.value, "-").concat(props.layoutType), props.layoutType), hashId.value, true);
156
162
  });
157
163
  var genLayoutStyle = reactive({
158
164
  position: 'relative'
@@ -246,7 +252,6 @@ export default defineComponent({
246
252
  return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
247
253
  }
248
254
  if (props.layoutType === LayoutType.LIST) {
249
- var _slot;
250
255
  var _slots$default2;
251
256
  return _createVNode(_Fragment, null, [_createVNode("div", {
252
257
  "class": className.value
@@ -273,13 +278,13 @@ export default defineComponent({
273
278
  "onSelect": onSelect,
274
279
  "onOpenKeys": onOpenKeys,
275
280
  "onMenuClick": onMenuClick
276
- }), null), _createVNode(Layout, null, _isSlot(_slot = _createVNode(LayoutContent, null, {
277
- default: function _default() {
278
- return [(_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)];
279
- }
280
- })) ? _slot : {
281
+ }), null), _createVNode(Layout, null, {
281
282
  default: function _default() {
282
- return [_slot];
283
+ return [_createVNode(LayoutContent, null, {
284
+ default: function _default() {
285
+ return [(_slots$default2 = slots.default) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)];
286
+ }
287
+ })];
283
288
  }
284
289
  })];
285
290
  }
@@ -326,7 +331,6 @@ export default defineComponent({
326
331
  })]);
327
332
  } else {
328
333
  var _slots$default4;
329
- var _slot2, _slot3;
330
334
  return _createVNode(_Fragment, null, [_createVNode("div", {
331
335
  "class": className.value
332
336
  }, [_createVNode(Layout, null, {
@@ -354,32 +358,32 @@ export default defineComponent({
354
358
  padding: 0,
355
359
  height: '40px'
356
360
  }, props.pageHeaderStyle || {})
357
- }, _isSlot(_slot2 = _createVNode(Tabs, {
358
- "hide-add": true,
359
- "type": "editable-card",
360
- "class": "history-tabs",
361
- "id": 'history-route-tabs',
362
- "tabBarStyle": {
363
- margin: 0
364
- },
365
- "onTabClick": onTabClick,
366
- "onEdit": onTabEdit,
367
- "activeKey": props.historyActive,
368
- "onChange": onTabChange
369
361
  }, {
370
362
  default: function _default() {
371
- return [historyRender ? historyRender() : props.historyRoutes.map(function (item) {
372
- return _createVNode(Tabs.TabPane, {
373
- "key": item.name,
374
- "tab": item.label,
375
- "closable": true
376
- }, null);
363
+ return [_createVNode(Tabs, {
364
+ "hide-add": true,
365
+ "type": "editable-card",
366
+ "class": "history-tabs",
367
+ "id": "history-route-tabs",
368
+ "tabBarStyle": {
369
+ margin: 0
370
+ },
371
+ "onTabClick": onTabClick,
372
+ "onEdit": onTabEdit,
373
+ "activeKey": props.historyActive,
374
+ "onChange": onTabChange
375
+ }, {
376
+ default: function _default() {
377
+ return [historyRender ? historyRender() : props.historyRoutes.map(function (item) {
378
+ return _createVNode(Tabs.TabPane, {
379
+ "key": item.name,
380
+ "tab": item.label,
381
+ "closable": true
382
+ }, null);
383
+ })];
384
+ }
377
385
  })];
378
386
  }
379
- })) ? _slot2 : {
380
- default: function _default() {
381
- return [_slot2];
382
- }
383
387
  }), _createVNode(LayoutContent, {
384
388
  "style": {
385
389
  flex: '1 1 0',
@@ -393,13 +397,13 @@ export default defineComponent({
393
397
  "style": _objectSpread({
394
398
  padding: '11px 24px'
395
399
  }, props.pageFooterStyle || {})
396
- }, _isSlot(_slot3 = _createVNode(Breadcrumb, {
397
- "routes": breadcrumb.value.routes
398
400
  }, {
399
- itemRender: breadcrumb.value.itemRender
400
- })) ? _slot3 : {
401
401
  default: function _default() {
402
- return [_slot3];
402
+ return [_createVNode(Breadcrumb, {
403
+ "routes": breadcrumb.value.routes
404
+ }, {
405
+ itemRender: breadcrumb.value.itemRender
406
+ })];
403
407
  }
404
408
  })];
405
409
  }
@@ -0,0 +1,39 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ export var genBasicLayoutStyle = function genBasicLayoutStyle(config) {
3
+ var componentCls = config.componentCls,
4
+ token = config.token;
5
+ var basicLayoutPrefixCls = "".concat(token.antCls, "-pro-basicLayout");
6
+ var proLayoutHeaderHeight = '48px';
7
+ return _defineProperty({}, "".concat(basicLayoutPrefixCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
8
+ display: 'flex',
9
+ flexDirection: 'column',
10
+ width: '100%',
11
+ minHeight: '100%'
12
+ }, "".concat(token.antCls, "-layout-header"), _defineProperty({}, "&".concat(token.antCls, "-pro-fixed-header"), {
13
+ position: 'fixed',
14
+ top: 0
15
+ })), "".concat(basicLayoutPrefixCls, "-content"), _defineProperty(_defineProperty(_defineProperty({
16
+ position: 'relative',
17
+ margin: '24px'
18
+ }, "".concat(token.antCls, "-pro-page-container"), {
19
+ margin: '-24px -24px 0'
20
+ }), "".concat(basicLayoutPrefixCls, "-content-disable-margin"), _defineProperty({
21
+ margin: 0
22
+ }, "".concat(token.antCls, "-pro-page-container"), {
23
+ margin: 0
24
+ })), "> ".concat(token.antCls, "-layout"), {
25
+ maxHeight: '100%'
26
+ })), "".concat(basicLayoutPrefixCls, "-is-children").concat(basicLayoutPrefixCls, "-fix-siderbar"), {
27
+ height: '100vh',
28
+ overflow: 'hidden',
29
+ transform: 'rotate(0)'
30
+ }), "".concat(basicLayoutPrefixCls, "-has-header"), _defineProperty({
31
+ '.tech-page-container': {
32
+ height: "calc(100vh - ".concat(proLayoutHeaderHeight, " - ").concat(proLayoutHeaderHeight, ")")
33
+ }
34
+ }, "".concat(basicLayoutPrefixCls, "-is-children"), _defineProperty({
35
+ minHeight: "calc(100vh - ".concat(proLayoutHeaderHeight, ")")
36
+ }, "&".concat(basicLayoutPrefixCls, "-fix-siderbar"), {
37
+ height: "calc(100vh - ".concat(proLayoutHeaderHeight, ")")
38
+ }))));
39
+ };
@@ -1,15 +1,12 @@
1
- import { createVNode as _createVNode, Fragment as _Fragment, isVNode as _isVNode } from "vue";
1
+ import { createVNode as _createVNode, Fragment as _Fragment } from "vue";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import { baseHeaderProps, TopNavHeader } from '../TopHeader';
5
5
  import PropTypes from 'ant-design-vue/es/_util/vue-types';
6
6
  import { defineComponent, computed, toRefs } from 'vue';
7
7
  import { useRouteContext } from '../RouteContext';
8
- import { Layout } from 'ant-design-vue/es/';
8
+ import { Layout } from 'ant-design-vue';
9
9
  import { LayoutType } from "../defaultSettings";
10
- function _isSlot(s) {
11
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !_isVNode(s);
12
- }
13
10
  export var headerViewProps = _objectSpread(_objectSpread({}, baseHeaderProps), {}, {
14
11
  headerRender: {
15
12
  type: [Object, Function, Boolean],
@@ -77,7 +74,6 @@ export default defineComponent({
77
74
  return 0;
78
75
  });
79
76
  return function () {
80
- var _slot;
81
77
  return _createVNode(_Fragment, null, [needFixedHeader.value && _createVNode(Layout.Header, {
82
78
  "style": {
83
79
  height: "".concat(headerHeight.value, "px"),
@@ -94,9 +90,9 @@ export default defineComponent({
94
90
  right: right.value
95
91
  },
96
92
  "class": className.value
97
- }, _isSlot(_slot = renderContent()) ? _slot : {
93
+ }, {
98
94
  default: function _default() {
99
- return [_slot];
95
+ return [renderContent()];
100
96
  }
101
97
  })]);
102
98
  };
@@ -0,0 +1,10 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ export var genHeaderStyle = function genHeaderStyle(config) {
3
+ var componentCls = config.componentCls,
4
+ token = config.token;
5
+ var proLayoutFixedHeaderPrefixCls = "".concat(token.antCls, "-pro-fixed-header");
6
+ return _defineProperty({}, "".concat(proLayoutFixedHeaderPrefixCls), {
7
+ zIndex: 9,
8
+ width: '100%'
9
+ });
10
+ };
@@ -2,11 +2,11 @@ import { Fragment as _Fragment } from "vue";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
- import { createVNode as _createVNode, isVNode as _isVNode } from "vue";
5
+ import { createVNode as _createVNode } from "vue";
6
6
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
7
7
  var _excluded = ["title", "tabList", "tabActiveKey", "content", "pageHeaderRender", "header", "extraContent", "prefixedClassName", "prefixCls", "fixedHeader", "showBack"];
8
- import { withInstall } from 'ant-design-vue/es/_util/type';
9
- import { Affix, Spin, PageHeader, Tabs, Button } from 'ant-design-vue/es/';
8
+ import { withInstall } from "ant-design-vue/es/_util/type";
9
+ import { Affix, Spin, PageHeader, Tabs, Button } from 'ant-design-vue';
10
10
  import { defineComponent, unref, toRefs, computed } from 'vue';
11
11
  import { pageHeaderProps } from "ant-design-vue/es/page-header";
12
12
  import { useRouteContext } from '../RouteContext';
@@ -15,9 +15,7 @@ import "ant-design-vue/es/_util/type";
15
15
  import 'ant-design-vue/es/_util/vue-types';
16
16
  import { LayoutType } from "../defaultSettings";
17
17
  import { useLocaleReceiver } from "../../LocaleReciver";
18
- function _isSlot(s) {
19
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !_isVNode(s);
20
- }
18
+ import useProLayoutStyle from '../style';
21
19
  export var pageHeaderTabConfig = {
22
20
  /**
23
21
  * @name tabs 的列表
@@ -153,7 +151,6 @@ var renderFooter = function renderFooter(props) {
153
151
  }, [item.tab]);
154
152
  };
155
153
  if (tabList && tabList.length) {
156
- var _slot;
157
154
  return _createVNode(Tabs, _objectSpread({
158
155
  "class": "page-container-tabs",
159
156
  "activeKey": tabActiveKey,
@@ -163,14 +160,14 @@ var renderFooter = function renderFooter(props) {
163
160
  }
164
161
  },
165
162
  "tabBarExtraContent": tabBarExtraContent
166
- }, tabProps), _isSlot(_slot = tabList.map(function (item) {
167
- return _createVNode(Tabs.TabPane, _objectSpread(_objectSpread({}, item), {}, {
168
- "tab": tabPane(item),
169
- "key": item.key
170
- }), null);
171
- })) ? _slot : {
163
+ }, tabProps), {
172
164
  default: function _default() {
173
- return [_slot];
165
+ return [tabList.map(function (item) {
166
+ return _createVNode(Tabs.TabPane, _objectSpread(_objectSpread({}, item), {}, {
167
+ "tab": tabPane(item),
168
+ "key": item.key
169
+ }), null);
170
+ })];
174
171
  }
175
172
  });
176
173
  }
@@ -277,11 +274,18 @@ var PageContainer = defineComponent({
277
274
  var value = useRouteContext();
278
275
  var getPrefixCls = value.getPrefixCls;
279
276
  var prefixCls = props.prefixCls || getPrefixCls();
277
+ var stylePrefixCls = computed(function () {
278
+ return 'pro-layout';
279
+ });
280
+ var _useProLayoutStyle = useProLayoutStyle(stylePrefixCls),
281
+ _useProLayoutStyle2 = _slicedToArray(_useProLayoutStyle, 2),
282
+ wrapSSR = _useProLayoutStyle2[0],
283
+ hashId = _useProLayoutStyle2[1];
280
284
  var prefixedClassName = computed(function () {
281
285
  return "".concat(prefixCls, "-page-container");
282
286
  });
283
287
  var classNames = computed(function () {
284
- return _defineProperty(_defineProperty({}, prefixedClassName.value, true), "".concat(prefixCls, "-page-container-ghost"), ghost.value);
288
+ return _defineProperty(_defineProperty(_defineProperty({}, hashId.value, true), prefixedClassName.value, true), "".concat(prefixCls, "-page-container-ghost"), ghost.value);
285
289
  });
286
290
  var headerDom = computed(function () {
287
291
  // const tags = getSlotVNode<DefaultPropRender>(slots, props, 'tags');
@@ -320,7 +324,7 @@ var PageContainer = defineComponent({
320
324
  }) : headerDom.value, _createVNode("div", {
321
325
  "class": "".concat(prefixedClassName.value, "-grid-content")
322
326
  }, [loading.value ? _createVNode(Spin, null, null) : slots.default ? _createVNode("div", null, [_createVNode("div", {
323
- "class": "".concat(prefixedClassName.value, "-children-content ").concat(childrenFullHeight.value ? 'children-full-height' : ''),
327
+ "class": "".concat(prefixedClassName.value, "-children-content ").concat(childrenFullHeight.value ? 'children-full-height' : '', " ").concat(hashId.value),
324
328
  "style": _objectSpread({}, props.contentStyle || {})
325
329
  }, [slots.default()]), value.hasFooterToolbar && _createVNode("div", {
326
330
  "style": {
@@ -0,0 +1,46 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ export var genPageContainerStyle = function genPageContainerStyle(config) {
3
+ var token = config.token;
4
+ var proLayoutPageContainerCls = "".concat(token.antCls, "-pro-page-container");
5
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(proLayoutPageContainerCls, "-children-content"), {
6
+ margin: '24px 24px 0'
7
+ }), "".concat(proLayoutPageContainerCls), _defineProperty(_defineProperty({}, "".concat(proLayoutPageContainerCls, "-warp"), _defineProperty({
8
+ backgroundColor: token.colorBgContainer
9
+ }, "".concat(token.antCls, "-tabs-bar"), {
10
+ margin: 0
11
+ })), "".concat(proLayoutPageContainerCls, "-ghost"), _defineProperty({}, "".concat(proLayoutPageContainerCls, "-warp"), {
12
+ backgroundColor: token.colorBgContainer
13
+ }))), "".concat(proLayoutPageContainerCls, "-main"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(proLayoutPageContainerCls, "-detail"), {
14
+ display: 'flex'
15
+ }), "".concat(proLayoutPageContainerCls, "-row"), {
16
+ display: 'flex',
17
+ width: '100%'
18
+ }), "".concat(proLayoutPageContainerCls, "-title-content"), {
19
+ marginBottom: '16px'
20
+ }), "".concat(proLayoutPageContainerCls, "-title,").concat(proLayoutPageContainerCls, "-content"), {
21
+ flex: 'auto'
22
+ }), "".concat(proLayoutPageContainerCls, "-extraContent,").concat(proLayoutPageContainerCls, "-main"), {
23
+ flex: '0 1 auto'
24
+ }), "".concat(proLayoutPageContainerCls, "-title"), {
25
+ marginBottom: '16px'
26
+ }), "".concat(proLayoutPageContainerCls, "-logo"), {
27
+ marginBottom: '16px'
28
+ }), "".concat(proLayoutPageContainerCls, "-extraContent"), {
29
+ minWidth: '242px',
30
+ marginLeft: '88px',
31
+ textAlign: 'right'
32
+ })), "@media screen and (max-width: ".concat(token.screenXl, "px)"), _defineProperty({}, "".concat(proLayoutPageContainerCls, "-main"), _defineProperty({}, "".concat(proLayoutPageContainerCls, "-extraContent"), {
33
+ marginLeft: '44px'
34
+ }))), "@media screen and (max-width: ".concat(token.screenLG, "px)"), _defineProperty({}, "".concat(proLayoutPageContainerCls, "-main"), _defineProperty({}, "".concat(proLayoutPageContainerCls, "-extraContent"), {
35
+ marginLeft: '20px'
36
+ }))), "@media screen and (max-width: ".concat(token.screenMD, "px)"), _defineProperty({}, "".concat(proLayoutPageContainerCls, "-main"), _defineProperty(_defineProperty({}, "".concat(proLayoutPageContainerCls, "-row"), {
37
+ display: 'block'
38
+ }), "".concat(proLayoutPageContainerCls, "-extraContent,").concat(proLayoutPageContainerCls, "-action"), {
39
+ marginLeft: 0,
40
+ textAlign: 'left'
41
+ }))), "@media screen and (max-width: ".concat(token.screenSM, "px)"), _defineProperty(_defineProperty({}, "".concat(proLayoutPageContainerCls, "-detail"), {
42
+ display: 'block'
43
+ }), "".concat(proLayoutPageContainerCls, "-extraContent"), {
44
+ marginLeft: 0
45
+ }));
46
+ };
@@ -1,5 +1,4 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import { isVNode as _isVNode } from "vue";
3
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
4
3
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
5
4
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
@@ -10,11 +9,8 @@ import { defineComponent, getCurrentInstance, isVNode, resolveComponent, watchEf
10
9
  import { defaultPrefixCls } from '../RouteContext';
11
10
  import IconFont from '../../Icon';
12
11
  import { regular } from '@jetlinks-web/utils';
13
- import { Menu } from 'ant-design-vue/es/';
12
+ import { Menu } from 'ant-design-vue';
14
13
  import { createFromIconfontCN } from '@ant-design/icons-vue';
15
- function _isSlot(s) {
16
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !_isVNode(s);
17
- }
18
14
  export var baseMenuProps = _objectSpread(_objectSpread({}, defaultSettingProps), {}, {
19
15
  prefixCls: {
20
16
  type: String,
@@ -118,8 +114,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(_props, ctx) {
118
114
  });
119
115
  _defineProperty(this, "getSubMenuOrItem", function (item) {
120
116
  var _item$meta, _item$meta2, _item$meta7, _item$meta8;
121
- if (Array.isArray(item.children) && item.children.length > 0 && !(item === null || item === void 0 ? void 0 : (_item$meta = item.meta) === null || _item$meta === void 0 ? void 0 : _item$meta.hideInMenu) && !(item === null || item === void 0 ? void 0 : (_item$meta2 = item.meta) === null || _item$meta2 === void 0 ? void 0 : _item$meta2.hideChildrenInMenu)) {
122
- var _slot;
117
+ if (Array.isArray(item.children) && item.children.length > 0 && !(item !== null && item !== void 0 && (_item$meta = item.meta) !== null && _item$meta !== void 0 && _item$meta.hideInMenu) && !(item !== null && item !== void 0 && (_item$meta2 = item.meta) !== null && _item$meta2 !== void 0 && _item$meta2.hideChildrenInMenu)) {
123
118
  var _item$meta3, _item$meta4, _item$meta5, _item$meta6;
124
119
  if (_this.props.subMenuItemRender) {
125
120
  var subMenuItemRender = withCtx(_this.props.subMenuItemRender, _this.ctx);
@@ -132,21 +127,13 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(_props, ctx) {
132
127
  prefixCls = _this$props.prefixCls,
133
128
  locale = _this$props.locale;
134
129
  var menuTitle = locale && locale((_item$meta3 = item.meta) === null || _item$meta3 === void 0 ? void 0 : _item$meta3.title) || ((_item$meta4 = item.meta) === null || _item$meta4 === void 0 ? void 0 : _item$meta4.title);
135
- var defaultTitle = ((_item$meta5 = item.meta) === null || _item$meta5 === void 0 ? void 0 : _item$meta5.icon) ? _createVNode("span", {
130
+ var defaultTitle = (_item$meta5 = item.meta) !== null && _item$meta5 !== void 0 && _item$meta5.icon ? _createVNode("span", {
136
131
  "class": "".concat(prefixCls, "-menu-item")
137
132
  }, [_createVNode("span", {
138
133
  "class": "".concat(prefixCls, "-menu-item-title")
139
- }, _isSlot(menuTitle) ? menuTitle : {
140
- default: function _default() {
141
- return [menuTitle];
142
- }
143
- })]) : _createVNode("span", {
134
+ }, [menuTitle])]) : _createVNode("span", {
144
135
  "class": "".concat(prefixCls, "-menu-item")
145
- }, _isSlot(menuTitle) ? menuTitle : {
146
- default: function _default() {
147
- return [menuTitle];
148
- }
149
- });
136
+ }, [menuTitle]);
150
137
  return _createVNode(Menu.SubMenu, {
151
138
  "title": defaultTitle,
152
139
  "key": item.path,
@@ -155,9 +142,9 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(_props, ctx) {
155
142
  "iconUrl": _this.props.iconfontUrl,
156
143
  "icon": (_item$meta6 = item.meta) === null || _item$meta6 === void 0 ? void 0 : _item$meta6.icon
157
144
  }, null)
158
- }, _isSlot(_slot = _this.getNavMenuItems(item.children)) ? _slot : {
145
+ }, {
159
146
  default: function _default() {
160
- return [_slot];
147
+ return [_this.getNavMenuItems(item.children)];
161
148
  }
162
149
  });
163
150
  }
@@ -174,14 +161,13 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(_props, ctx) {
174
161
  "disabled": (_item$meta7 = item.meta) === null || _item$meta7 === void 0 ? void 0 : _item$meta7.disabled,
175
162
  "danger": (_item$meta8 = item.meta) === null || _item$meta8 === void 0 ? void 0 : _item$meta8.danger,
176
163
  "key": item.path
177
- }, _isSlot(title) ? title : {
164
+ }, {
178
165
  default: function _default() {
179
166
  return [title];
180
167
  }
181
168
  });
182
169
  });
183
170
  _defineProperty(this, "getMenuItem", function (item) {
184
- var _slot2;
185
171
  var _item$meta9, _item$meta10, _item$meta11, _item$meta12, _item$meta13;
186
172
  var meta = _objectSpread({}, item.meta);
187
173
  var target = meta.target || null;
@@ -204,27 +190,19 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(_props, ctx) {
204
190
  "icon": (_item$meta10 = item.meta) === null || _item$meta10 === void 0 ? void 0 : _item$meta10.icon
205
191
  }, null) || undefined;
206
192
  var menuTitle = locale && locale((_item$meta11 = item.meta) === null || _item$meta11 === void 0 ? void 0 : _item$meta11.title) || ((_item$meta12 = item.meta) === null || _item$meta12 === void 0 ? void 0 : _item$meta12.title);
207
- var defaultTitle = ((_item$meta13 = item.meta) === null || _item$meta13 === void 0 ? void 0 : _item$meta13.icon) ? _createVNode(CustomTag, _objectSpread(_objectSpread(_objectSpread({}, attrs), props), {}, {
193
+ var defaultTitle = (_item$meta13 = item.meta) !== null && _item$meta13 !== void 0 && _item$meta13.icon ? _createVNode(CustomTag, _objectSpread(_objectSpread(_objectSpread({}, attrs), props), {}, {
208
194
  "class": "".concat(prefixCls, "-menu-item")
209
195
  }), {
210
196
  default: function _default() {
211
197
  return [icon, _createVNode("span", {
212
198
  "class": "".concat(prefixCls, "-menu-item-title")
213
- }, _isSlot(menuTitle) ? menuTitle : {
214
- default: function _default() {
215
- return [menuTitle];
216
- }
217
- })];
199
+ }, [menuTitle])];
218
200
  }
219
201
  }) : _createVNode(CustomTag, _objectSpread(_objectSpread(_objectSpread({}, attrs), props), {}, {
220
202
  "class": "".concat(prefixCls, "-menu-item")
221
- }), _isSlot(_slot2 = _createVNode("span", null, _isSlot(menuTitle) ? menuTitle : {
222
- default: function _default() {
223
- return [menuTitle];
224
- }
225
- })) ? _slot2 : {
203
+ }), {
226
204
  default: function _default() {
227
- return [_slot2];
205
+ return [_createVNode("span", null, [menuTitle])];
228
206
  }
229
207
  });
230
208
  return [defaultTitle, icon];
@@ -262,7 +240,6 @@ export default defineComponent({
262
240
  emit('click', args);
263
241
  };
264
242
  return function () {
265
- var _slot3;
266
243
  return _createVNode(Menu, _objectSpread({
267
244
  "key": "Menu",
268
245
  "inlineIndent": 16,
@@ -273,9 +250,9 @@ export default defineComponent({
273
250
  "onOpenChange": handleOpenChange,
274
251
  "onSelect": handleSelect,
275
252
  "onClick": handleClick
276
- }, props.menuProps), _isSlot(_slot3 = menuUtil.getNavMenuItems(props.menuData)) ? _slot3 : {
253
+ }, props.menuProps), {
277
254
  default: function _default() {
278
- return [_slot3];
255
+ return [menuUtil.getNavMenuItems(props.menuData)];
279
256
  }
280
257
  });
281
258
  };