@jetlinks-web/components 3.0.1-rc → 3.1.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 (294) hide show
  1. package/es/AutoComplete/AutoComplete.js +13 -9
  2. package/es/BadgeStatus/Badge.js +1 -2
  3. package/es/BadgeStatus/color.js +3 -3
  4. package/es/CardSelect/CardSelect.js +23 -13
  5. package/es/CardSelect/style/index.js +25 -1
  6. package/es/CheckButton/CheckButton.js +12 -4
  7. package/es/CheckButton/style/index.js +41 -1
  8. package/es/DragModal/DragModal.js +14 -8
  9. package/es/DragModal/style/index.js +64 -1
  10. package/es/EditTable/Body.js +10 -3
  11. package/es/EditTable/EditTable.js +13 -7
  12. package/es/EditTable/FormItem.js +18 -19
  13. package/es/EditTable/Header.js +16 -6
  14. package/es/EditTable/components/ContextMenu/Menu.js +11 -5
  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 +23 -18
  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 +30 -3
  27. package/es/Ellipsis/Ellipsis.js +10 -2
  28. package/es/Ellipsis/style/index.js +24 -1
  29. package/es/FullPage/FullPage.js +1 -2
  30. package/es/LocaleProvider/index.js +1 -2
  31. package/es/PermissionButton/index.js +6 -7
  32. package/es/ProLayout/Basic/BasicLayout.js +45 -41
  33. package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
  34. package/es/ProLayout/Basic/Header.js +3 -7
  35. package/es/ProLayout/Basic/HeaderStyle.js +10 -0
  36. package/es/ProLayout/PageContainer/index.js +21 -17
  37. package/es/ProLayout/PageContainer/style.js +46 -0
  38. package/es/ProLayout/SiderMenu/BaseMenu.js +18 -42
  39. package/es/ProLayout/SiderMenu/SiderMenu.js +24 -36
  40. package/es/ProLayout/SiderMenu/style.js +166 -0
  41. package/es/ProLayout/TopHeader/index.js +13 -12
  42. package/es/ProLayout/TopHeader/style.js +126 -0
  43. package/es/ProLayout/style/index.js +7 -1
  44. package/es/ProLayout/util.js +5 -5
  45. package/es/ProTable/Alert.js +12 -4
  46. package/es/ProTable/Content.js +166 -45
  47. package/es/ProTable/Header.js +21 -11
  48. package/es/ProTable/Pagination.js +28 -11
  49. package/es/ProTable/ProTable.js +104 -46
  50. package/es/ProTable/hooks/index.js +2 -0
  51. package/es/ProTable/hooks/useTableInject.js +5 -0
  52. package/es/ProTable/hooks/useTableSelection.js +95 -0
  53. package/es/ProTable/setting.js +24 -1
  54. package/es/ProTable/style/index.js +109 -1
  55. package/es/RadioButton/RadioButton.js +10 -4
  56. package/es/RadioButton/style/index.js +23 -1
  57. package/es/Scrollbar/Scrollbar.js +10 -3
  58. package/es/Scrollbar/Thumb.js +36 -25
  59. package/es/Scrollbar/style/index.js +63 -1
  60. package/es/Search/Advanced/History.js +23 -16
  61. package/es/Search/Advanced/SaveHistory.js +1 -2
  62. package/es/Search/Advanced/index.js +212 -292
  63. package/es/Search/Item.js +175 -415
  64. package/es/Search/Search.js +78 -172
  65. package/es/Search/hooks/index.js +108 -1
  66. package/es/Search/hooks/useRouteQuery.js +57 -0
  67. package/es/Search/setting.js +132 -14
  68. package/es/Search/style/index.js +4 -2
  69. package/es/Search/style/item.js +28 -0
  70. package/es/Search/style/search.js +133 -0
  71. package/es/Search/util.js +116 -124
  72. package/es/Skeleton/components/DashBoardCard.js +19 -12
  73. package/es/Skeleton/components/DashBoardChart.js +48 -45
  74. package/es/Skeleton/components/Detail.js +27 -21
  75. package/es/Skeleton/components/Drawer.js +23 -14
  76. package/es/Skeleton/components/Item.js +9 -1
  77. package/es/Skeleton/components/List.js +0 -1
  78. package/es/Skeleton/components/ListCard.js +20 -13
  79. package/es/Skeleton/components/ListCardItem.js +12 -13
  80. package/es/Skeleton/components/ListTable.js +19 -10
  81. package/es/Skeleton/components/Page.js +0 -1
  82. package/es/Skeleton/components/Tree.js +21 -14
  83. package/es/Skeleton/skeleton.js +17 -8
  84. package/es/Skeleton/style/index.js +132 -1
  85. package/es/Title/style/index.js +29 -1
  86. package/es/Title/title.js +13 -5
  87. package/es/ValueItem/ValueItem.js +44 -39
  88. package/es/VirtualTable/VirtualTable.js +398 -0
  89. package/es/VirtualTable/data.js +36 -0
  90. package/es/VirtualTable/index.js +5 -0
  91. package/es/VirtualTable/style/index.js +32 -0
  92. package/es/components.js +1 -4
  93. package/es/locale/en-US.js +6 -8
  94. package/es/locale/zh-CN.js +6 -8
  95. package/es/style/index.js +0 -3
  96. package/es/style/styleRegister.js +21 -0
  97. package/es/style/variable.js +4 -0
  98. package/es/style.js +0 -13
  99. package/lib/AutoComplete/AutoComplete.js +13 -9
  100. package/lib/BadgeStatus/Badge.js +1 -2
  101. package/lib/BadgeStatus/color.js +3 -3
  102. package/lib/CardSelect/CardSelect.js +23 -13
  103. package/lib/CardSelect/style/index.js +30 -1
  104. package/lib/CheckButton/CheckButton.js +12 -4
  105. package/lib/CheckButton/style/index.js +46 -1
  106. package/lib/DragModal/DragModal.js +14 -8
  107. package/lib/DragModal/style/index.js +69 -1
  108. package/lib/EditTable/Body.js +10 -3
  109. package/lib/EditTable/EditTable.js +13 -7
  110. package/lib/EditTable/FormItem.js +18 -19
  111. package/lib/EditTable/Header.js +16 -6
  112. package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
  113. package/lib/EditTable/components/Search/search.js +1 -2
  114. package/lib/EditTable/components/Search/sort.js +1 -3
  115. package/lib/EditTable/group.js +23 -18
  116. package/lib/EditTable/hooks/useValidate.js +1 -1
  117. package/lib/EditTable/style/body.js +60 -0
  118. package/lib/EditTable/style/form.js +31 -0
  119. package/lib/EditTable/style/group.js +32 -0
  120. package/lib/EditTable/style/header.js +65 -0
  121. package/lib/EditTable/style/index.js +47 -1
  122. package/lib/EditTable/style/menu.js +33 -0
  123. package/lib/EditTable/style/table.js +52 -0
  124. package/lib/EditTable/utils.js +31 -3
  125. package/lib/Ellipsis/Ellipsis.js +10 -2
  126. package/lib/Ellipsis/style/index.js +29 -1
  127. package/lib/FullPage/FullPage.js +1 -2
  128. package/lib/Icon/icon.js +1 -2
  129. package/lib/LocaleProvider/index.js +1 -2
  130. package/lib/PermissionButton/index.js +6 -7
  131. package/lib/ProLayout/Basic/BasicLayout.js +45 -42
  132. package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
  133. package/lib/ProLayout/Basic/Header.js +2 -6
  134. package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
  135. package/lib/ProLayout/PageContainer/index.js +19 -15
  136. package/lib/ProLayout/PageContainer/style.js +53 -0
  137. package/lib/ProLayout/SiderMenu/BaseMenu.js +19 -42
  138. package/lib/ProLayout/SiderMenu/SiderMenu.js +24 -37
  139. package/lib/ProLayout/SiderMenu/style.js +173 -0
  140. package/lib/ProLayout/TopHeader/index.js +14 -12
  141. package/lib/ProLayout/TopHeader/style.js +133 -0
  142. package/lib/ProLayout/style/index.js +12 -1
  143. package/lib/ProLayout/util.js +5 -5
  144. package/lib/ProTable/Alert.js +12 -4
  145. package/lib/ProTable/Content.js +166 -45
  146. package/lib/ProTable/Header.js +21 -11
  147. package/lib/ProTable/Pagination.js +28 -11
  148. package/lib/ProTable/ProTable.js +104 -46
  149. package/lib/ProTable/hooks/index.js +27 -0
  150. package/lib/ProTable/hooks/useTableInject.js +11 -0
  151. package/lib/ProTable/hooks/useTableSelection.js +102 -0
  152. package/lib/ProTable/setting.js +24 -1
  153. package/lib/ProTable/style/index.js +114 -1
  154. package/lib/RadioButton/RadioButton.js +10 -4
  155. package/lib/RadioButton/style/index.js +28 -1
  156. package/lib/Scrollbar/Scrollbar.js +10 -3
  157. package/lib/Scrollbar/Thumb.js +36 -25
  158. package/lib/Scrollbar/style/index.js +68 -1
  159. package/lib/Search/Advanced/History.js +23 -16
  160. package/lib/Search/Advanced/SaveHistory.js +1 -2
  161. package/lib/Search/Advanced/index.js +212 -292
  162. package/lib/Search/Item.js +175 -415
  163. package/lib/Search/Search.js +78 -172
  164. package/lib/Search/hooks/index.js +130 -1
  165. package/lib/Search/hooks/useRouteQuery.js +64 -0
  166. package/lib/Search/setting.js +133 -15
  167. package/lib/Search/style/index.js +9 -2
  168. package/lib/Search/style/item.js +35 -0
  169. package/lib/Search/style/search.js +140 -0
  170. package/lib/Search/util.js +116 -124
  171. package/lib/Skeleton/components/DashBoardCard.js +19 -12
  172. package/lib/Skeleton/components/DashBoardChart.js +48 -45
  173. package/lib/Skeleton/components/Detail.js +27 -21
  174. package/lib/Skeleton/components/Drawer.js +23 -14
  175. package/lib/Skeleton/components/Item.js +9 -1
  176. package/lib/Skeleton/components/List.js +0 -1
  177. package/lib/Skeleton/components/ListCard.js +20 -13
  178. package/lib/Skeleton/components/ListCardItem.js +12 -13
  179. package/lib/Skeleton/components/ListTable.js +19 -10
  180. package/lib/Skeleton/components/Page.js +0 -1
  181. package/lib/Skeleton/components/Tree.js +21 -14
  182. package/lib/Skeleton/skeleton.js +17 -8
  183. package/lib/Skeleton/style/index.js +137 -1
  184. package/lib/Title/style/index.js +34 -1
  185. package/lib/Title/title.js +13 -5
  186. package/lib/ValueItem/ValueItem.js +44 -39
  187. package/lib/VirtualTable/VirtualTable.js +398 -0
  188. package/lib/VirtualTable/data.js +43 -0
  189. package/lib/VirtualTable/index.js +12 -0
  190. package/lib/VirtualTable/style/index.js +39 -0
  191. package/lib/components.js +8 -30
  192. package/lib/index.js +1 -2
  193. package/lib/locale/en-US.js +6 -8
  194. package/lib/locale/zh-CN.js +6 -8
  195. package/lib/style/components.less +0 -1
  196. package/lib/style/index.js +1 -4
  197. package/lib/style/styleRegister.js +28 -0
  198. package/lib/style/variable.js +10 -0
  199. package/lib/style.js +1 -15
  200. package/package.json +170 -173
  201. package/es/AMap/Map.js +0 -133
  202. package/es/AMap/index.js +0 -5
  203. package/es/AMap/util.js +0 -56
  204. package/es/CardSelect/style/index.css +0 -24
  205. package/es/CardSelect/style/index.less +0 -26
  206. package/es/CheckButton/style/index.css +0 -37
  207. package/es/CheckButton/style/index.less +0 -40
  208. package/es/DragModal/style/index.css +0 -82
  209. package/es/DragModal/style/index.less +0 -97
  210. package/es/Echarts/Echarts.js +0 -48
  211. package/es/Echarts/index.js +0 -5
  212. package/es/EditTable/style/body.less +0 -66
  213. package/es/EditTable/style/form.less +0 -33
  214. package/es/EditTable/style/group.less +0 -32
  215. package/es/EditTable/style/header.less +0 -77
  216. package/es/EditTable/style/index.css +0 -267
  217. package/es/EditTable/style/index.less +0 -41
  218. package/es/EditTable/style/menu.less +0 -25
  219. package/es/EditTable/style/table.less +0 -47
  220. package/es/Ellipsis/style/index.css +0 -17
  221. package/es/Ellipsis/style/index.less +0 -20
  222. package/es/FlameGraph/FlameGraph.js +0 -136
  223. package/es/FlameGraph/index.js +0 -5
  224. package/es/FlameGraph/style/index.css +0 -43
  225. package/es/FlameGraph/style/index.js +0 -1
  226. package/es/FlameGraph/style/index.less +0 -52
  227. package/es/ProLayout/Basic/BasicLayout.less +0 -66
  228. package/es/ProLayout/Basic/Header.less +0 -8
  229. package/es/ProLayout/PageContainer/index.less +0 -103
  230. package/es/ProLayout/SiderMenu/index.less +0 -231
  231. package/es/ProLayout/TopHeader/index.less +0 -174
  232. package/es/ProLayout/style/default.less +0 -4
  233. package/es/ProLayout/style/style.less +0 -7
  234. package/es/ProTable/style/ProTable.less +0 -139
  235. package/es/RadioButton/style/index.css +0 -20
  236. package/es/RadioButton/style/index.less +0 -19
  237. package/es/Scrollbar/style/index.css +0 -65
  238. package/es/Scrollbar/style/index.less +0 -83
  239. package/es/Search/style/Item.less +0 -33
  240. package/es/Search/style/Search.less +0 -179
  241. package/es/Skeleton/style/Skeleton.less +0 -166
  242. package/es/Title/style/index.css +0 -27
  243. package/es/Title/style/index.less +0 -27
  244. package/es/style/index.css +0 -5375
  245. package/es/style/index.less +0 -14
  246. package/es/style/variable.css +0 -4
  247. package/es/style/variable.less +0 -4
  248. package/lib/AMap/Map.js +0 -133
  249. package/lib/AMap/index.js +0 -12
  250. package/lib/AMap/util.js +0 -62
  251. package/lib/CardSelect/style/index.css +0 -24
  252. package/lib/CardSelect/style/index.less +0 -26
  253. package/lib/CheckButton/style/index.css +0 -37
  254. package/lib/CheckButton/style/index.less +0 -40
  255. package/lib/DragModal/style/index.css +0 -82
  256. package/lib/DragModal/style/index.less +0 -97
  257. package/lib/Echarts/Echarts.js +0 -48
  258. package/lib/Echarts/index.js +0 -12
  259. package/lib/EditTable/style/body.less +0 -66
  260. package/lib/EditTable/style/form.less +0 -33
  261. package/lib/EditTable/style/group.less +0 -32
  262. package/lib/EditTable/style/header.less +0 -77
  263. package/lib/EditTable/style/index.css +0 -267
  264. package/lib/EditTable/style/index.less +0 -41
  265. package/lib/EditTable/style/menu.less +0 -25
  266. package/lib/EditTable/style/table.less +0 -47
  267. package/lib/Ellipsis/style/index.css +0 -17
  268. package/lib/Ellipsis/style/index.less +0 -20
  269. package/lib/FlameGraph/FlameGraph.js +0 -136
  270. package/lib/FlameGraph/index.js +0 -12
  271. package/lib/FlameGraph/style/index.css +0 -43
  272. package/lib/FlameGraph/style/index.js +0 -3
  273. package/lib/FlameGraph/style/index.less +0 -52
  274. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  275. package/lib/ProLayout/Basic/Header.less +0 -8
  276. package/lib/ProLayout/PageContainer/index.less +0 -103
  277. package/lib/ProLayout/SiderMenu/index.less +0 -231
  278. package/lib/ProLayout/TopHeader/index.less +0 -174
  279. package/lib/ProLayout/style/default.less +0 -4
  280. package/lib/ProLayout/style/style.less +0 -7
  281. package/lib/ProTable/style/ProTable.less +0 -139
  282. package/lib/RadioButton/style/index.css +0 -20
  283. package/lib/RadioButton/style/index.less +0 -19
  284. package/lib/Scrollbar/style/index.css +0 -65
  285. package/lib/Scrollbar/style/index.less +0 -83
  286. package/lib/Search/style/Item.less +0 -33
  287. package/lib/Search/style/Search.less +0 -179
  288. package/lib/Skeleton/style/Skeleton.less +0 -166
  289. package/lib/Title/style/index.css +0 -27
  290. package/lib/Title/style/index.less +0 -27
  291. package/lib/style/index.css +0 -5375
  292. package/lib/style/index.less +0 -14
  293. package/lib/style/variable.css +0 -4
  294. package/lib/style/variable.less +0 -4
@@ -5,21 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.topNavHeaderProps = exports.baseHeaderProps = exports.TopNavHeader = void 0;
8
- var _vue = require("vue");
9
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
+ var _vue = require("vue");
10
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
12
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
12
- var _vcResizeObserver = _interopRequireDefault(require("ant-design-vue/es/vc-resize-observer"));
13
+ var _vcResizeObserver = _interopRequireDefault(require("ant-design-vue/lib/vc-resize-observer"));
13
14
  var _SiderMenu = require("../SiderMenu/SiderMenu");
14
- var _vueTypes = _interopRequireDefault(require("ant-design-vue/es/_util/vue-types"));
15
+ var _vueTypes = _interopRequireDefault(require("ant-design-vue/lib/_util/vue-types"));
15
16
  var _defaultSettings = require("../defaultSettings");
16
17
  var _RouteContext = require("../RouteContext");
17
18
  var _BaseMenu = _interopRequireDefault(require("../SiderMenu/BaseMenu"));
18
19
  var _util = require("../util");
20
+ var _style = _interopRequireDefault(require("../style"));
19
21
  var _excluded = ["rightContentRender"];
20
- function _isSlot(s) {
21
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
22
- }
23
22
  var baseHeaderProps = exports.baseHeaderProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _defaultSettings.defaultSettingProps), {}, {
24
23
  prefixCls: _vueTypes.default.string.def('ant-pro'),
25
24
  collapsed: _vueTypes.default.looseBool,
@@ -104,6 +103,13 @@ var TopNavHeader = exports.TopNavHeader = function TopNavHeader(props) {
104
103
  mode = props.mode;
105
104
  var context = (0, _RouteContext.useRouteContext)();
106
105
  var prefixCls = "".concat(propPrefixCls || _RouteContext.defaultPrefixCls, "-top-nav-header");
106
+ var stylePrefixCls = (0, _vue.computed)(function () {
107
+ return 'pro-layout';
108
+ });
109
+ var _useProLayoutStyle = (0, _style.default)(stylePrefixCls),
110
+ _useProLayoutStyle2 = (0, _slicedToArray2.default)(_useProLayoutStyle, 2),
111
+ wrapSSR = _useProLayoutStyle2[0],
112
+ hashId = _useProLayoutStyle2[1];
107
113
  var headerDom = (0, _SiderMenu.defaultRenderLogoAndTitle)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
108
114
  collapsed: false
109
115
  }),
@@ -126,7 +132,7 @@ var TopNavHeader = exports.TopNavHeader = function TopNavHeader(props) {
126
132
  return props.layout === 'mix' && props.splitMenus ? 'horizontal' : mode;
127
133
  });
128
134
  var className = (0, _vue.computed)(function () {
129
- return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, prefixCls, true), "light", props.theme === 'light'), "dark", props.theme === 'dark');
135
+ return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, prefixCls, true), hashId.value, true), "light", props.theme === 'light'), "dark", props.theme === 'dark');
130
136
  });
131
137
  var paddingLeft = (0, _vue.computed)(function () {
132
138
  return context.layoutType === _defaultSettings.LayoutType.PAD && props.collapsed ? context.headerLeftWidth + 'px' : 0;
@@ -146,11 +152,7 @@ var TopNavHeader = exports.TopNavHeader = function TopNavHeader(props) {
146
152
  "class": "".concat(prefixCls, "-logo"),
147
153
  "key": "logo",
148
154
  "id": "logo"
149
- }, _isSlot(headerDom) ? headerDom : {
150
- default: function _default() {
151
- return [headerDom];
152
- }
153
- })]), (0, _vue.createVNode)("div", {
155
+ }, [headerDom])]), (0, _vue.createVNode)("div", {
154
156
  "style": {
155
157
  flex: 1
156
158
  },
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.genTopHeaderStyle = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var genTopHeaderStyle = exports.genTopHeaderStyle = function genTopHeaderStyle(config) {
10
+ var token = config.token;
11
+ var topNavHeaderCls = "".concat(token.antCls, "-pro-top-nav-header");
12
+ var proLayoutGlobalHeaderCls = "".concat(token.antCls, "-pro-global-header");
13
+ var proLayoutHeaderBg = token.colorBgContainer;
14
+ var proLayoutHeaderHoverBg = token.colorBgContainer;
15
+ var proLayoutHeaderBoxShadow = '0 1px 4px rgba(0, 21, 41, 0.08)';
16
+ return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, proLayoutGlobalHeaderCls, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
17
+ position: 'relative',
18
+ display: 'flex',
19
+ alignItems: 'center',
20
+ height: '100%',
21
+ padding: '0 16px',
22
+ backgroundColor: proLayoutHeaderBg,
23
+ boxShadow: proLayoutHeaderBoxShadow,
24
+ '> *': {
25
+ height: '100%'
26
+ }
27
+ }, "".concat(proLayoutGlobalHeaderCls, "-coppapsed-button"), {
28
+ display: 'flex',
29
+ alignItems: 'center',
30
+ marginLeft: '16px',
31
+ fontSize: '20px'
32
+ }), "".concat(proLayoutGlobalHeaderCls, "-layout"), (0, _defineProperty2.default)({}, "".concat(proLayoutGlobalHeaderCls, "-layout-mix"), (0, _defineProperty2.default)((0, _defineProperty2.default)({
33
+ backgroundColor: '#001529'
34
+ }, "".concat(proLayoutGlobalHeaderCls, "-logo"), {
35
+ 'h1': {
36
+ color: '#fff'
37
+ }
38
+ }), '.anticon', {
39
+ color: '#fff'
40
+ }))), "".concat(proLayoutGlobalHeaderCls, "-logo"), {
41
+ position: 'relative',
42
+ overflow: 'hidden',
43
+ a: {
44
+ display: 'flex',
45
+ alignItems: 'center',
46
+ height: '100%',
47
+ img: {
48
+ height: '28px'
49
+ },
50
+ h1: {
51
+ height: '32px',
52
+ margin: '0 0 0 12px',
53
+ color: token.colorPrimary,
54
+ fontWeight: 600,
55
+ fontSize: '18px',
56
+ lineHeight: '32px'
57
+ }
58
+ }
59
+ }), "".concat(proLayoutGlobalHeaderCls, "-menu"), (0, _defineProperty2.default)({
60
+ '.anticon': {
61
+ marginRight: '8px'
62
+ }
63
+ }, "".concat(token.antCls, "-dropdown-menu-item"), {
64
+ minWidth: '160px'
65
+ })), '.dark', {
66
+ height: '48px',
67
+ '.action': (0, _defineProperty2.default)({
68
+ color: 'rgba(255, 255, 255, 0.85)',
69
+ '> i': {
70
+ color: 'rgba(255, 255, 255, 0.85)'
71
+ },
72
+ '&:hover,&.opend': {
73
+ background: token.colorPrimary
74
+ }
75
+ }, "".concat(token.antCls, "-badge"), {
76
+ color: 'rgba(255, 255, 255, 0.85)'
77
+ })
78
+ })), topNavHeaderCls, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
79
+ position: 'relative',
80
+ width: '100%',
81
+ height: '100%',
82
+ boxShadow: '0 1px 4px 0 rgba(0, 21, 41, 0.12)',
83
+ transition: 'background 0.3s, width 0.2s'
84
+ }, "".concat(token.antCls, "-menu"), {
85
+ backgroundColor: 'transparent'
86
+ }), '&.light', (0, _defineProperty2.default)((0, _defineProperty2.default)({
87
+ backgroundColor: token.colorBgContainer
88
+ }, "".concat(topNavHeaderCls, "-logo"), {
89
+ h1: {
90
+ color: token.colorTextHeading
91
+ }
92
+ }), '.anticon', {
93
+ color: 'inherit'
94
+ })), "".concat(topNavHeaderCls, "-main"), (0, _defineProperty2.default)({
95
+ display: 'flex',
96
+ height: '100%',
97
+ paddingLeft: '16px'
98
+ }, "".concat(topNavHeaderCls, "-main-left"), {
99
+ display: 'flex',
100
+ minWidth: '192px'
101
+ })), '.anticon', {
102
+ color: '#fff'
103
+ }), "".concat(topNavHeaderCls, "-logo"), {
104
+ position: 'relative',
105
+ minWidth: '165px',
106
+ height: '100%',
107
+ overflow: 'hidden',
108
+ img: {
109
+ display: 'inline-block',
110
+ height: '32px',
111
+ verticalAlign: 'middle'
112
+ },
113
+ h1: {
114
+ display: 'inline-block',
115
+ margin: '0 0 0 12px',
116
+ color: token.colorPrimary,
117
+ fontWeight: 600,
118
+ fontSize: '16px',
119
+ verticalAlign: 'top'
120
+ }
121
+ }), "".concat(topNavHeaderCls, "-menu"), (0, _defineProperty2.default)({
122
+ minWidth: 0
123
+ }, "".concat(token.antCls, "-menu").concat(token.antCls, "-meu-horizontal"), (0, _defineProperty2.default)({
124
+ height: '100%',
125
+ border: 'none'
126
+ }, "".concat(token.antCls, "-menu-item"), (0, _defineProperty2.default)({
127
+ height: '100%'
128
+ }, "".concat(token.antCls, "-badge"), {
129
+ color: 'unset'
130
+ }))))), "".concat(token.antCls, "-pro-menu-popup"), (0, _defineProperty2.default)({}, "".concat(token.antCls, "-badge"), {
131
+ color: 'unset'
132
+ }));
133
+ };
@@ -1,3 +1,14 @@
1
1
  "use strict";
2
2
 
3
- require("./style.less");
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _styleRegister = _interopRequireDefault(require("../../style/styleRegister"));
9
+ var _BasicLayoutStyle = require("../Basic/BasicLayoutStyle");
10
+ var _HeaderStyle = require("../Basic/HeaderStyle");
11
+ var _style = require("../PageContainer/style");
12
+ var _style2 = require("../SiderMenu/style");
13
+ var _style3 = require("../TopHeader/style");
14
+ var _default = exports.default = (0, _styleRegister.default)([_BasicLayoutStyle.genBasicLayoutStyle, _HeaderStyle.genHeaderStyle, _style.genPageContainerStyle, _style2.genSiderMenuStyle, _style3.genTopHeaderStyle]);
@@ -14,14 +14,14 @@ function clearMenuItem(menusData) {
14
14
  return menusData.map(function (item) {
15
15
  var _finalItem$meta;
16
16
  var finalItem = (0, _objectSpread2.default)({}, item);
17
- if ((_finalItem$meta = finalItem.meta) === null || _finalItem$meta === void 0 ? void 0 : _finalItem$meta.hideInMenu) {
17
+ if ((_finalItem$meta = finalItem.meta) !== null && _finalItem$meta !== void 0 && _finalItem$meta.hideInMenu) {
18
18
  return null;
19
19
  }
20
- if (finalItem && (finalItem === null || finalItem === void 0 ? void 0 : finalItem.children)) {
20
+ if (finalItem && finalItem !== null && finalItem !== void 0 && finalItem.children) {
21
21
  var _finalItem$meta2;
22
- if (!((_finalItem$meta2 = finalItem.meta) === null || _finalItem$meta2 === void 0 ? void 0 : _finalItem$meta2.hideChildInMenu) && finalItem.children.some(function (child) {
22
+ if (!((_finalItem$meta2 = finalItem.meta) !== null && _finalItem$meta2 !== void 0 && _finalItem$meta2.hideChildInMenu) && finalItem.children.some(function (child) {
23
23
  var _child$meta;
24
- return child && child.name && !((_child$meta = child.meta) === null || _child$meta === void 0 ? void 0 : _child$meta.hideInMenu);
24
+ return child && child.name && !((_child$meta = child.meta) !== null && _child$meta !== void 0 && _child$meta.hideInMenu);
25
25
  })) {
26
26
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
27
27
  children: clearMenuItem(finalItem.children)
@@ -38,7 +38,7 @@ function flatMap(menusData) {
38
38
  return menusData.map(function (item) {
39
39
  var _finalItem$meta3;
40
40
  var finalItem = (0, _objectSpread2.default)({}, item);
41
- if (!finalItem.name || ((_finalItem$meta3 = finalItem.meta) === null || _finalItem$meta3 === void 0 ? void 0 : _finalItem$meta3.hideInMenu)) {
41
+ if (!finalItem.name || (_finalItem$meta3 = finalItem.meta) !== null && _finalItem$meta3 !== void 0 && _finalItem$meta3.hideInMenu) {
42
42
  return null;
43
43
  }
44
44
  if (finalItem.children) {
@@ -20,19 +20,23 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
20
20
  "computed": "setup-const",
21
21
  "_alertProps": "setup-maybe-ref",
22
22
  "useLocaleReceiver": "setup-maybe-ref",
23
+ "useProTableStyle": "setup-maybe-ref",
23
24
  "contextLocale": "setup-maybe-ref",
24
25
  "props": "setup-reactive-const",
25
26
  "emits": "setup-const",
27
+ "prefixCls": "setup-ref",
28
+ "wrapSSR": "setup-maybe-ref",
29
+ "hashId": "setup-maybe-ref",
26
30
  "_message": "setup-ref",
27
31
  "onClose": "setup-const"
28
32
  } */
29
33
  import { defineComponent as _defineComponent } from 'vue';
30
- import { renderSlot as _renderSlot, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
31
- const _hoisted_1 = { class: "jtable-alert" };
34
+ import { unref as _unref, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
32
35
  import { Alert, Button } from 'ant-design-vue';
33
36
  import { computed } from "vue";
34
37
  import { _alertProps } from "./setting";
35
38
  import { useLocaleReceiver } from "../LocaleReciver/index";
39
+ import useProTableStyle from './style';
36
40
  const __sfc_main__ = _defineComponent({
37
41
  ...{
38
42
  name: 'Alert'
@@ -43,6 +47,8 @@ const __sfc_main__ = _defineComponent({
43
47
  const [contextLocale] = useLocaleReceiver('ProTable');
44
48
  const props = __props;
45
49
  const emits = __emit;
50
+ const prefixCls = computed(() => 'pro-table');
51
+ const [wrapSSR, hashId] = useProTableStyle(prefixCls);
46
52
  const _message = computed(() => {
47
53
  let locale = _optionalChain([contextLocale, 'access', _2 => _2.value, 'optionalAccess', _3 => _3.alert, 'optionalAccess', _4 => _4.selectItem]) || '';
48
54
  [_optionalChain([props, 'access', _5 => _5.rowSelection, 'optionalAccess', _6 => _6.selectedRowKeys, 'optionalAccess', _7 => _7.length]) || 0].forEach((item, index) => {
@@ -54,7 +60,9 @@ const __sfc_main__ = _defineComponent({
54
60
  emits('close');
55
61
  };
56
62
  return (_ctx, _cache) => {
57
- return (_openBlock(), _createElementBlock("div", _hoisted_1, [
63
+ return (_openBlock(), _createElementBlock("div", {
64
+ class: _normalizeClass(['jtable-alert', _unref(hashId)])
65
+ }, [
58
66
  _renderSlot(_ctx.$slots, "default", {}, () => [
59
67
  _createVNode(_unref(Alert), {
60
68
  type: "info",
@@ -74,7 +82,7 @@ const __sfc_main__ = _defineComponent({
74
82
  _: 1 /* STABLE */
75
83
  }, 8 /* PROPS */, ["message"])
76
84
  ])
77
- ]));
85
+ ], 2 /* CLASS */));
78
86
  };
79
87
  }
80
88
  });
@@ -21,29 +21,53 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
21
21
  "_contentProps": "setup-maybe-ref",
22
22
  "Table": "setup-maybe-ref",
23
23
  "get": "setup-maybe-ref",
24
+ "omit": "setup-maybe-ref",
24
25
  "Empty": "setup-maybe-ref",
26
+ "useTableInject": "setup-maybe-ref",
27
+ "useProTableStyle": "setup-maybe-ref",
28
+ "useLocaleReceiver": "setup-maybe-ref",
29
+ "JVirtualTable": "setup-maybe-ref",
25
30
  "props": "setup-reactive-const",
26
31
  "slots": "setup-maybe-ref",
32
+ "contextLocale": "setup-maybe-ref",
33
+ "prefixCls": "setup-ref",
34
+ "wrapSSR": "setup-maybe-ref",
35
+ "hashId": "setup-maybe-ref",
36
+ "_rowSelection": "setup-maybe-ref",
27
37
  "_columns": "setup-ref",
38
+ "_slots": "setup-ref",
28
39
  "_scroll": "setup-ref",
29
- "gridTemplateColumns": "setup-ref"
40
+ "gridTemplateColumns": "setup-ref",
41
+ "__rowSelection": "setup-ref",
42
+ "indeterminate": "setup-ref",
43
+ "checkedAll": "setup-ref",
44
+ "onClick": "setup-const",
45
+ "handleCheckedAllChange": "setup-const"
30
46
  } */
31
47
  import { defineComponent as _defineComponent } from 'vue';
32
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, unref as _unref, createVNode as _createVNode, mergeProps as _mergeProps, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock } from "vue";
33
- const _hoisted_1 = { class: "jtable-box" };
34
- const _hoisted_2 = {
48
+ import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, mergeProps as _mergeProps, renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, normalizeProps as _normalizeProps, createSlots as _createSlots, createBlock as _createBlock } from "vue";
49
+ const _hoisted_1 = {
35
50
  key: 0,
36
51
  class: "jtable-card"
37
52
  };
38
- const _hoisted_3 = {
39
- key: 1,
53
+ const _hoisted_2 = {
54
+ key: 0,
55
+ style: { "margin-bottom": "10px" }
56
+ };
57
+ const _hoisted_3 = ["onClick"];
58
+ const _hoisted_4 = {
59
+ key: 2,
40
60
  class: "j-table-empty"
41
61
  };
42
62
  import { useSlots, computed } from 'vue';
43
63
  import { _contentProps } from "./setting";
44
64
  import { Table } from 'ant-design-vue';
45
- import { get } from 'lodash-es';
65
+ import { get, omit } from 'lodash-es';
46
66
  import Empty from '../Empty';
67
+ import { useTableInject } from './hooks';
68
+ import useProTableStyle from './style';
69
+ import { useLocaleReceiver } from "../LocaleReciver";
70
+ import JVirtualTable from '../VirtualTable';
47
71
  const __sfc_main__ = _defineComponent({
48
72
  ...{
49
73
  name: 'Content'
@@ -58,70 +82,167 @@ const __sfc_main__ = _defineComponent({
58
82
  setup(__props) {
59
83
  const props = __props;
60
84
  const slots = useSlots();
85
+ const [contextLocale] = useLocaleReceiver('ProTable');
86
+ const prefixCls = computed(() => 'pro-table');
87
+ const [wrapSSR, hashId] = useProTableStyle(prefixCls);
88
+ const _rowSelection = useTableInject();
61
89
  const _columns = computed(() => props.columns.filter((i) => !_optionalChain([i, 'optionalAccess', _2 => _2.hideInTable])));
90
+ const _slots = computed(() => {
91
+ return omit(slots, ['emptyText', 'bodyCell']);
92
+ });
62
93
  const _scroll = computed(() => {
63
- let y = _optionalChain([props, 'access', _3 => _3.scroll, 'optionalAccess', _4 => _4.y]) || '100%';
94
+ if (props.scroll === false) {
95
+ return {
96
+ x: undefined,
97
+ y: undefined
98
+ };
99
+ }
64
100
  return {
65
- x: _optionalChain([props, 'access', _5 => _5.scroll, 'optionalAccess', _6 => _6.x]) || '100%',
66
- y
101
+ x: props.scroll.x === false ? undefined : props.scroll.x || '100%',
102
+ y: props.scroll.y === false ? undefined : props.scroll.y || '100%'
67
103
  };
68
104
  });
69
105
  const gridTemplateColumns = computed(() => {
70
106
  return `repeat(${props.column}, 1fr)`;
71
107
  });
108
+ const __rowSelection = computed(() => {
109
+ return props.rowSelection || _optionalChain([_rowSelection, 'optionalAccess', _3 => _3.value]);
110
+ });
111
+ const indeterminate = computed(() => {
112
+ return _optionalChain([__rowSelection, 'access', _4 => _4.value, 'optionalAccess', _5 => _5.selectedRowKeys, 'optionalAccess', _6 => _6.length]) > 0 && _optionalChain([__rowSelection, 'access', _7 => _7.value, 'optionalAccess', _8 => _8.selectedRowKeys, 'optionalAccess', _9 => _9.length]) < props.dataSource.length;
113
+ });
114
+ const checkedAll = computed(() => {
115
+ return _optionalChain([__rowSelection, 'access', _10 => _10.value, 'optionalAccess', _11 => _11.selectedRowKeys, 'optionalAccess', _12 => _12.length]) > 0 && _optionalChain([__rowSelection, 'access', _13 => _13.value, 'optionalAccess', _14 => _14.selectedRowKeys, 'optionalAccess', _15 => _15.length]) === props.dataSource.length;
116
+ });
117
+ const onClick = (item) => {
118
+ if (_rowSelection && _rowSelection.value) {
119
+ const _selected = _optionalChain([_rowSelection, 'access', _16 => _16.value, 'access', _17 => _17.selectedRowKeys, 'optionalAccess', _18 => _18.includes, 'call', _19 => _19(item[props.rowKey])]);
120
+ _optionalChain([_rowSelection, 'access', _20 => _20.value, 'access', _21 => _21.onSelect, 'optionalCall', _22 => _22(item, !_selected)]);
121
+ }
122
+ };
123
+ const handleCheckedAllChange = (e) => {
124
+ const flag = e.target.checked;
125
+ _optionalChain([__rowSelection, 'access', _23 => _23.value, 'optionalAccess', _24 => _24.onSelectAll, 'optionalCall', _25 => _25(flag, props.dataSource, props.dataSource)]);
126
+ };
72
127
  return (_ctx, _cache) => {
73
- return (_openBlock(), _createElementBlock("div", _hoisted_1, [
128
+ const _component_a_checkbox = _resolveComponent("a-checkbox");
129
+ return (_openBlock(), _createElementBlock("div", {
130
+ class: _normalizeClass(['jtable-box', _unref(hashId)])
131
+ }, [
74
132
  (_ctx.mode === 'CARD')
75
- ? (_openBlock(), _createElementBlock("div", _hoisted_2, [
133
+ ? (_openBlock(), _createElementBlock("div", _hoisted_1, [
134
+ (__rowSelection.value && __rowSelection.value.type === 'checkbox')
135
+ ? (_openBlock(), _createElementBlock("div", _hoisted_2, [
136
+ _createVNode(_component_a_checkbox, {
137
+ indeterminate: indeterminate.value,
138
+ checked: checkedAll.value,
139
+ onChange: handleCheckedAllChange
140
+ }, {
141
+ default: _withCtx(() => [
142
+ _createTextVNode(_toDisplayString(_unref(contextLocale).select.all), 1 /* TEXT */)
143
+ ]),
144
+ _: 1 /* STABLE */
145
+ }, 8 /* PROPS */, ["indeterminate", "checked"])
146
+ ]))
147
+ : _createCommentVNode("v-if", true),
76
148
  (_ctx.dataSource.length)
77
149
  ? (_openBlock(), _createElementBlock("div", {
78
- key: 0,
150
+ key: 1,
79
151
  class: "jtable-card-items",
80
152
  style: _normalizeStyle({ gridTemplateColumns: gridTemplateColumns.value })
81
153
  }, [
82
154
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.dataSource, (item) => {
83
155
  return (_openBlock(), _createElementBlock("div", {
84
156
  class: _normalizeClass(['jtable-card-item', props.cardBodyClass]),
85
- key: item[props.rowKey]
157
+ key: item[props.rowKey],
158
+ onClick: ($event) => (onClick(item))
86
159
  }, [
87
- _renderSlot(_ctx.$slots, "card", _normalizeProps(_guardReactiveProps(item)))
88
- ], 2 /* CLASS */));
160
+ _renderSlot(_ctx.$slots, "card", _mergeProps({ ref_for: true }, item))
161
+ ], 10 /* CLASS, PROPS */, _hoisted_3));
89
162
  }), 128 /* KEYED_FRAGMENT */))
90
163
  ], 4 /* STYLE */))
91
- : (_openBlock(), _createElementBlock("div", _hoisted_3, [
164
+ : (_openBlock(), _createElementBlock("div", _hoisted_4, [
92
165
  _renderSlot(_ctx.$slots, "emptyText", {}, () => [
93
166
  _createVNode(_unref(Empty))
94
167
  ])
95
168
  ]))
96
169
  ]))
97
- : (_openBlock(), _createBlock(_unref(Table), _mergeProps({ key: 1 }, props, {
98
- dataSource: _ctx.dataSource,
99
- columns: _columns.value,
100
- pagination: false,
101
- scroll: _scroll.value,
102
- class: { 'j-table-scroll': !_optionalChain([props, 'access', _7 => _7.scroll, 'optionalAccess', _8 => _8.y]) }
103
- }), {
104
- headerCell: _withCtx(({ column, title }) => [
105
- _renderSlot(_ctx.$slots, "headerCell", _normalizeProps(_guardReactiveProps({ column, title })))
106
- ]),
107
- bodyCell: _withCtx(({ column, record, index }) => [
108
- ((_optionalChain([column, 'optionalAccess', _9 => _9.key]) || _optionalChain([column, 'optionalAccess', _10 => _10.dataIndex])) && _optionalChain([column, 'optionalAccess', _11 => _11.scopedSlots]) && (_optionalChain([_unref, 'call', _12 => _12(slots), 'optionalAccess', _13 => _13[_optionalChain([column, 'optionalAccess', _14 => _14.dataIndex])]]) || _optionalChain([_unref, 'call', _15 => _15(slots), 'optionalAccess', _16 => _16[_optionalChain([column, 'optionalAccess', _17 => _17.key])]])))
109
- ? _renderSlot(_ctx.$slots, _optionalChain([column, 'optionalAccess', _18 => _18.key]) || _optionalChain([column, 'optionalAccess', _19 => _19.dataIndex]), _mergeProps({ key: 0 }, record, {
110
- index: index,
111
- column: column
112
- }))
113
- : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
114
- _createTextVNode(_toDisplayString(_unref(get)(record, _optionalChain([column, 'optionalAccess', _20 => _20.dataIndex]) || _optionalChain([column, 'optionalAccess', _21 => _21.key])) || '--'), 1 /* TEXT */)
115
- ], 64 /* STABLE_FRAGMENT */))
116
- ]),
117
- emptyText: _withCtx(() => [
118
- _renderSlot(_ctx.$slots, "emptyText", {}, () => [
119
- _createVNode(_unref(Empty))
120
- ])
121
- ]),
122
- _: 3 /* FORWARDED */
123
- }, 16 /* FULL_PROPS */, ["dataSource", "columns", "scroll", "class"]))
124
- ]));
170
+ : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
171
+ (props.type === 'TREE')
172
+ ? (_openBlock(), _createBlock(_unref(JVirtualTable), {
173
+ key: 0,
174
+ rowKey: _ctx.rowKey,
175
+ "row-selection": __rowSelection.value,
176
+ dataSource: _ctx.dataSource,
177
+ columns: _columns.value,
178
+ height: _ctx.height
179
+ }, _createSlots({
180
+ bodyCell: _withCtx(({ column, record, index }) => [
181
+ ((_optionalChain([column, 'optionalAccess', _26 => _26.key]) || _optionalChain([column, 'optionalAccess', _27 => _27.dataIndex])) && _optionalChain([column, 'optionalAccess', _28 => _28.scopedSlots]) && (_optionalChain([_slots, 'access', _29 => _29.value, 'optionalAccess', _30 => _30[_optionalChain([column, 'optionalAccess', _31 => _31.dataIndex])]]) || _optionalChain([_slots, 'access', _32 => _32.value, 'optionalAccess', _33 => _33[_optionalChain([column, 'optionalAccess', _34 => _34.key])]])))
182
+ ? _renderSlot(_ctx.$slots, _optionalChain([column, 'optionalAccess', _35 => _35.key]) || _optionalChain([column, 'optionalAccess', _36 => _36.dataIndex]), _mergeProps({ key: 0 }, record, {
183
+ index: index,
184
+ column: column
185
+ }))
186
+ : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
187
+ _createTextVNode(_toDisplayString(_unref(get)(record, _optionalChain([column, 'optionalAccess', _37 => _37.dataIndex]) || _optionalChain([column, 'optionalAccess', _38 => _38.key])) || '--'), 1 /* TEXT */)
188
+ ], 64 /* STABLE_FRAGMENT */))
189
+ ]),
190
+ emptyText: _withCtx(() => [
191
+ _renderSlot(_ctx.$slots, "emptyText", {}, () => [
192
+ _createVNode(_unref(Empty))
193
+ ])
194
+ ]),
195
+ _: 2 /* DYNAMIC */
196
+ }, [
197
+ _renderList(_slots.value, (_, slotKey) => {
198
+ return {
199
+ name: slotKey,
200
+ fn: _withCtx((slotProps) => [
201
+ (!((_optionalChain([__props, 'access', _39 => _39.column, 'optionalAccess', _40 => _40.key]) || _optionalChain([__props, 'access', _41 => _41.column, 'optionalAccess', _42 => _42.dataIndex])) && _optionalChain([__props, 'access', _43 => _43.column, 'optionalAccess', _44 => _44.scopedSlots]) && (_optionalChain([_slots, 'access', _45 => _45.value, 'optionalAccess', _46 => _46[_optionalChain([__props, 'access', _47 => _47.column, 'optionalAccess', _48 => _48.dataIndex])]]) || _optionalChain([_slots, 'access', _49 => _49.value, 'optionalAccess', _50 => _50[_optionalChain([__props, 'access', _51 => _51.column, 'optionalAccess', _52 => _52.key])]]))))
202
+ ? _renderSlot(_ctx.$slots, slotKey, _normalizeProps(_mergeProps({ key: 0 }, slotProps)))
203
+ : _createCommentVNode("v-if", true)
204
+ ])
205
+ };
206
+ })
207
+ ]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["rowKey", "row-selection", "dataSource", "columns", "height"]))
208
+ : (_openBlock(), _createBlock(_unref(Table), _mergeProps({ key: 1 }, props, {
209
+ "row-selection": __rowSelection.value,
210
+ dataSource: _ctx.dataSource,
211
+ columns: _columns.value,
212
+ pagination: false,
213
+ scroll: _scroll.value,
214
+ class: { 'j-table-scroll': !_optionalChain([props, 'access', _53 => _53.scroll, 'optionalAccess', _54 => _54.y]) }
215
+ }), _createSlots({
216
+ bodyCell: _withCtx(({ column, record, index }) => [
217
+ ((_optionalChain([column, 'optionalAccess', _55 => _55.key]) || _optionalChain([column, 'optionalAccess', _56 => _56.dataIndex])) && _optionalChain([column, 'optionalAccess', _57 => _57.scopedSlots]) && (_optionalChain([_slots, 'access', _58 => _58.value, 'optionalAccess', _59 => _59[_optionalChain([column, 'optionalAccess', _60 => _60.dataIndex])]]) || _optionalChain([_slots, 'access', _61 => _61.value, 'optionalAccess', _62 => _62[_optionalChain([column, 'optionalAccess', _63 => _63.key])]])))
218
+ ? _renderSlot(_ctx.$slots, _optionalChain([column, 'optionalAccess', _64 => _64.key]) || _optionalChain([column, 'optionalAccess', _65 => _65.dataIndex]), _mergeProps({ key: 0 }, record, {
219
+ index: index,
220
+ column: column
221
+ }))
222
+ : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
223
+ _createTextVNode(_toDisplayString(_unref(get)(record, _optionalChain([column, 'optionalAccess', _66 => _66.dataIndex]) || _optionalChain([column, 'optionalAccess', _67 => _67.key])) || '--'), 1 /* TEXT */)
224
+ ], 64 /* STABLE_FRAGMENT */))
225
+ ]),
226
+ emptyText: _withCtx(() => [
227
+ _renderSlot(_ctx.$slots, "emptyText", {}, () => [
228
+ _createVNode(_unref(Empty))
229
+ ])
230
+ ]),
231
+ _: 2 /* DYNAMIC */
232
+ }, [
233
+ _renderList(_slots.value, (_, slotKey) => {
234
+ return {
235
+ name: slotKey,
236
+ fn: _withCtx((slotProps) => [
237
+ (!((_optionalChain([__props, 'access', _68 => _68.column, 'optionalAccess', _69 => _69.key]) || _optionalChain([__props, 'access', _70 => _70.column, 'optionalAccess', _71 => _71.dataIndex])) && _optionalChain([__props, 'access', _72 => _72.column, 'optionalAccess', _73 => _73.scopedSlots]) && (_optionalChain([_slots, 'access', _74 => _74.value, 'optionalAccess', _75 => _75[_optionalChain([__props, 'access', _76 => _76.column, 'optionalAccess', _77 => _77.dataIndex])]]) || _optionalChain([_slots, 'access', _78 => _78.value, 'optionalAccess', _79 => _79[_optionalChain([__props, 'access', _80 => _80.column, 'optionalAccess', _81 => _81.key])]]))))
238
+ ? _renderSlot(_ctx.$slots, slotKey, _normalizeProps(_mergeProps({ key: 0 }, slotProps)))
239
+ : _createCommentVNode("v-if", true)
240
+ ])
241
+ };
242
+ })
243
+ ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["row-selection", "dataSource", "columns", "scroll", "class"]))
244
+ ], 64 /* STABLE_FRAGMENT */))
245
+ ], 2 /* CLASS */));
125
246
  };
126
247
  }
127
248
  });