@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
@@ -19,7 +19,6 @@ 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",
23
22
  "watch": "setup-const",
24
23
  "props": "setup-reactive-const",
25
24
  "emit": "setup-const",
@@ -29,8 +28,8 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
29
28
  } */
30
29
  import { defineComponent as _defineComponent } from 'vue';
31
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";
32
- import { AutoComplete } from 'ant-design-vue/es/';
33
- import { autoCompleteProps } from 'ant-design-vue/es/auto-complete';
31
+ import { AutoComplete } from 'ant-design-vue';
32
+ import { autoCompleteProps } from 'ant-design-vue/lib/auto-complete';
34
33
  import { ref, watch } from 'vue';
35
34
  const __sfc_main__ = _defineComponent({
36
35
  ...{
@@ -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,9 +10,9 @@
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
- import { Badge } from 'ant-design-vue/es/';
15
+ import { Badge } from 'ant-design-vue';
17
16
  const __sfc_main__ = _defineComponent({
18
17
  ...{
19
18
  name: 'JBadgeStatus'
@@ -10,24 +10,22 @@
10
10
  "computed": "setup-const",
11
11
  "ref": "setup-const",
12
12
  "watch": "setup-const",
13
- "defineOptions": "setup-const",
14
- "Form": "setup-maybe-ref",
13
+ "genCompoentStyle": "setup-maybe-ref",
15
14
  "props": "setup-reactive-const",
16
15
  "emit": "setup-const",
17
16
  "selectKeys": "setup-ref",
18
- "formItemContext": "setup-maybe-ref",
17
+ "prefixCls": "setup-ref",
18
+ "wrapSSR": "setup-maybe-ref",
19
+ "hashId": "setup-maybe-ref",
19
20
  "CardSelectStyle": "setup-ref",
20
21
  "isMultiple": "setup-ref",
21
22
  "handleSelect": "setup-const"
22
23
  } */
23
- 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";
24
25
  const _hoisted_1 = ["onClick"];
25
- const _hoisted_2 = { class: "j-card-select-item-content" };
26
- const _hoisted_3 = { class: "j-card-select-title" };
27
- const _hoisted_4 = { class: "j-card-select-describe" };
28
26
  import { has } from 'lodash-es';
29
- import { computed, ref, watch, } from 'vue';
30
- import { Form } from 'ant-design-vue/es/';
27
+ import { computed, ref, watch } from 'vue';
28
+ import genCompoentStyle from './style';
31
29
  const __sfc_main__ = Object.assign({
32
30
  name: 'JCardSelect'
33
31
  }, {
@@ -66,7 +64,8 @@ const __sfc_main__ = Object.assign({
66
64
  const props = __props;
67
65
  const emit = __emit;
68
66
  const selectKeys = ref([]);
69
- const formItemContext = Form.useInjectFormItemContext();
67
+ const prefixCls = computed(() => 'j-card-select');
68
+ const [wrapSSR, hashId] = genCompoentStyle(prefixCls);
70
69
  const CardSelectStyle = computed(() => {
71
70
  const _column = props.column > 0 && props.layout === 'horizontal' ? props.column : 1;
72
71
  return {
@@ -101,14 +100,13 @@ const __sfc_main__ = Object.assign({
101
100
  emit('change', key, node);
102
101
  emit('update:value', key);
103
102
  }
104
- formItemContext.onFieldChange();
105
103
  };
106
104
  watch(() => props.value, () => {
107
105
  selectKeys.value = isMultiple.value ? (props.value || []) : [props.value];
108
106
  }, { immediate: true });
109
107
  return (_ctx, _cache) => {
110
108
  return (_openBlock(), _createElementBlock("div", {
111
- class: "j-card-select",
109
+ class: _normalizeClass(['j-card-select', _unref(hashId)]),
112
110
  style: _normalizeStyle(CardSelectStyle.value)
113
111
  }, [
114
112
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
@@ -116,19 +114,26 @@ const __sfc_main__ = Object.assign({
116
114
  class: _normalizeClass({
117
115
  'j-card-select-item': true,
118
116
  'disabled': __props.disabled || item.disabled,
119
- 'active': selectKeys.value.includes(item.value)
117
+ 'active': selectKeys.value.includes(item.value),
118
+ [_unref(hashId)]: true
120
119
  }),
121
120
  onClick: () => handleSelect(item.value, item)
122
121
  }, [
123
122
  _renderSlot(_ctx.$slots, "itemRender", { node: item }, () => [
124
- _createElementVNode("div", _hoisted_2, [
125
- _createElementVNode("div", _hoisted_3, _toDisplayString(item.label), 1 /* TEXT */),
126
- _createElementVNode("div", _hoisted_4, _toDisplayString(item.describe), 1 /* TEXT */)
127
- ])
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 */)
128
133
  ])
129
134
  ], 10 /* CLASS, PROPS */, _hoisted_1));
130
135
  }), 256 /* UNKEYED_FRAGMENT */))
131
- ], 4 /* STYLE */));
136
+ ], 6 /* CLASS, STYLE */));
132
137
  };
133
138
  }
134
139
  });
@@ -1 +1,25 @@
1
- import './index.less';
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import genCompoentStyle from '../../style/styleRegister';
3
+ var genCardSelectStyle = function genCardSelectStyle(config) {
4
+ var componentCls = config.componentCls,
5
+ token = config.token;
6
+ return _defineProperty({}, componentCls, _defineProperty({
7
+ display: 'grid',
8
+ gap: '12px'
9
+ }, "".concat(componentCls, "-item"), _defineProperty({
10
+ padding: '12px',
11
+ border: '1px solid #e6e6e6',
12
+ borderRadius: '@border-radius-base',
13
+ cursor: 'pointer',
14
+ '&.active': {
15
+ borderColor: token.colorPrimary
16
+ },
17
+ '&.disabled': {
18
+ cursor: 'not-allowed',
19
+ opacity: 0.7
20
+ }
21
+ }, "".concat(componentCls, "-describe"), {
22
+ color: token.textColorSubtitle
23
+ })));
24
+ };
25
+ export default genCompoentStyle([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 +1,41 @@
1
- import './index.less';
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import genComponentStyle from '../../style/styleRegister';
3
+ var genCheckButtonStyle = function genCheckButtonStyle(config) {
4
+ var componentCls = config.componentCls,
5
+ token = config.token;
6
+ return _defineProperty({}, componentCls, _defineProperty({
7
+ display: 'flex',
8
+ gap: '16px',
9
+ width: '100%'
10
+ }, "".concat(componentCls, "-item"), {
11
+ flex: 1,
12
+ minWidth: 0,
13
+ padding: '8px',
14
+ borderRadius: token.borderRadius,
15
+ backgroundColor: '#f2f3f5',
16
+ transition: 'all 0.3s',
17
+ color: '#333',
18
+ textAlign: 'center',
19
+ cursor: 'pointer',
20
+ '&:hover': {
21
+ backgroundColor: token.colorPrimary,
22
+ opacity: 0.85,
23
+ color: '#fff'
24
+ },
25
+ '&.selected': {
26
+ backgroundColor: token.colorPrimary,
27
+ color: '#fff'
28
+ },
29
+ '&.disabled': {
30
+ backgroundColor: '#f5f5f5',
31
+ color: '#ccc',
32
+ cursor: 'not-allowed',
33
+ '&:hover': {
34
+ backgroundColor: '#f5f5f5',
35
+ color: '#ccc',
36
+ opacity: 1
37
+ }
38
+ }
39
+ }));
40
+ };
41
+ export default genComponentStyle([genCheckButtonStyle]);
@@ -3,7 +3,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  import { defineComponent, provide, reactive, h } from 'vue';
4
4
  import { configProps } from './context';
5
5
  import { ComponentsEnum, MAPConfig, PermissionButtonConfig, SearchConfig, FullPageConfig, TableConfig } from '../utils/constants';
6
- import { ConfigProvider } from 'ant-design-vue/es/';
6
+ import { ConfigProvider } from 'ant-design-vue';
7
7
  import LocaleProvider from '../LocaleProvider/index.js';
8
8
  import { omit } from 'lodash-es';
9
9
  import Empty from '../Empty';
@@ -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
- import { Button } from 'ant-design-vue/es/';
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 +1,64 @@
1
- import './index.less';
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import genCompoentStyle from '../../style/styleRegister';
3
+ var genDragModalStyle = function genDragModalStyle(config) {
4
+ var componentCls = config.componentCls,
5
+ token = config.token;
6
+ return _defineProperty({}, componentCls, _defineProperty(_defineProperty({
7
+ position: 'fixed',
8
+ zIndex: 1000
9
+ }, "".concat(componentCls, "-sprite"), _defineProperty(_defineProperty({
10
+ position: 'absolute',
11
+ width: '100%',
12
+ height: '100%',
13
+ display: 'flex',
14
+ flexDirection: 'column',
15
+ overflow: 'hidden',
16
+ zIndex: 23456765435,
17
+ backgroundColor: '#ffffff',
18
+ borderRadius: 4,
19
+ border: '1px solid #91CAFF',
20
+ boxShadow: '0 3px 8px 0 rgba(22, 119, 255, 0.24)',
21
+ header: {
22
+ padding: '5px 15px',
23
+ fontSize: 18,
24
+ fontWeight: 700,
25
+ color: '#333',
26
+ display: 'flex',
27
+ justifyContent: 'space-between',
28
+ alignItems: 'center',
29
+ borderBottom: '1px solid #f0f0f0',
30
+ cursor: 'move'
31
+ }
32
+ }, "".concat(componentCls, "-body"), {
33
+ flex: 1,
34
+ minHeight: 0,
35
+ overflowY: 'auto',
36
+ padding: '24px 20px'
37
+ }), "".concat(componentCls, "-footer"), {
38
+ borderTop: '1px solid #f0f0f0',
39
+ padding: '5px 15px'
40
+ })), "".concat(componentCls, "-range"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
41
+ position: 'absolute',
42
+ width: '16px',
43
+ height: '16px',
44
+ borderRadius: '100%',
45
+ zIndex: 23456765436
46
+ }, 'drag-bottom-right', _defineProperty({
47
+ bottom: '-6px',
48
+ right: '-6px'
49
+ }, '&:hover', {
50
+ cursor: 'nwse-resize'
51
+ })), 'drag-bottom-left', _defineProperty({
52
+ bottom: '-6px',
53
+ left: '-6px'
54
+ }, '&:hover', {
55
+ cursor: 'nesw-resize'
56
+ })), 'drag-top-right', {
57
+ top: '-6px',
58
+ right: '-6px'
59
+ }), 'drag-top-left', {
60
+ top: '-6px',
61
+ left: '-6px'
62
+ })));
63
+ };
64
+ export default genCompoentStyle([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,11 +112,10 @@ 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';
116
- import { tableProps } from 'ant-design-vue/es/table';
118
+ import { tableProps } from 'ant-design-vue/lib/table';
117
119
  import { useFormContext } from './context';
118
120
  import { useFullscreen } from '@vueuse/core';
119
121
  import { provide, useSlots, ref, reactive, computed, watch } from 'vue';
@@ -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 /* HOISTED */))
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;
@@ -188,7 +190,10 @@ const __sfc_main__ = Object.assign({
188
190
  ]),
189
191
  default: _withCtx(() => [
190
192
  (errorMap.visible)
191
- ? (_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 */))
192
197
  : _createCommentVNode("v-if", true)
193
198
  ]),
194
199
  _: 1 /* STABLE */
@@ -196,10 +201,10 @@ const __sfc_main__ = Object.assign({
196
201
  _createElementVNode("div", {
197
202
  id: eventKey.value,
198
203
  style: { "position": "relative" },
199
- class: _normalizeClass({ 'jetlinks-edit-table-form-has-error': errorMap.message })
204
+ class: _normalizeClass({ 'jetlinks-edit-table-form-has-error': errorMap.message, [_unref(hashId)]: true })
200
205
  }, [
201
206
  _renderSlot(_ctx.$slots, "default")
202
- ], 10 /* CLASS, PROPS */, _hoisted_3)
207
+ ], 10 /* CLASS, PROPS */, _hoisted_2)
203
208
  ], 64 /* STABLE_FRAGMENT */));
204
209
  };
205
210
  }