@jetlinks-web/components 3.0.1-rc → 3.0.1

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 (286) 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 +108 -28
  47. package/es/ProTable/Header.js +21 -11
  48. package/es/ProTable/Pagination.js +12 -4
  49. package/es/ProTable/ProTable.js +46 -34
  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 +1 -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/components.js +1 -5
  89. package/es/locale/en-US.js +3 -7
  90. package/es/locale/zh-CN.js +3 -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 -13
  95. package/lib/AutoComplete/AutoComplete.js +13 -9
  96. package/lib/BadgeStatus/Badge.js +1 -2
  97. package/lib/BadgeStatus/color.js +3 -3
  98. package/lib/CardSelect/CardSelect.js +23 -13
  99. package/lib/CardSelect/style/index.js +30 -1
  100. package/lib/CheckButton/CheckButton.js +12 -4
  101. package/lib/CheckButton/style/index.js +46 -1
  102. package/lib/DragModal/DragModal.js +14 -8
  103. package/lib/DragModal/style/index.js +69 -1
  104. package/lib/EditTable/Body.js +10 -3
  105. package/lib/EditTable/EditTable.js +13 -7
  106. package/lib/EditTable/FormItem.js +18 -19
  107. package/lib/EditTable/Header.js +16 -6
  108. package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
  109. package/lib/EditTable/components/Search/search.js +1 -2
  110. package/lib/EditTable/components/Search/sort.js +1 -3
  111. package/lib/EditTable/group.js +23 -18
  112. package/lib/EditTable/hooks/useValidate.js +1 -1
  113. package/lib/EditTable/style/body.js +60 -0
  114. package/lib/EditTable/style/form.js +31 -0
  115. package/lib/EditTable/style/group.js +32 -0
  116. package/lib/EditTable/style/header.js +65 -0
  117. package/lib/EditTable/style/index.js +47 -1
  118. package/lib/EditTable/style/menu.js +33 -0
  119. package/lib/EditTable/style/table.js +52 -0
  120. package/lib/EditTable/utils.js +31 -3
  121. package/lib/Ellipsis/Ellipsis.js +10 -2
  122. package/lib/Ellipsis/style/index.js +29 -1
  123. package/lib/FullPage/FullPage.js +1 -2
  124. package/lib/Icon/icon.js +1 -2
  125. package/lib/LocaleProvider/index.js +1 -2
  126. package/lib/PermissionButton/index.js +6 -7
  127. package/lib/ProLayout/Basic/BasicLayout.js +45 -42
  128. package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
  129. package/lib/ProLayout/Basic/Header.js +2 -6
  130. package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
  131. package/lib/ProLayout/PageContainer/index.js +19 -15
  132. package/lib/ProLayout/PageContainer/style.js +53 -0
  133. package/lib/ProLayout/SiderMenu/BaseMenu.js +19 -42
  134. package/lib/ProLayout/SiderMenu/SiderMenu.js +24 -37
  135. package/lib/ProLayout/SiderMenu/style.js +173 -0
  136. package/lib/ProLayout/TopHeader/index.js +14 -12
  137. package/lib/ProLayout/TopHeader/style.js +133 -0
  138. package/lib/ProLayout/style/index.js +12 -1
  139. package/lib/ProLayout/util.js +5 -5
  140. package/lib/ProTable/Alert.js +12 -4
  141. package/lib/ProTable/Content.js +108 -28
  142. package/lib/ProTable/Header.js +21 -11
  143. package/lib/ProTable/Pagination.js +12 -4
  144. package/lib/ProTable/ProTable.js +46 -34
  145. package/lib/ProTable/hooks/index.js +27 -0
  146. package/lib/ProTable/hooks/useTableInject.js +11 -0
  147. package/lib/ProTable/hooks/useTableSelection.js +102 -0
  148. package/lib/ProTable/setting.js +1 -1
  149. package/lib/ProTable/style/index.js +114 -1
  150. package/lib/RadioButton/RadioButton.js +10 -4
  151. package/lib/RadioButton/style/index.js +28 -1
  152. package/lib/Scrollbar/Scrollbar.js +10 -3
  153. package/lib/Scrollbar/Thumb.js +36 -25
  154. package/lib/Scrollbar/style/index.js +68 -1
  155. package/lib/Search/Advanced/History.js +23 -16
  156. package/lib/Search/Advanced/SaveHistory.js +1 -2
  157. package/lib/Search/Advanced/index.js +212 -292
  158. package/lib/Search/Item.js +175 -415
  159. package/lib/Search/Search.js +78 -172
  160. package/lib/Search/hooks/index.js +130 -1
  161. package/lib/Search/hooks/useRouteQuery.js +64 -0
  162. package/lib/Search/setting.js +133 -15
  163. package/lib/Search/style/index.js +9 -2
  164. package/lib/Search/style/item.js +35 -0
  165. package/lib/Search/style/search.js +140 -0
  166. package/lib/Search/util.js +116 -124
  167. package/lib/Skeleton/components/DashBoardCard.js +19 -12
  168. package/lib/Skeleton/components/DashBoardChart.js +48 -45
  169. package/lib/Skeleton/components/Detail.js +27 -21
  170. package/lib/Skeleton/components/Drawer.js +23 -14
  171. package/lib/Skeleton/components/Item.js +9 -1
  172. package/lib/Skeleton/components/List.js +0 -1
  173. package/lib/Skeleton/components/ListCard.js +20 -13
  174. package/lib/Skeleton/components/ListCardItem.js +12 -13
  175. package/lib/Skeleton/components/ListTable.js +19 -10
  176. package/lib/Skeleton/components/Page.js +0 -1
  177. package/lib/Skeleton/components/Tree.js +21 -14
  178. package/lib/Skeleton/skeleton.js +17 -8
  179. package/lib/Skeleton/style/index.js +137 -1
  180. package/lib/Title/style/index.js +34 -1
  181. package/lib/Title/title.js +13 -5
  182. package/lib/ValueItem/ValueItem.js +44 -39
  183. package/lib/components.js +1 -30
  184. package/lib/index.js +1 -2
  185. package/lib/locale/en-US.js +3 -7
  186. package/lib/locale/zh-CN.js +3 -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 -15
  192. package/package.json +170 -173
  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/FlameGraph/FlameGraph.js +0 -136
  215. package/es/FlameGraph/index.js +0 -5
  216. package/es/FlameGraph/style/index.css +0 -43
  217. package/es/FlameGraph/style/index.js +0 -1
  218. package/es/FlameGraph/style/index.less +0 -52
  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 -139
  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/Skeleton/style/Skeleton.less +0 -166
  234. package/es/Title/style/index.css +0 -27
  235. package/es/Title/style/index.less +0 -27
  236. package/es/style/index.css +0 -5375
  237. package/es/style/index.less +0 -14
  238. package/es/style/variable.css +0 -4
  239. package/es/style/variable.less +0 -4
  240. package/lib/AMap/Map.js +0 -133
  241. package/lib/AMap/index.js +0 -12
  242. package/lib/AMap/util.js +0 -62
  243. package/lib/CardSelect/style/index.css +0 -24
  244. package/lib/CardSelect/style/index.less +0 -26
  245. package/lib/CheckButton/style/index.css +0 -37
  246. package/lib/CheckButton/style/index.less +0 -40
  247. package/lib/DragModal/style/index.css +0 -82
  248. package/lib/DragModal/style/index.less +0 -97
  249. package/lib/Echarts/Echarts.js +0 -48
  250. package/lib/Echarts/index.js +0 -12
  251. package/lib/EditTable/style/body.less +0 -66
  252. package/lib/EditTable/style/form.less +0 -33
  253. package/lib/EditTable/style/group.less +0 -32
  254. package/lib/EditTable/style/header.less +0 -77
  255. package/lib/EditTable/style/index.css +0 -267
  256. package/lib/EditTable/style/index.less +0 -41
  257. package/lib/EditTable/style/menu.less +0 -25
  258. package/lib/EditTable/style/table.less +0 -47
  259. package/lib/Ellipsis/style/index.css +0 -17
  260. package/lib/Ellipsis/style/index.less +0 -20
  261. package/lib/FlameGraph/FlameGraph.js +0 -136
  262. package/lib/FlameGraph/index.js +0 -12
  263. package/lib/FlameGraph/style/index.css +0 -43
  264. package/lib/FlameGraph/style/index.js +0 -3
  265. package/lib/FlameGraph/style/index.less +0 -52
  266. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  267. package/lib/ProLayout/Basic/Header.less +0 -8
  268. package/lib/ProLayout/PageContainer/index.less +0 -103
  269. package/lib/ProLayout/SiderMenu/index.less +0 -231
  270. package/lib/ProLayout/TopHeader/index.less +0 -174
  271. package/lib/ProLayout/style/default.less +0 -4
  272. package/lib/ProLayout/style/style.less +0 -7
  273. package/lib/ProTable/style/ProTable.less +0 -139
  274. package/lib/RadioButton/style/index.css +0 -20
  275. package/lib/RadioButton/style/index.less +0 -19
  276. package/lib/Scrollbar/style/index.css +0 -65
  277. package/lib/Scrollbar/style/index.less +0 -83
  278. package/lib/Search/style/Item.less +0 -33
  279. package/lib/Search/style/Search.less +0 -179
  280. package/lib/Skeleton/style/Skeleton.less +0 -166
  281. package/lib/Title/style/index.css +0 -27
  282. package/lib/Title/style/index.less +0 -27
  283. package/lib/style/index.css +0 -5375
  284. package/lib/style/index.less +0 -14
  285. package/lib/style/variable.css +0 -4
  286. package/lib/style/variable.less +0 -4
@@ -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)
@@ -21,7 +21,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
21
21
  "computed": "setup-const",
22
22
  "reactive": "setup-const",
23
23
  "watch": "setup-const",
24
- "defineOptions": "setup-const",
25
24
  "provide": "setup-const",
26
25
  "get": "setup-maybe-ref",
27
26
  "isArray": "setup-maybe-ref",
@@ -29,8 +28,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
29
28
  "useInjectError": "setup-maybe-ref",
30
29
  "useInjectForm": "setup-maybe-ref",
31
30
  "TABLE_FORM_ITEM_ERROR": "setup-maybe-ref",
31
+ "genEditTableStyle": "setup-maybe-ref",
32
32
  "props": "setup-reactive-const",
33
33
  "emit": "setup-const",
34
+ "prefixCls": "setup-ref",
35
+ "wrapSSR": "setup-maybe-ref",
36
+ "hashId": "setup-maybe-ref",
34
37
  "context": "setup-maybe-ref",
35
38
  "globalErrorMessage": "setup-maybe-ref",
36
39
  "hideTimer": "setup-let",
@@ -47,18 +50,15 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
47
50
  "onFieldBlur": "setup-const",
48
51
  "onFieldChange": "setup-const"
49
52
  } */
50
- import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Fragment as _Fragment } from "vue";
53
+ import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, Fragment as _Fragment } from "vue";
51
54
  const _hoisted_1 = { style: { "color": "#1d2129" } };
52
- const _hoisted_2 = {
53
- key: 0,
54
- class: "jetlinks-table-form-error-target"
55
- };
56
- const _hoisted_3 = ["id"];
55
+ const _hoisted_2 = ["id"];
57
56
  import { onBeforeUnmount, computed, reactive, watch, provide } from "vue";
58
57
  import { get, isArray } from 'lodash-es';
59
58
  import { useProvideFormItemContext } from 'ant-design-vue/es/form/FormItemContext';
60
59
  import { useInjectError, useInjectForm } from "./hooks";
61
60
  import { TABLE_FORM_ITEM_ERROR } from "./consts";
61
+ import genEditTableStyle from './style';
62
62
  const __sfc_main__ = Object.assign({
63
63
  name: 'JEditTableFormItem'
64
64
  }, {
@@ -76,6 +76,8 @@ const __sfc_main__ = Object.assign({
76
76
  setup(__props, { emit: __emit }) {
77
77
  const props = __props;
78
78
  const emit = __emit;
79
+ const prefixCls = computed(() => 'jetlinks-edit-table');
80
+ const [wrapSSR, hashId] = genEditTableStyle(prefixCls);
79
81
  const context = useInjectForm();
80
82
  const globalErrorMessage = useInjectError();
81
83
  let hideTimer;
@@ -89,18 +91,12 @@ const __sfc_main__ = Object.assign({
89
91
  });
90
92
  const filedId = computed(() => {
91
93
  const names = isArray(props.name) ? props.name : [props.name];
92
- return names.join('_');
94
+ const [index, ...extra] = names;
95
+ return `${index}-${extra.join('.')}`;
93
96
  });
94
97
  const filedName = computed(() => {
95
98
  const names = isArray(props.name) ? props.name : [props.name];
96
- const _rules = context.rules.value;
97
- let tempKey = undefined;
98
- for (const key of names) {
99
- if (key in _rules) {
100
- tempKey = key;
101
- }
102
- }
103
- return tempKey;
99
+ return [...names].pop();
104
100
  });
105
101
  const filedValue = computed(() => {
106
102
  return get(context.dataSource.value, props.name);
@@ -194,7 +190,10 @@ const __sfc_main__ = Object.assign({
194
190
  ]),
195
191
  default: _withCtx(() => [
196
192
  (errorMap.visible)
197
- ? (_openBlock(), _createElementBlock("div", _hoisted_2))
193
+ ? (_openBlock(), _createElementBlock("div", {
194
+ key: 0,
195
+ class: _normalizeClass(['jetlinks-table-form-error-target', _unref(hashId), 'hashId'])
196
+ }, null, 2 /* CLASS */))
198
197
  : _createCommentVNode("v-if", true)
199
198
  ]),
200
199
  _: 1 /* STABLE */
@@ -202,10 +201,10 @@ const __sfc_main__ = Object.assign({
202
201
  _createElementVNode("div", {
203
202
  id: eventKey.value,
204
203
  style: { "position": "relative" },
205
- class: _normalizeClass({ 'jetlinks-edit-table-form-has-error': errorMap.message })
204
+ class: _normalizeClass({ 'jetlinks-edit-table-form-has-error': errorMap.message, [_unref(hashId)]: true })
206
205
  }, [
207
206
  _renderSlot(_ctx.$slots, "default")
208
- ], 10 /* CLASS, PROPS */, _hoisted_3)
207
+ ], 10 /* CLASS, PROPS */, _hoisted_2)
209
208
  ], 64 /* STABLE_FRAGMENT */));
210
209
  };
211
210
  }
@@ -22,18 +22,22 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
22
22
  "SearchModal": "setup-maybe-ref",
23
23
  "Sort": "setup-maybe-ref",
24
24
  "reactive": "setup-const",
25
- "defineOptions": "setup-const",
25
+ "computed": "setup-const",
26
26
  "useHScroll": "setup-maybe-ref",
27
27
  "useTableTool": "setup-maybe-ref",
28
28
  "HeaderItemRender": "setup-const",
29
+ "useEditTableStyle": "setup-maybe-ref",
29
30
  "props": "setup-reactive-const",
31
+ "prefixCls": "setup-ref",
32
+ "wrapSSR": "setup-maybe-ref",
33
+ "hashId": "setup-maybe-ref",
30
34
  "tableTool": "setup-maybe-ref",
31
35
  "hScroll": "setup-maybe-ref",
32
36
  "searchData": "setup-reactive-const",
33
37
  "showFilter": "setup-const",
34
38
  "sortClick": "setup-const"
35
39
  } */
36
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, unref as _unref, mergeProps as _mergeProps, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
40
+ import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, mergeProps as _mergeProps, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
37
41
  const _hoisted_1 = ["id"];
38
42
  const _hoisted_2 = { class: "table-header-cell-title" };
39
43
  const _hoisted_3 = { class: "cell-title-box" };
@@ -47,9 +51,10 @@ const _hoisted_6 = {
47
51
  class: "table-header-cell-trigger"
48
52
  };
49
53
  import { SearchModal, Sort } from './components/Search';
50
- import { reactive, } from 'vue';
54
+ import { reactive, computed } from 'vue';
51
55
  import { useHScroll, useTableTool } from "./hooks";
52
56
  import HeaderItemRender from './HeaderRender.js';
57
+ import useEditTableStyle from './style';
53
58
  const __sfc_main__ = Object.assign({
54
59
  name: 'JEditTableHeader'
55
60
  }, {
@@ -73,6 +78,8 @@ const __sfc_main__ = Object.assign({
73
78
  },
74
79
  setup(__props) {
75
80
  const props = __props;
81
+ const prefixCls = computed(() => 'jetlinks-edit-table');
82
+ const [wrapSSR, hashId] = useEditTableStyle(prefixCls);
76
83
  const tableTool = useTableTool();
77
84
  const hScroll = useHScroll();
78
85
  const searchData = reactive({
@@ -89,7 +96,7 @@ const __sfc_main__ = Object.assign({
89
96
  return (_ctx, _cache) => {
90
97
  const _component_AIcon = _resolveComponent("AIcon");
91
98
  return (_openBlock(), _createElementBlock("div", {
92
- class: "jetlinks-edit-table-header-container",
99
+ class: _normalizeClass(['jetlinks-edit-table-header-container', _unref(hashId)]),
93
100
  style: _normalizeStyle(__props.style)
94
101
  }, [
95
102
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.columns, (item, index) => {
@@ -126,7 +133,10 @@ const __sfc_main__ = Object.assign({
126
133
  }, null, 8 /* PROPS */, ["onClick"]))
127
134
  : _createCommentVNode("v-if", true),
128
135
  (item.sort)
129
- ? (_openBlock(), _createBlock(_unref(Sort), _mergeProps({ key: 1 }, item.sort, {
136
+ ? (_openBlock(), _createBlock(_unref(Sort), _mergeProps({
137
+ key: 1,
138
+ ref_for: true
139
+ }, item.sort, {
130
140
  key: item.dataIndex,
131
141
  active: _unref(tableTool).sortData.dataIndex === item.dataIndex,
132
142
  selectedRowKeys: _unref(tableTool).sortData.dataIndex === item.dataIndex ? _unref(tableTool).sortData.orderKeys : [],
@@ -147,7 +157,7 @@ const __sfc_main__ = Object.assign({
147
157
  onClose: _cache[0] || (_cache[0] = $event => (searchData.visible = false))
148
158
  }, null, 8 /* PROPS */, ["searchKey", "columns"]))
149
159
  : _createCommentVNode("v-if", true)
150
- ], 4 /* STYLE */));
160
+ ], 6 /* CLASS, STYLE */));
151
161
  };
152
162
  }
153
163
  });