@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
@@ -19,10 +19,10 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
19
19
  "AutoComplete": "setup-maybe-ref",
20
20
  "autoCompleteProps": "setup-maybe-ref",
21
21
  "ref": "setup-const",
22
- "defineOptions": "setup-const",
22
+ "watch": "setup-const",
23
23
  "props": "setup-reactive-const",
24
24
  "emit": "setup-const",
25
- "options": "setup-ref",
25
+ "_options": "setup-ref",
26
26
  "onSearch": "setup-const",
27
27
  "dropdownVisibleChange": "setup-const"
28
28
  } */
@@ -30,7 +30,7 @@ import { defineComponent as _defineComponent } from 'vue';
30
30
  import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
31
31
  import { AutoComplete } from 'ant-design-vue';
32
32
  import { autoCompleteProps } from 'ant-design-vue/lib/auto-complete';
33
- import { ref, } from 'vue';
33
+ import { ref, watch } from 'vue';
34
34
  const __sfc_main__ = _defineComponent({
35
35
  ...{
36
36
  name: 'JAutoComplete'
@@ -46,29 +46,33 @@ const __sfc_main__ = _defineComponent({
46
46
  setup(__props, { emit: __emit }) {
47
47
  const props = __props;
48
48
  const emit = __emit;
49
- const options = ref(props.options);
49
+ const _options = ref([]);
50
50
  /**
51
51
  * 根据关键词提示
52
52
  * @param searchText 关键词
53
53
  */
54
54
  const onSearch = (searchText) => {
55
- options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
56
- if (!options.value.length) {
57
- options.value.unshift({ label: searchText, value: searchText });
55
+ _options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
56
+ if (!_options.value.length) {
57
+ _options.value.unshift({ label: searchText, value: searchText });
58
58
  }
59
59
  };
60
60
  const dropdownVisibleChange = (open) => {
61
61
  if (!open) {
62
62
  // 关闭还原下拉options
63
63
  setTimeout(() => {
64
- options.value = props.options || [];
64
+ _options.value = props.options || [];
65
65
  });
66
66
  }
67
67
  };
68
+ watch(() => JSON.stringify(props.options), // 处理options变化
69
+ () => {
70
+ _options.value = props.options || [];
71
+ }, { immediate: true });
68
72
  return (_ctx, _cache) => {
69
73
  return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps(props, {
70
74
  style: { "width": "100%" },
71
- options: options.value,
75
+ options: _options.value,
72
76
  onSearch: onSearch,
73
77
  onDropdownVisibleChange: dropdownVisibleChange
74
78
  }), {
@@ -3,7 +3,6 @@
3
3
  "status": "props",
4
4
  "statusNames": "props",
5
5
  "computed": "setup-const",
6
- "defineOptions": "setup-const",
7
6
  "getHexColor": "setup-maybe-ref",
8
7
  "Badge": "setup-maybe-ref",
9
8
  "props": "setup-reactive-const",
@@ -11,7 +10,7 @@
11
10
  } */
12
11
  import { defineComponent as _defineComponent } from 'vue';
13
12
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock } from "vue";
14
- import { computed, } from 'vue';
13
+ import { computed } from 'vue';
15
14
  import { getHexColor } from './color';
16
15
  import { Badge } from 'ant-design-vue';
17
16
  const __sfc_main__ = _defineComponent({
@@ -14,9 +14,9 @@ var colorMap = {
14
14
  var getHexColor = exports.getHexColor = function getHexColor(code) {
15
15
  var pe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.1;
16
16
  var _color = colorMap[code] || colorMap.default;
17
- if (code === 'default') {
18
- pe = 0.1;
19
- }
17
+ // if (code === 'default') {
18
+ // pe = 0.1
19
+ // }
20
20
  return "rgba(".concat(_color, ", ").concat(pe, ")");
21
21
  };
22
22
  var _default = exports.default = colorMap;
@@ -10,21 +10,22 @@
10
10
  "computed": "setup-const",
11
11
  "ref": "setup-const",
12
12
  "watch": "setup-const",
13
- "defineOptions": "setup-const",
13
+ "genCompoentStyle": "setup-maybe-ref",
14
14
  "props": "setup-reactive-const",
15
15
  "emit": "setup-const",
16
16
  "selectKeys": "setup-ref",
17
+ "prefixCls": "setup-ref",
18
+ "wrapSSR": "setup-maybe-ref",
19
+ "hashId": "setup-maybe-ref",
17
20
  "CardSelectStyle": "setup-ref",
18
21
  "isMultiple": "setup-ref",
19
22
  "handleSelect": "setup-const"
20
23
  } */
21
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
24
+ import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle } from "vue";
22
25
  const _hoisted_1 = ["onClick"];
23
- const _hoisted_2 = { class: "j-card-select-item-content" };
24
- const _hoisted_3 = { class: "j-card-select-title" };
25
- const _hoisted_4 = { class: "j-card-select-describe" };
26
26
  import { has } from 'lodash-es';
27
- import { computed, ref, watch, } from 'vue';
27
+ import { computed, ref, watch } from 'vue';
28
+ import genCompoentStyle from './style';
28
29
  const __sfc_main__ = Object.assign({
29
30
  name: 'JCardSelect'
30
31
  }, {
@@ -63,6 +64,8 @@ const __sfc_main__ = Object.assign({
63
64
  const props = __props;
64
65
  const emit = __emit;
65
66
  const selectKeys = ref([]);
67
+ const prefixCls = computed(() => 'j-card-select');
68
+ const [wrapSSR, hashId] = genCompoentStyle(prefixCls);
66
69
  const CardSelectStyle = computed(() => {
67
70
  const _column = props.column > 0 && props.layout === 'horizontal' ? props.column : 1;
68
71
  return {
@@ -103,7 +106,7 @@ const __sfc_main__ = Object.assign({
103
106
  }, { immediate: true });
104
107
  return (_ctx, _cache) => {
105
108
  return (_openBlock(), _createElementBlock("div", {
106
- class: "j-card-select",
109
+ class: _normalizeClass(['j-card-select', _unref(hashId)]),
107
110
  style: _normalizeStyle(CardSelectStyle.value)
108
111
  }, [
109
112
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
@@ -111,19 +114,26 @@ const __sfc_main__ = Object.assign({
111
114
  class: _normalizeClass({
112
115
  'j-card-select-item': true,
113
116
  'disabled': __props.disabled || item.disabled,
114
- 'active': selectKeys.value.includes(item.value)
117
+ 'active': selectKeys.value.includes(item.value),
118
+ [_unref(hashId)]: true
115
119
  }),
116
120
  onClick: () => handleSelect(item.value, item)
117
121
  }, [
118
122
  _renderSlot(_ctx.$slots, "itemRender", { node: item }, () => [
119
- _createElementVNode("div", _hoisted_2, [
120
- _createElementVNode("div", _hoisted_3, _toDisplayString(item.label), 1 /* TEXT */),
121
- _createElementVNode("div", _hoisted_4, _toDisplayString(item.describe), 1 /* TEXT */)
122
- ])
123
+ _createElementVNode("div", {
124
+ class: _normalizeClass(['j-card-select-item-content', _unref(hashId)])
125
+ }, [
126
+ _createElementVNode("div", {
127
+ class: _normalizeClass(['j-card-select-title', _unref(hashId)])
128
+ }, _toDisplayString(item.label), 3 /* TEXT, CLASS */),
129
+ _createElementVNode("div", {
130
+ class: _normalizeClass(['j-card-select-describe', _unref(hashId)])
131
+ }, _toDisplayString(item.describe), 3 /* TEXT, CLASS */)
132
+ ], 2 /* CLASS */)
123
133
  ])
124
134
  ], 10 /* CLASS, PROPS */, _hoisted_1));
125
135
  }), 256 /* UNKEYED_FRAGMENT */))
126
- ], 4 /* STYLE */));
136
+ ], 6 /* CLASS, STYLE */));
127
137
  };
128
138
  }
129
139
  });
@@ -1,3 +1,32 @@
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 genCardSelectStyle = function genCardSelectStyle(config) {
11
+ var componentCls = config.componentCls,
12
+ token = config.token;
13
+ return (0, _defineProperty2.default)({}, componentCls, (0, _defineProperty2.default)({
14
+ display: 'grid',
15
+ gap: '12px'
16
+ }, "".concat(componentCls, "-item"), (0, _defineProperty2.default)({
17
+ padding: '12px',
18
+ border: '1px solid #e6e6e6',
19
+ borderRadius: '@border-radius-base',
20
+ cursor: 'pointer',
21
+ '&.active': {
22
+ borderColor: token.colorPrimary
23
+ },
24
+ '&.disabled': {
25
+ cursor: 'not-allowed',
26
+ opacity: 0.7
27
+ }
28
+ }, "".concat(componentCls, "-describe"), {
29
+ color: token.textColorSubtitle
30
+ })));
31
+ };
32
+ var _default = exports.default = (0, _styleRegister.default)([genCardSelectStyle]);
@@ -8,20 +8,24 @@
8
8
  "computed": "setup-const",
9
9
  "ref": "setup-const",
10
10
  "watch": "setup-const",
11
- "defineOptions": "setup-const",
12
11
  "isArray": "setup-maybe-ref",
12
+ "useCheckButtonStyle": "setup-maybe-ref",
13
13
  "props": "setup-reactive-const",
14
14
  "emit": "setup-const",
15
+ "prefixCls": "setup-ref",
16
+ "wrapSSR": "setup-maybe-ref",
17
+ "hashId": "setup-maybe-ref",
15
18
  "myValue": "setup-ref",
16
19
  "optionsMap": "setup-ref",
17
20
  "_options": "setup-ref",
18
21
  "selected": "setup-const"
19
22
  } */
20
23
  import { defineComponent as _defineComponent } from 'vue';
21
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
24
+ 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";
22
25
  const _hoisted_1 = ["onClick"];
23
- import { computed, ref, watch, } from 'vue';
26
+ import { computed, ref, watch } from 'vue';
24
27
  import { isArray } from '@jetlinks-web/utils';
28
+ import useCheckButtonStyle from './style';
25
29
  const __sfc_main__ = _defineComponent({
26
30
  ...{
27
31
  name: 'JCheckButton'
@@ -56,6 +60,9 @@ const __sfc_main__ = _defineComponent({
56
60
  setup(__props, { emit: __emit }) {
57
61
  const props = __props;
58
62
  const emit = __emit;
63
+ // 使用样式
64
+ const prefixCls = computed(() => 'j-check-button');
65
+ const [wrapSSR, hashId] = useCheckButtonStyle(prefixCls);
59
66
  const myValue = ref();
60
67
  const optionsMap = ref(new Map());
61
68
  const _options = computed(() => {
@@ -99,7 +106,7 @@ const __sfc_main__ = _defineComponent({
99
106
  };
100
107
  return (_ctx, _cache) => {
101
108
  return (_openBlock(), _createElementBlock("div", {
102
- class: _normalizeClass(['j-check-button', props.class]),
109
+ class: _normalizeClass(['j-check-button', props.class, _unref(hashId)]),
103
110
  style: _normalizeStyle(__props.style)
104
111
  }, [
105
112
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_options.value, (item) => {
@@ -109,6 +116,7 @@ const __sfc_main__ = _defineComponent({
109
116
  'j-check-button-item',
110
117
  myValue.value.includes(item.value) ? 'selected' : '',
111
118
  item.disabled ? 'disabled' : '',
119
+ _unref(hashId)
112
120
  ]),
113
121
  onClick: () => {
114
122
  selected(item.value, item.disabled);
@@ -1,3 +1,48 @@
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 genCheckButtonStyle = function genCheckButtonStyle(config) {
11
+ var componentCls = config.componentCls,
12
+ token = config.token;
13
+ return (0, _defineProperty2.default)({}, componentCls, (0, _defineProperty2.default)({
14
+ display: 'flex',
15
+ gap: '16px',
16
+ width: '100%'
17
+ }, "".concat(componentCls, "-item"), {
18
+ flex: 1,
19
+ minWidth: 0,
20
+ padding: '8px',
21
+ borderRadius: token.borderRadius,
22
+ backgroundColor: '#f2f3f5',
23
+ transition: 'all 0.3s',
24
+ color: '#333',
25
+ textAlign: 'center',
26
+ cursor: 'pointer',
27
+ '&:hover': {
28
+ backgroundColor: token.colorPrimary,
29
+ opacity: 0.85,
30
+ color: '#fff'
31
+ },
32
+ '&.selected': {
33
+ backgroundColor: token.colorPrimary,
34
+ color: '#fff'
35
+ },
36
+ '&.disabled': {
37
+ backgroundColor: '#f5f5f5',
38
+ color: '#ccc',
39
+ cursor: 'not-allowed',
40
+ '&:hover': {
41
+ backgroundColor: '#f5f5f5',
42
+ color: '#ccc',
43
+ opacity: 1
44
+ }
45
+ }
46
+ }));
47
+ };
48
+ var _default = exports.default = (0, _styleRegister.default)([genCheckButtonStyle]);
@@ -23,12 +23,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
23
23
  "footer": "props",
24
24
  "ref": "setup-const",
25
25
  "useSlots": "setup-const",
26
- "defineOptions": "setup-const",
27
26
  "computed": "setup-const",
28
27
  "onMounted": "setup-const",
29
28
  "watch": "setup-const",
30
29
  "Button": "setup-maybe-ref",
31
30
  "useLocaleReceiver": "setup-maybe-ref",
31
+ "genDragModalStyle": "setup-maybe-ref",
32
32
  "props": "setup-reactive-const",
33
33
  "emits": "setup-const",
34
34
  "slots": "setup-maybe-ref",
@@ -40,6 +40,9 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
40
40
  "baseHeight": "setup-ref",
41
41
  "baseLeft": "setup-ref",
42
42
  "baseTop": "setup-ref",
43
+ "prefixCls": "setup-ref",
44
+ "wrapSSR": "setup-maybe-ref",
45
+ "hashId": "setup-maybe-ref",
43
46
  "styles": "setup-ref",
44
47
  "getFixed": "setup-const",
45
48
  "onDrag": "setup-const",
@@ -49,18 +52,19 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
49
52
  "onOk": "setup-const"
50
53
  } */
51
54
  import { defineComponent as _defineComponent } from 'vue';
52
- import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, unref as _unref, createTextVNode as _createTextVNode, Transition as _Transition } from "vue";
55
+ import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, withCtx as _withCtx, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, createTextVNode as _createTextVNode, Transition as _Transition } from "vue";
53
56
  const _hoisted_1 = {
54
57
  key: 0,
55
- class: "header"
58
+ class: /*@__PURE__*/ _normalizeClass(["header"])
56
59
  };
57
60
  const _hoisted_2 = {
58
61
  key: 1,
59
- class: "jetlinks-drag-modal-footer"
62
+ class: /*@__PURE__*/ _normalizeClass(["jetlinks-drag-modal-footer"])
60
63
  };
61
64
  import { ref, useSlots, computed, onMounted, watch } from 'vue';
62
65
  import { Button } from 'ant-design-vue';
63
66
  import { useLocaleReceiver } from "../LocaleReciver/index";
67
+ import genDragModalStyle from './style';
64
68
  const __sfc_main__ = _defineComponent({
65
69
  ...{
66
70
  name: 'JDragModal'
@@ -104,6 +108,8 @@ const __sfc_main__ = _defineComponent({
104
108
  const baseHeight = ref(props.height || 100);
105
109
  const baseLeft = ref(100);
106
110
  const baseTop = ref(100);
111
+ const prefixCls = computed(() => 'jetlinks-drag-modal');
112
+ const [wrapSSR, hashId] = genDragModalStyle(prefixCls);
107
113
  const styles = computed(() => {
108
114
  return {
109
115
  top: getFixed(baseTop.value) + 'px',
@@ -244,7 +250,7 @@ const __sfc_main__ = _defineComponent({
244
250
  ref_key: "dialog",
245
251
  ref: dialog,
246
252
  style: _normalizeStyle(styles.value),
247
- class: "jetlinks-drag-modal"
253
+ class: _normalizeClass(["jetlinks-drag-modal", _unref(hashId)])
248
254
  }, [
249
255
  _createVNode(_Transition, { name: "dialog" }, {
250
256
  default: _withCtx(() => [
@@ -269,7 +275,7 @@ const __sfc_main__ = _defineComponent({
269
275
  ]))
270
276
  : _createCommentVNode("v-if", true),
271
277
  _createElementVNode("div", {
272
- class: "jetlinks-drag-modal-body",
278
+ class: _normalizeClass(["jetlinks-drag-modal-body"]),
273
279
  style: _normalizeStyle(__props.bodyStyle)
274
280
  }, [
275
281
  _renderSlot(_ctx.$slots, "default")
@@ -307,10 +313,10 @@ const __sfc_main__ = _defineComponent({
307
313
  _: 3 /* FORWARDED */
308
314
  }),
309
315
  _createElementVNode("div", {
310
- class: "jetlinks-drag-modal-range drag-bottom-right",
316
+ class: _normalizeClass(['jetlinks-drag-modal-range', 'drag-bottom-right']),
311
317
  onMousedown: _cache[0] || (_cache[0] = _withModifiers(($event) => (rangeMove($event, "drag-bottom-right")), ["stop"]))
312
318
  }, null, 32 /* NEED_HYDRATION */)
313
- ], 4 /* STYLE */));
319
+ ], 6 /* CLASS, STYLE */));
314
320
  };
315
321
  }
316
322
  });
@@ -1,3 +1,71 @@
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 genDragModalStyle = function genDragModalStyle(config) {
11
+ var componentCls = config.componentCls,
12
+ token = config.token;
13
+ return (0, _defineProperty2.default)({}, componentCls, (0, _defineProperty2.default)((0, _defineProperty2.default)({
14
+ position: 'fixed',
15
+ zIndex: 1000
16
+ }, "".concat(componentCls, "-sprite"), (0, _defineProperty2.default)((0, _defineProperty2.default)({
17
+ position: 'absolute',
18
+ width: '100%',
19
+ height: '100%',
20
+ display: 'flex',
21
+ flexDirection: 'column',
22
+ overflow: 'hidden',
23
+ zIndex: 23456765435,
24
+ backgroundColor: '#ffffff',
25
+ borderRadius: 4,
26
+ border: '1px solid #91CAFF',
27
+ boxShadow: '0 3px 8px 0 rgba(22, 119, 255, 0.24)',
28
+ header: {
29
+ padding: '5px 15px',
30
+ fontSize: 18,
31
+ fontWeight: 700,
32
+ color: '#333',
33
+ display: 'flex',
34
+ justifyContent: 'space-between',
35
+ alignItems: 'center',
36
+ borderBottom: '1px solid #f0f0f0',
37
+ cursor: 'move'
38
+ }
39
+ }, "".concat(componentCls, "-body"), {
40
+ flex: 1,
41
+ minHeight: 0,
42
+ overflowY: 'auto',
43
+ padding: '24px 20px'
44
+ }), "".concat(componentCls, "-footer"), {
45
+ borderTop: '1px solid #f0f0f0',
46
+ padding: '5px 15px'
47
+ })), "".concat(componentCls, "-range"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
48
+ position: 'absolute',
49
+ width: '16px',
50
+ height: '16px',
51
+ borderRadius: '100%',
52
+ zIndex: 23456765436
53
+ }, 'drag-bottom-right', (0, _defineProperty2.default)({
54
+ bottom: '-6px',
55
+ right: '-6px'
56
+ }, '&:hover', {
57
+ cursor: 'nwse-resize'
58
+ })), 'drag-bottom-left', (0, _defineProperty2.default)({
59
+ bottom: '-6px',
60
+ left: '-6px'
61
+ }, '&:hover', {
62
+ cursor: 'nesw-resize'
63
+ })), 'drag-top-right', {
64
+ top: '-6px',
65
+ right: '-6px'
66
+ }), 'drag-top-left', {
67
+ top: '-6px',
68
+ left: '-6px'
69
+ })));
70
+ };
71
+ var _default = exports.default = (0, _styleRegister.default)([genDragModalStyle]);
@@ -32,8 +32,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
32
32
  "nextTick": "setup-const",
33
33
  "Empty": "setup-const",
34
34
  "CellRender": "setup-const",
35
+ "genEditTableStyle": "setup-maybe-ref",
35
36
  "props": "setup-reactive-const",
36
37
  "emit": "setup-const",
38
+ "prefixCls": "setup-ref",
39
+ "wrapSSR": "setup-maybe-ref",
40
+ "hashId": "setup-maybe-ref",
37
41
  "viewScrollRef": "setup-ref",
38
42
  "tableCenterRef": "setup-ref",
39
43
  "virtualRang": "setup-reactive-const",
@@ -51,7 +55,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
51
55
  "rowClick": "setup-const",
52
56
  "updateSelectedKeys": "setup-const"
53
57
  } */
54
- import { normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, createBlock as _createBlock, withModifiers as _withModifiers, normalizeClass as _normalizeClass, createVNode as _createVNode } from "vue";
58
+ import { unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, createBlock as _createBlock, withModifiers as _withModifiers, normalizeClass as _normalizeClass, createVNode as _createVNode } from "vue";
55
59
  const _hoisted_1 = { style: { position: 'relative' } };
56
60
  const _hoisted_2 = ["data-row-key", "onContextmenu", "onClick"];
57
61
  const _hoisted_3 = {
@@ -74,6 +78,7 @@ import { bodyProps } from "./props";
74
78
  import { ref, reactive, computed, watch, onMounted, onBeforeUnmount, nextTick } from 'vue';
75
79
  import Empty from '../Empty/Empty.js';
76
80
  import CellRender from './CellRender.js';
81
+ import genEditTableStyle from './style';
77
82
  const __sfc_main__ = Object.assign({
78
83
  name: 'JEditTableBody'
79
84
  }, {
@@ -95,6 +100,8 @@ const __sfc_main__ = Object.assign({
95
100
  setup(__props, { expose: __expose, emit: __emit }) {
96
101
  const props = __props;
97
102
  const emit = __emit;
103
+ const prefixCls = computed(() => 'jetlinks-edit-table');
104
+ const [wrapSSR, hashId] = genEditTableStyle(prefixCls);
98
105
  const viewScrollRef = ref();
99
106
  const tableCenterRef = ref();
100
107
  const virtualRang = reactive({
@@ -212,7 +219,7 @@ const __sfc_main__ = Object.assign({
212
219
  key: 0,
213
220
  ref_key: "viewScrollRef",
214
221
  ref: viewScrollRef,
215
- class: "jetlinks-edit-table-body-viewport",
222
+ class: _normalizeClass(['jetlinks-edit-table-body-viewport', _unref(hashId)]),
216
223
  style: _normalizeStyle({ ..._ctx.style, height: _ctx.height + 'px' }),
217
224
  onScroll: onScroll
218
225
  }, [
@@ -293,7 +300,7 @@ const __sfc_main__ = Object.assign({
293
300
  : _createCommentVNode("v-if", true)
294
301
  ], 4 /* STYLE */)
295
302
  ])
296
- ], 36 /* STYLE, NEED_HYDRATION */))
303
+ ], 38 /* CLASS, STYLE, NEED_HYDRATION */))
297
304
  : _renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
298
305
  _createElementVNode("div", _hoisted_6, [
299
306
  _createVNode(Empty)
@@ -41,7 +41,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
41
  "useSlots": "setup-const",
42
42
  "ref": "setup-const",
43
43
  "reactive": "setup-const",
44
- "defineOptions": "setup-const",
45
44
  "computed": "setup-const",
46
45
  "watch": "setup-const",
47
46
  "bodyProps": "setup-maybe-ref",
@@ -52,9 +51,13 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
52
51
  "Body": "setup-const",
53
52
  "Group": "setup-const",
54
53
  "useLocaleReceiver": "setup-maybe-ref",
54
+ "useEditTableStyle": "setup-maybe-ref",
55
55
  "emit": "setup-const",
56
56
  "contextLocale": "setup-maybe-ref",
57
57
  "props": "setup-reactive-const",
58
+ "prefixCls": "setup-ref",
59
+ "wrapSSR": "setup-maybe-ref",
60
+ "hashId": "setup-maybe-ref",
58
61
  "slots": "setup-maybe-ref",
59
62
  "myColumns": "setup-ref",
60
63
  "tableWrapper": "setup-ref",
@@ -109,7 +112,6 @@ const _hoisted_3 = {
109
112
  key: 0,
110
113
  class: "jetlinks-table-horizontal-scroll"
111
114
  };
112
- const _hoisted_4 = /*#__PURE__*/ _createElementVNode("div", { style: { "width": "15px", "height": "100%", "overflow-x": "hidden" } }, null, -1 /* HOISTED */);
113
115
  import { FULL_SCREEN, RIGHT_MENU, TABLE_DATA_SOURCE, TABLE_ERROR, TABLE_GROUP_ACTIVE, TABLE_GROUP_ERROR, TABLE_GROUP_OPTIONS, TABLE_H_SCROLL, TABLE_OPEN_GROUP, TABLE_TOOL, TABLE_WRAPPER } from './consts';
114
116
  import { handleColumnsWidth } from './utils';
115
117
  import { useGroup, useResizeObserver, useValidate } from './hooks';
@@ -123,6 +125,7 @@ import Header from './Header.js';
123
125
  import Body from './Body.js';
124
126
  import Group from './group.js';
125
127
  import { useLocaleReceiver } from "../LocaleReciver";
128
+ import useEditTableStyle from './style';
126
129
  const defaultGroupId = 'group_1';
127
130
  const __sfc_main__ = Object.assign({
128
131
  name: 'JEditTable'
@@ -155,6 +158,8 @@ const __sfc_main__ = Object.assign({
155
158
  const emit = __emit;
156
159
  const [contextLocale] = useLocaleReceiver('EditTable');
157
160
  const props = __props;
161
+ const prefixCls = computed(() => 'jetlinks-edit-table');
162
+ const [wrapSSR, hashId] = useEditTableStyle(prefixCls);
158
163
  const slots = useSlots();
159
164
  const myColumns = ref([]);
160
165
  const tableWrapper = ref();
@@ -456,7 +461,8 @@ const __sfc_main__ = Object.assign({
456
461
  return (_openBlock(), _createElementBlock("div", {
457
462
  class: _normalizeClass({
458
463
  'jetlinks-edit-table-wrapper': true,
459
- 'table-full-screen': _unref(isFullscreen)
464
+ 'table-full-screen': _unref(isFullscreen),
465
+ [_unref(hashId)]: true
460
466
  }),
461
467
  ref_key: "tableWrapper",
462
468
  ref: tableWrapper
@@ -515,18 +521,18 @@ const __sfc_main__ = Object.assign({
515
521
  class: "jetlinks-table-horizontal-scroll-bar",
516
522
  ref_key: "scrollBarRef",
517
523
  ref: scrollBarRef,
518
- style: _normalizeStyle({
524
+ style: {
519
525
  width: 'calc(100% - 15px)',
520
526
  height: '100%',
521
527
  overflowX: 'scroll'
522
- }),
528
+ },
523
529
  onScroll: onHorizontalScroll
524
530
  }, [
525
531
  _createElementVNode("div", {
526
532
  style: _normalizeStyle({ minWidth: horizontalScrollWidth.value + 'px', maxWidth: horizontalScrollWidth.value + 'px', height: '100%' })
527
533
  }, null, 4 /* STYLE */)
528
- ], 36 /* STYLE, NEED_HYDRATION */),
529
- _hoisted_4
534
+ ], 544 /* NEED_HYDRATION, NEED_PATCH */),
535
+ _cache[1] || (_cache[1] = _createElementVNode("div", { style: { "width": "15px", "height": "100%", "overflow-x": "hidden" } }, null, -1 /* CACHED */))
530
536
  ]))
531
537
  : _createCommentVNode("v-if", true),
532
538
  (_ctx.dataSource.length && _ctx.openGroup)