@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
@@ -37,6 +37,8 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
37
37
  "inject": "setup-const",
38
38
  "debounce": "setup-maybe-ref",
39
39
  "TableConfig": "setup-maybe-ref",
40
+ "useTableInject": "setup-maybe-ref",
41
+ "useProTableStyle": "setup-maybe-ref",
40
42
  "tableConfig": "setup-maybe-ref",
41
43
  "props": "setup-reactive-const",
42
44
  "slots": "setup-maybe-ref",
@@ -46,7 +48,11 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
46
48
  "_mode": "setup-ref",
47
49
  "column": "setup-ref",
48
50
  "page": "setup-reactive-const",
51
+ "prefixCls": "setup-ref",
52
+ "wrapSSR": "setup-maybe-ref",
53
+ "hashId": "setup-maybe-ref",
49
54
  "extraSlots": "setup-const",
55
+ "_rowSelection": "setup-maybe-ref",
50
56
  "showAlert": "setup-ref",
51
57
  "showPagination": "setup-ref",
52
58
  "onCheck": "setup-const",
@@ -60,10 +66,10 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
60
66
  "windowChange": "setup-const"
61
67
  } */
62
68
  import { defineComponent as _defineComponent } from 'vue';
63
- import { renderSlot as _renderSlot, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, unref as _unref, normalizeProps as _normalizeProps, mergeProps as _mergeProps, renderList as _renderList, createSlots as _createSlots, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
69
+ import { unref as _unref, renderSlot as _renderSlot, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeProps as _normalizeProps, mergeProps as _mergeProps, renderList as _renderList, createSlots as _createSlots, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
64
70
  const _hoisted_1 = { class: "jtable-body" };
65
71
  import { proTableProps } from "./setting";
66
- import { Spin } from 'ant-design-vue/lib/';
72
+ import { Spin } from 'ant-design-vue';
67
73
  import Header from './Header.js';
68
74
  import Alert from './Alert.js';
69
75
  import Content from './Content.js';
@@ -71,6 +77,8 @@ import Pagination from './Pagination.js';
71
77
  import { useSlots, watch, onMounted, onUnmounted, computed, ref, reactive, inject } from "vue";
72
78
  import { debounce } from 'lodash-es';
73
79
  import { TableConfig } from "../utils/constants";
80
+ import { useTableInject } from "./hooks";
81
+ import useProTableStyle from "./style";
74
82
  const __sfc_main__ = _defineComponent({
75
83
  ...{
76
84
  name: 'JProTable'
@@ -98,16 +106,19 @@ const __sfc_main__ = _defineComponent({
98
106
  });
99
107
  const loading = ref(false);
100
108
  const _dataSource = ref([]);
101
- const _mode = ref(!props.mode ? (props.modeValue || 'CARD') : props.mode);
109
+ const _mode = ref(props.mode || props.modeValue || 'CARD');
102
110
  const column = ref(4);
103
111
  const page = reactive({
104
112
  pageIndex: 0,
105
113
  pageSize: 12,
106
114
  total: 0
107
115
  });
116
+ const prefixCls = computed(() => 'pro-table');
117
+ const [wrapSSR, hashId] = useProTableStyle(prefixCls);
108
118
  const extraSlots = ['headerRightRender', 'headerLeftRender', 'paginationRender', 'alertRender'];
119
+ const _rowSelection = useTableInject();
109
120
  const showAlert = computed(() => {
110
- return props.alertShow && _optionalChain([props, 'optionalAccess', _2 => _2.rowSelection, 'optionalAccess', _3 => _3.selectedRowKeys, 'optionalAccess', _4 => _4.length]);
121
+ return props.alertShow && (_optionalChain([props, 'access', _2 => _2.rowSelection, 'optionalAccess', _3 => _3.selectedRowKeys, 'optionalAccess', _4 => _4.length]) || _optionalChain([_rowSelection, 'optionalAccess', _5 => _5.value, 'optionalAccess', _6 => _6.selectedRowKeys, 'optionalAccess', _7 => _7.length]));
111
122
  });
112
123
  const showPagination = computed(() => {
113
124
  return !!_dataSource.value.length && !props.noPagination && props.type === 'PAGE';
@@ -118,17 +129,17 @@ const __sfc_main__ = _defineComponent({
118
129
  const handleData = (result) => {
119
130
  if (props.type === 'PAGE') {
120
131
  // 判断如果是最后一页且最后一页为空,就跳转到前一页
121
- if (_optionalChain([result, 'optionalAccess', _5 => _5.total]) &&
122
- _optionalChain([result, 'optionalAccess', _6 => _6.pageSize]) &&
123
- _optionalChain([result, 'optionalAccess', _7 => _7.pageIndex]) &&
124
- _optionalChain([result, 'optionalAccess', _8 => _8.data, 'optionalAccess', _9 => _9.length]) === 0) {
132
+ if (_optionalChain([result, 'optionalAccess', _8 => _8.total]) &&
133
+ _optionalChain([result, 'optionalAccess', _9 => _9.pageSize]) &&
134
+ _optionalChain([result, 'optionalAccess', _10 => _10.pageIndex]) &&
135
+ _optionalChain([result, 'optionalAccess', _11 => _11.data, 'optionalAccess', _12 => _12.length]) === 0) {
125
136
  return true;
126
137
  }
127
138
  else {
128
- _dataSource.value = _optionalChain([result, 'optionalAccess', _10 => _10.data]) || [];
129
- page.pageIndex = _optionalChain([result, 'optionalAccess', _11 => _11.pageIndex]) || 0;
130
- page.pageSize = _optionalChain([result, 'optionalAccess', _12 => _12.pageSize]) || 12;
131
- page.total = _optionalChain([result, 'optionalAccess', _13 => _13.total]) || 0;
139
+ _dataSource.value = _optionalChain([result, 'optionalAccess', _13 => _13.data]) || [];
140
+ page.pageIndex = _optionalChain([result, 'optionalAccess', _14 => _14.pageIndex]) || 0;
141
+ page.pageSize = _optionalChain([result, 'optionalAccess', _15 => _15.pageSize]) || 12;
142
+ page.total = _optionalChain([result, 'optionalAccess', _16 => _16.total]) || 0;
132
143
  }
133
144
  }
134
145
  else {
@@ -147,8 +158,8 @@ const __sfc_main__ = _defineComponent({
147
158
  ...props.defaultParams,
148
159
  ..._params,
149
160
  terms: [
150
- ...(_optionalChain([props, 'access', _14 => _14.defaultParams, 'optionalAccess', _15 => _15.terms]) || []),
151
- ...(_optionalChain([_params, 'optionalAccess', _16 => _16.terms]) || []),
161
+ ...(_optionalChain([props, 'access', _17 => _17.defaultParams, 'optionalAccess', _18 => _18.terms]) || []),
162
+ ...(_optionalChain([_params, 'optionalAccess', _19 => _19.terms]) || []),
152
163
  ],
153
164
  };
154
165
  loading.value = true;
@@ -183,8 +194,13 @@ const __sfc_main__ = _defineComponent({
183
194
  });
184
195
  };
185
196
  const onClose = () => {
186
- _optionalChain([props, 'access', _17 => _17.rowSelection, 'optionalAccess', _18 => _18.onChange, 'optionalCall', _19 => _19([], [])]);
187
- _optionalChain([props, 'access', _20 => _20.rowSelection, 'optionalAccess', _21 => _21.onSelectNone, 'optionalCall', _22 => _22()]);
197
+ if (props.rowSelection) {
198
+ _optionalChain([props, 'access', _20 => _20.rowSelection, 'access', _21 => _21.onChange, 'optionalCall', _22 => _22([], [])]);
199
+ _optionalChain([props, 'access', _23 => _23.rowSelection, 'access', _24 => _24.onSelectNone, 'optionalCall', _25 => _25()]);
200
+ }
201
+ else if (_optionalChain([_rowSelection, 'optionalAccess', _26 => _26.value])) {
202
+ _optionalChain([_rowSelection, 'access', _27 => _27.value, 'optionalAccess', _28 => _28.onSelectNone, 'optionalCall', _29 => _29()]);
203
+ }
188
204
  };
189
205
  /**
190
206
  * 刷新数据
@@ -199,10 +215,10 @@ const __sfc_main__ = _defineComponent({
199
215
  });
200
216
  };
201
217
  const _gridColumns = computed(() => {
202
- if (_optionalChain([props, 'access', _23 => _23.gridColumns, 'optionalAccess', _24 => _24.length])) {
218
+ if (_optionalChain([props, 'access', _30 => _30.gridColumns, 'optionalAccess', _31 => _31.length])) {
203
219
  const arr = props.gridColumns;
204
- const lastValue = _optionalChain([arr, 'access', _25 => _25.slice, 'call', _26 => _26(-1), 'optionalAccess', _27 => _27[0]]);
205
- if (_optionalChain([arr, 'optionalAccess', _28 => _28.length]) < 4) {
220
+ const lastValue = _optionalChain([arr, 'access', _32 => _32.slice, 'call', _33 => _33(-1), 'optionalAccess', _34 => _34[0]]);
221
+ if (_optionalChain([arr, 'optionalAccess', _35 => _35.length]) < 4) {
206
222
  while (arr.length < 4) {
207
223
  arr.push(lastValue);
208
224
  }
@@ -223,16 +239,16 @@ const __sfc_main__ = _defineComponent({
223
239
  const styles = window.getComputedStyle(ele);
224
240
  const width = parseFloat(styles.width);
225
241
  if (width <= 992) {
226
- column.value = _optionalChain([_gridColumns, 'access', _29 => _29.value, 'optionalAccess', _30 => _30[0]]) || 1;
242
+ column.value = _optionalChain([_gridColumns, 'access', _36 => _36.value, 'optionalAccess', _37 => _37[0]]) || 1;
227
243
  }
228
244
  else if (width > 992 && width <= 1440) {
229
- column.value = _optionalChain([_gridColumns, 'access', _31 => _31.value, 'optionalAccess', _32 => _32[1]]) || 2;
245
+ column.value = _optionalChain([_gridColumns, 'access', _38 => _38.value, 'optionalAccess', _39 => _39[1]]) || 2;
230
246
  }
231
247
  else if (width > 1440 && width <= 1600) {
232
- column.value = _optionalChain([_gridColumns, 'access', _33 => _33.value, 'optionalAccess', _34 => _34[2]]) || 3;
248
+ column.value = _optionalChain([_gridColumns, 'access', _40 => _40.value, 'optionalAccess', _41 => _41[2]]) || 3;
233
249
  }
234
250
  else if (width > 1600) {
235
- column.value = _optionalChain([_gridColumns, 'access', _35 => _35.value, 'optionalAccess', _36 => _36[3]]) || 4;
251
+ column.value = _optionalChain([_gridColumns, 'access', _42 => _42.value, 'optionalAccess', _43 => _43[3]]) || 4;
236
252
  }
237
253
  }
238
254
  };
@@ -256,7 +272,7 @@ const __sfc_main__ = _defineComponent({
256
272
  __expose({ reload, dataSource: _dataSource });
257
273
  return (_ctx, _cache) => {
258
274
  return (_openBlock(), _createElementBlock("div", {
259
- class: "jtable-body-spin",
275
+ class: _normalizeClass(['jtable-body-spin', _unref(hashId)]),
260
276
  style: _normalizeStyle(_ctx.bodyStyle),
261
277
  id: "jtable-body-spin"
262
278
  }, [
@@ -280,12 +296,12 @@ const __sfc_main__ = _defineComponent({
280
296
  (showAlert.value)
281
297
  ? (_openBlock(), _createBlock(Alert, {
282
298
  key: 0,
283
- rowSelection: _ctx.rowSelection,
299
+ rowSelection: _ctx.rowSelection || _unref(_rowSelection),
284
300
  onClose: onClose
285
301
  }, {
286
302
  default: _withCtx(() => [
287
303
  _renderSlot(_ctx.$slots, "alertRender", {
288
- rowSelection: _ctx.rowSelection,
304
+ rowSelection: _ctx.rowSelection || _unref(_rowSelection),
289
305
  onClose: onClose
290
306
  })
291
307
  ]),
@@ -332,7 +348,7 @@ const __sfc_main__ = _defineComponent({
332
348
  ]),
333
349
  _: 3 /* FORWARDED */
334
350
  }, 8 /* PROPS */, ["spinning"])
335
- ], 4 /* STYLE */));
351
+ ], 6 /* CLASS, STYLE */));
336
352
  };
337
353
  }
338
354
  });
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.proTableProps = exports._paginationProps = exports._headerProps = exports._contentProps = exports._alertProps = void 0;
8
8
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
- var _Table = require("ant-design-vue/lib/table/Table");
9
+ var _Table = require("ant-design-vue/es/table/Table");
10
10
  require("vue");
11
- require("ant-design-vue/lib/table");
12
- var _Pagination = require("ant-design-vue/lib/pagination/Pagination");
11
+ require("ant-design-vue/es/table");
12
+ var _Pagination = require("ant-design-vue/es/pagination/Pagination");
13
13
  var _lodashEs = require("lodash");
14
14
  var _headerProps = exports._headerProps = {
15
15
  mode: {
@@ -1,3 +1,116 @@
1
1
  "use strict";
2
2
 
3
- require("./ProTable.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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _styleRegister = _interopRequireDefault(require("../../style/styleRegister"));
10
+ var genProTableStyle = function genProTableStyle(config) {
11
+ var token = config.token;
12
+ return {
13
+ '.jtable-body-spin': {
14
+ height: '100%',
15
+ width: '100%',
16
+ backgroundColor: '#fff',
17
+ '.ant-spin-nested-loading': {
18
+ height: '100%',
19
+ '.ant-spin-container': {
20
+ height: '100%'
21
+ }
22
+ },
23
+ '.jtable-body': {
24
+ width: '100%',
25
+ boxSizing: 'border-box',
26
+ height: '100%',
27
+ display: 'flex',
28
+ flexDirection: 'column'
29
+ }
30
+ },
31
+ '.jtable-body-header': {
32
+ display: 'flex',
33
+ justifyContent: 'space-between',
34
+ alignItems: 'center',
35
+ marginBottom: '16px',
36
+ width: '100%',
37
+ gap: '8px',
38
+ '.jtable-body-header-left': {
39
+ flex: 1,
40
+ minWidth: 0
41
+ },
42
+ '.jtable-body-header-right': {
43
+ display: 'flex',
44
+ gap: '8px',
45
+ alignItems: 'center',
46
+ '.jtable-body-header-right-button': {
47
+ width: '62px',
48
+ '.right-button-icon': {
49
+ fontSize: '16px',
50
+ color: '#d9d9d9'
51
+ },
52
+ '.ant-radio-button-wrapper': {
53
+ padding: '0 8px'
54
+ },
55
+ '.ant-radio-button-wrapper-checked': {
56
+ color: token.colorPrimary
57
+ }
58
+ }
59
+ }
60
+ },
61
+ '.jtable-box': {
62
+ flex: 1,
63
+ minHeight: 0,
64
+ '.jtable-card': (0, _defineProperty2.default)({
65
+ height: '100%',
66
+ overflowY: 'auto',
67
+ '.jtable-card-items': {
68
+ display: 'grid',
69
+ gridGap: '26px',
70
+ '.jtable-card-item': {
71
+ display: 'flex',
72
+ minWidth: 0
73
+ }
74
+ }
75
+ }, "j-table-empty", {
76
+ marginTop: '100px'
77
+ }),
78
+ '.ant-table-wrapper': {
79
+ height: '100%',
80
+ '.ant-table': {
81
+ height: '100%',
82
+ '.ant-table-container': {
83
+ height: '100%',
84
+ '.ant-table-content': {
85
+ height: '100%'
86
+ }
87
+ }
88
+ }
89
+ },
90
+ '.j-table-scroll': {
91
+ '.ant-table-container': {
92
+ display: 'flex',
93
+ flexDirection: 'column'
94
+ },
95
+ '.ant-table-body': {
96
+ flex: 1,
97
+ minHeight: 0,
98
+ overflowY: 'auto'
99
+ }
100
+ }
101
+ },
102
+ '.jtable-alert': {
103
+ marginBottom: '16px'
104
+ },
105
+ '.jtable-pagination': {
106
+ width: '100%',
107
+ display: 'flex',
108
+ justifyContent: 'flex-end',
109
+ marginTop: '16px',
110
+ '.hide-content': (0, _defineProperty2.default)({}, "".concat(token.antCls, "-pagination-item,& ").concat(token.antCls, "-pagination-jump-prev, & ").concat(token.antCls, "-pagination-jump-next"), {
111
+ display: 'none'
112
+ })
113
+ }
114
+ };
115
+ };
116
+ var _default = exports.default = (0, _styleRegister.default)([genProTableStyle]);
@@ -2,19 +2,23 @@
2
2
  "value": "props",
3
3
  "options": "props",
4
4
  "columns": "props",
5
- "defineOptions": "setup-const",
6
5
  "ref": "setup-const",
7
6
  "computed": "setup-const",
8
7
  "watch": "setup-const",
8
+ "useRadioButtonStyle": "setup-maybe-ref",
9
9
  "props": "setup-reactive-const",
10
10
  "emit": "setup-const",
11
+ "prefixCls": "setup-ref",
12
+ "wrapSSR": "setup-maybe-ref",
13
+ "hashId": "setup-maybe-ref",
11
14
  "myValue": "setup-ref",
12
15
  "styles": "setup-ref",
13
16
  "onClick": "setup-const"
14
17
  } */
15
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
18
+ import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
16
19
  const _hoisted_1 = ["onClick"];
17
20
  import { ref, computed, watch } from 'vue';
21
+ import useRadioButtonStyle from './style';
18
22
  const __sfc_main__ = Object.assign({
19
23
  name: 'JRadioButton',
20
24
  }, {
@@ -36,6 +40,8 @@ const __sfc_main__ = Object.assign({
36
40
  setup(__props, { emit: __emit }) {
37
41
  const props = __props;
38
42
  const emit = __emit;
43
+ const prefixCls = computed(() => 'j-radio-button');
44
+ const [wrapSSR, hashId] = useRadioButtonStyle(prefixCls);
39
45
  const myValue = ref(props.value);
40
46
  const styles = computed(() => {
41
47
  return {
@@ -54,7 +60,7 @@ const __sfc_main__ = Object.assign({
54
60
  });
55
61
  return (_ctx, _cache) => {
56
62
  return (_openBlock(), _createElementBlock("div", {
57
- class: "j-radio-button",
63
+ class: _normalizeClass(['j-radio-button', _unref(hashId)]),
58
64
  style: _normalizeStyle(styles.value)
59
65
  }, [
60
66
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
@@ -63,7 +69,7 @@ const __sfc_main__ = Object.assign({
63
69
  class: _normalizeClass(["j-radio-button-item", { 'active': myValue.value === item.value }])
64
70
  }, _toDisplayString(item.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_1));
65
71
  }), 256 /* UNKEYED_FRAGMENT */))
66
- ], 4 /* STYLE */));
72
+ ], 6 /* CLASS, STYLE */));
67
73
  };
68
74
  }
69
75
  });
@@ -1,3 +1,30 @@
1
1
  "use strict";
2
2
 
3
- require("./index.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 genRadioButtonStyle = function genRadioButtonStyle(config) {
10
+ var token = config.token;
11
+ return {
12
+ '.j-radio-button': {
13
+ display: 'grid',
14
+ gap: '16px',
15
+ '.j-radio-button-item': {
16
+ padding: '6px 12px',
17
+ textAlign: 'center',
18
+ height: '100%',
19
+ borderRadius: '2px',
20
+ backgroundColor: '#f5f5f5',
21
+ cursor: 'pointer',
22
+ '&.active': {
23
+ color: '#fff',
24
+ backgroundColor: token.colorPrimary
25
+ }
26
+ }
27
+ }
28
+ };
29
+ };
30
+ var _default = exports.default = (0, _styleRegister.default)([genRadioButtonStyle]);
@@ -32,9 +32,13 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
32
32
  "scrollbarEmits": "setup-maybe-ref",
33
33
  "scrollbarProps": "setup-maybe-ref",
34
34
  "BarInstance": "setup-maybe-ref",
35
+ "useScrollbarStyle": "setup-maybe-ref",
35
36
  "COMPONENT_NAME": "literal-const",
36
37
  "props": "setup-reactive-const",
37
38
  "emit": "setup-const",
39
+ "prefixCls": "setup-ref",
40
+ "wrapSSR": "setup-maybe-ref",
41
+ "hashId": "setup-maybe-ref",
38
42
  "stopResizeObserver": "setup-let",
39
43
  "stopResizeListener": "setup-let",
40
44
  "scrollbarRef": "setup-ref",
@@ -51,13 +55,14 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
51
55
  "update": "setup-const"
52
56
  } */
53
57
  import { defineComponent as _defineComponent } from 'vue';
54
- import { renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from "vue";
58
+ import { unref as _unref, renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from "vue";
55
59
  import { computed, nextTick, onMounted, onUpdated, provide, reactive, ref, watch, } from 'vue';
56
60
  import { useEventListener, useResizeObserver } from '@vueuse/core';
57
61
  import { isNumber, isObject } from '@jetlinks-web/utils';
58
62
  import Bar from './Bar.js';
59
63
  import { scrollbarContextKey } from './constants';
60
64
  import { scrollbarEmits, scrollbarProps, } from './scrollbarProps';
65
+ import useScrollbarStyle from './style';
61
66
  const COMPONENT_NAME = 'JScrollbar';
62
67
  const __sfc_main__ = _defineComponent({
63
68
  ...{
@@ -68,6 +73,8 @@ const __sfc_main__ = _defineComponent({
68
73
  setup(__props, { expose: __expose, emit: __emit }) {
69
74
  const props = __props;
70
75
  const emit = __emit;
76
+ const prefixCls = computed(() => 'j-scrollbar');
77
+ const [wrapSSR, hashId] = useScrollbarStyle(prefixCls);
71
78
  let stopResizeObserver = undefined;
72
79
  let stopResizeListener = undefined;
73
80
  const scrollbarRef = ref();
@@ -172,7 +179,7 @@ const __sfc_main__ = _defineComponent({
172
179
  return (_openBlock(), _createElementBlock("div", {
173
180
  ref_key: "scrollbarRef",
174
181
  ref: scrollbarRef,
175
- class: "j-scrollbar"
182
+ class: _normalizeClass(['j-scrollbar', _unref(hashId)])
176
183
  }, [
177
184
  _createElementVNode("div", {
178
185
  ref_key: "wrapRef",
@@ -205,7 +212,7 @@ const __sfc_main__ = _defineComponent({
205
212
  "min-size": _ctx.minSize
206
213
  }, null, 8 /* PROPS */, ["always", "min-size"]))
207
214
  : _createCommentVNode("v-if", true)
208
- ], 512 /* NEED_PATCH */));
215
+ ], 2 /* CLASS */));
209
216
  };
210
217
  }
211
218
  });
@@ -26,12 +26,16 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
26
26
  "BAR_MAP": "setup-maybe-ref",
27
27
  "renderThumbStyle": "setup-maybe-ref",
28
28
  "thumbProps": "setup-maybe-ref",
29
+ "useScrollbarStyle": "setup-maybe-ref",
29
30
  "props": "setup-reactive-const",
30
31
  "scrollbar": "setup-maybe-ref",
31
32
  "instance": "setup-ref",
32
33
  "thumb": "setup-ref",
33
34
  "thumbState": "setup-ref",
34
35
  "visible": "setup-ref",
36
+ "prefixCls": "setup-ref",
37
+ "wrapSSR": "setup-maybe-ref",
38
+ "hashId": "setup-maybe-ref",
35
39
  "cursorDown": "setup-let",
36
40
  "cursorLeave": "setup-let",
37
41
  "originalOnSelectStart": "setup-let",
@@ -48,13 +52,14 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
48
52
  "restoreOnselectstart": "setup-const"
49
53
  } */
50
54
  import { defineComponent as _defineComponent } from 'vue';
51
- import { normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, vShow as _vShow, normalizeClass as _normalizeClass, withDirectives as _withDirectives, Transition as _Transition, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
55
+ import { unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, vShow as _vShow, normalizeClass as _normalizeClass, withDirectives as _withDirectives, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
52
56
  import { computed, inject, onBeforeUnmount, ref, toRef } from 'vue';
53
57
  import { useEventListener } from '@vueuse/core';
54
58
  import { isClient } from '@jetlinks-web/utils';
55
59
  import { scrollbarContextKey } from './constants';
56
60
  import { BAR_MAP, renderThumbStyle } from './util';
57
61
  import { thumbProps } from './thumbProps';
62
+ import useScrollbarStyle from './style';
58
63
  const __sfc_main__ = _defineComponent({
59
64
  props: thumbProps,
60
65
  setup(__props) {
@@ -66,6 +71,8 @@ const __sfc_main__ = _defineComponent({
66
71
  const thumb = ref();
67
72
  const thumbState = ref({});
68
73
  const visible = ref(false);
74
+ const prefixCls = computed(() => 'j-scrollbar');
75
+ const [wrapSSR, hashId] = useScrollbarStyle(prefixCls);
69
76
  let cursorDown = false;
70
77
  let cursorLeave = false;
71
78
  let originalOnSelectStart = isClient ? document.onselectstart : null;
@@ -159,30 +166,34 @@ const __sfc_main__ = _defineComponent({
159
166
  useEventListener(toRef(scrollbar, 'scrollbarElement'), 'mousemove', mouseMoveScrollbarHandler);
160
167
  useEventListener(toRef(scrollbar, 'scrollbarElement'), 'mouseleave', mouseLeaveScrollbarHandler);
161
168
  return (_ctx, _cache) => {
162
- return (_openBlock(), _createBlock(_Transition, {
163
- name: "j-scrollbar-fade",
164
- persisted: ""
165
- }, {
166
- default: _withCtx(() => [
167
- _withDirectives(_createElementVNode("div", {
168
- ref_key: "instance",
169
- ref: instance,
170
- class: _normalizeClass(['j-scrollbar__bar', props.vertical ? 'is-vertical' : 'is-horizontal']),
171
- onMousedown: clickTrackHandler
172
- }, [
173
- _createElementVNode("div", {
174
- ref_key: "thumb",
175
- ref: thumb,
176
- class: "j-scrollbar__thumb",
177
- style: _normalizeStyle(thumbStyle.value),
178
- onMousedown: clickThumbHandler
179
- }, null, 36 /* STYLE, NEED_HYDRATION */)
180
- ], 34 /* CLASS, NEED_HYDRATION */), [
181
- [_vShow, _ctx.always || visible.value]
182
- ])
183
- ]),
184
- _: 1 /* STABLE */
185
- }));
169
+ return (_openBlock(), _createElementBlock("div", {
170
+ class: _normalizeClass([_unref(hashId)])
171
+ }, [
172
+ _createVNode(_Transition, {
173
+ name: "j-scrollbar-fade",
174
+ persisted: ""
175
+ }, {
176
+ default: _withCtx(() => [
177
+ _withDirectives(_createElementVNode("div", {
178
+ ref_key: "instance",
179
+ ref: instance,
180
+ class: _normalizeClass(['j-scrollbar__bar', props.vertical ? 'is-vertical' : 'is-horizontal']),
181
+ onMousedown: clickTrackHandler
182
+ }, [
183
+ _createElementVNode("div", {
184
+ ref_key: "thumb",
185
+ ref: thumb,
186
+ class: "j-scrollbar__thumb",
187
+ style: _normalizeStyle(thumbStyle.value),
188
+ onMousedown: clickThumbHandler
189
+ }, null, 36 /* STYLE, NEED_HYDRATION */)
190
+ ], 34 /* CLASS, NEED_HYDRATION */), [
191
+ [_vShow, _ctx.always || visible.value]
192
+ ])
193
+ ]),
194
+ _: 1 /* STABLE */
195
+ })
196
+ ], 2 /* CLASS */));
186
197
  };
187
198
  }
188
199
  });
@@ -1,3 +1,70 @@
1
1
  "use strict";
2
2
 
3
- require("./index.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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _styleRegister = _interopRequireDefault(require("../../style/styleRegister"));
10
+ var scrollbarBgColor = '#909399';
11
+ var scrollbarHoverBgColor = '#909399';
12
+ var scrollbarHoverOpacity = 0.5;
13
+ var scrollbarOpacity = 0.3;
14
+ var transitionDuration = '0.3s';
15
+ var genScrollbarStyle = function genScrollbarStyle(config) {
16
+ var componentCls = config.componentCls,
17
+ token = config.token;
18
+ return (0, _defineProperty2.default)((0, _defineProperty2.default)({}, componentCls, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
19
+ overflow: 'hidden',
20
+ position: 'relative',
21
+ height: '100%'
22
+ }, "".concat(componentCls, "__wrap"), (0, _defineProperty2.default)({
23
+ overflow: 'auto',
24
+ height: '100%'
25
+ }, "".concat(componentCls, "--hidden-default"), {
26
+ scrollbarWidth: 'none',
27
+ '&::-webkit-scrollbar': {
28
+ display: 'none'
29
+ }
30
+ })), "".concat(componentCls, "__thumb"), {
31
+ position: 'relative',
32
+ display: 'block',
33
+ width: 0,
34
+ height: 0,
35
+ cursor: 'pointer',
36
+ borderRadius: 'inherit',
37
+ backgroundColor: scrollbarBgColor,
38
+ transition: "".concat(transitionDuration, " background-color"),
39
+ opacity: scrollbarOpacity,
40
+ '&:hover': {
41
+ backgroundColor: scrollbarHoverBgColor,
42
+ opacity: scrollbarOpacity
43
+ }
44
+ }), "".concat(componentCls, "__bar"), (0, _defineProperty2.default)((0, _defineProperty2.default)({
45
+ position: 'absolute',
46
+ right: '2px',
47
+ bottom: '2px',
48
+ zIndex: 1,
49
+ borderRadius: '4px'
50
+ }, "".concat(componentCls, "--vertical"), {
51
+ width: '6px',
52
+ top: '2px',
53
+ '> div': {
54
+ width: '100%'
55
+ }
56
+ }), "".concat(componentCls, "--horizontal"), {
57
+ height: '6px',
58
+ left: '2px',
59
+ '> div': {
60
+ height: '100%'
61
+ }
62
+ }))), "".concat(componentCls, "-fade"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(componentCls, "-fade-enter-active"), {
63
+ transition: 'opacity 340ms ease-out'
64
+ }), "".concat(componentCls, "-fade-leave-active"), {
65
+ transition: 'opacity 120ms ease-out'
66
+ }), "".concat(componentCls, "-fade-enter-from,").concat(componentCls, "-fade-leave-active"), {
67
+ opacity: 0
68
+ }));
69
+ };
70
+ var _default = exports.default = (0, _styleRegister.default)([genScrollbarStyle]);