@jetlinks-web/components 3.0.0-rc → 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 (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 +3 -4
  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 +13 -37
  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 +42 -26
  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 +213 -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 +64 -0
  73. package/es/Skeleton/components/DashBoardChart.js +96 -0
  74. package/es/Skeleton/components/Detail.js +110 -0
  75. package/es/Skeleton/components/Drawer.js +91 -0
  76. package/es/Skeleton/components/Item.js +68 -0
  77. package/es/Skeleton/components/List.js +45 -0
  78. package/es/Skeleton/components/ListCard.js +63 -0
  79. package/es/Skeleton/components/ListCardItem.js +86 -0
  80. package/es/Skeleton/components/ListTable.js +76 -0
  81. package/es/Skeleton/components/Page.js +62 -0
  82. package/es/Skeleton/components/Search.js +54 -0
  83. package/es/Skeleton/components/Tree.js +72 -0
  84. package/es/Skeleton/index.js +15 -0
  85. package/es/Skeleton/skeleton.js +58 -0
  86. package/es/Skeleton/style/index.js +132 -0
  87. package/es/Title/style/index.js +29 -1
  88. package/es/Title/title.js +13 -5
  89. package/es/ValueItem/ValueItem.js +44 -39
  90. package/es/components.js +1 -4
  91. package/es/locale/en-US.js +3 -7
  92. package/es/locale/zh-CN.js +3 -7
  93. package/es/style/index.js +0 -3
  94. package/es/style/styleRegister.js +21 -0
  95. package/es/style/variable.js +4 -0
  96. package/es/style.js +0 -12
  97. package/lib/AutoComplete/AutoComplete.js +13 -9
  98. package/lib/BadgeStatus/Badge.js +1 -2
  99. package/lib/BadgeStatus/color.js +3 -3
  100. package/lib/CardSelect/CardSelect.js +23 -13
  101. package/lib/CardSelect/style/index.js +30 -1
  102. package/lib/CheckButton/CheckButton.js +12 -4
  103. package/lib/CheckButton/style/index.js +46 -1
  104. package/lib/DragModal/DragModal.js +14 -8
  105. package/lib/DragModal/style/index.js +69 -1
  106. package/lib/EditTable/Body.js +10 -3
  107. package/lib/EditTable/EditTable.js +13 -7
  108. package/lib/EditTable/FormItem.js +18 -19
  109. package/lib/EditTable/Header.js +16 -6
  110. package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
  111. package/lib/EditTable/components/Search/search.js +1 -2
  112. package/lib/EditTable/components/Search/sort.js +1 -3
  113. package/lib/EditTable/group.js +23 -18
  114. package/lib/EditTable/hooks/useValidate.js +1 -1
  115. package/lib/EditTable/style/body.js +60 -0
  116. package/lib/EditTable/style/form.js +31 -0
  117. package/lib/EditTable/style/group.js +32 -0
  118. package/lib/EditTable/style/header.js +65 -0
  119. package/lib/EditTable/style/index.js +47 -1
  120. package/lib/EditTable/style/menu.js +33 -0
  121. package/lib/EditTable/style/table.js +52 -0
  122. package/lib/EditTable/utils.js +31 -3
  123. package/lib/Ellipsis/Ellipsis.js +10 -2
  124. package/lib/Ellipsis/style/index.js +29 -1
  125. package/lib/FullPage/FullPage.js +1 -2
  126. package/lib/LocaleProvider/index.js +1 -2
  127. package/lib/PermissionButton/index.js +3 -4
  128. package/lib/ProLayout/Basic/BasicLayout.js +44 -40
  129. package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
  130. package/lib/ProLayout/Basic/Header.js +2 -6
  131. package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
  132. package/lib/ProLayout/PageContainer/index.js +19 -15
  133. package/lib/ProLayout/PageContainer/style.js +53 -0
  134. package/lib/ProLayout/SiderMenu/BaseMenu.js +14 -37
  135. package/lib/ProLayout/SiderMenu/SiderMenu.js +23 -35
  136. package/lib/ProLayout/SiderMenu/style.js +173 -0
  137. package/lib/ProLayout/TopHeader/index.js +14 -12
  138. package/lib/ProLayout/TopHeader/style.js +133 -0
  139. package/lib/ProLayout/style/index.js +12 -1
  140. package/lib/ProLayout/util.js +5 -5
  141. package/lib/ProTable/Alert.js +12 -4
  142. package/lib/ProTable/Content.js +108 -28
  143. package/lib/ProTable/Header.js +21 -11
  144. package/lib/ProTable/Pagination.js +12 -4
  145. package/lib/ProTable/ProTable.js +42 -26
  146. package/lib/ProTable/hooks/index.js +27 -0
  147. package/lib/ProTable/hooks/useTableInject.js +11 -0
  148. package/lib/ProTable/hooks/useTableSelection.js +102 -0
  149. package/lib/ProTable/setting.js +1 -1
  150. package/lib/ProTable/style/index.js +114 -1
  151. package/lib/RadioButton/RadioButton.js +10 -4
  152. package/lib/RadioButton/style/index.js +28 -1
  153. package/lib/Scrollbar/Scrollbar.js +10 -3
  154. package/lib/Scrollbar/Thumb.js +36 -25
  155. package/lib/Scrollbar/style/index.js +68 -1
  156. package/lib/Search/Advanced/History.js +23 -16
  157. package/lib/Search/Advanced/SaveHistory.js +1 -2
  158. package/lib/Search/Advanced/index.js +213 -292
  159. package/lib/Search/Item.js +175 -415
  160. package/lib/Search/Search.js +78 -172
  161. package/lib/Search/hooks/index.js +130 -1
  162. package/lib/Search/hooks/useRouteQuery.js +64 -0
  163. package/lib/Search/setting.js +133 -15
  164. package/lib/Search/style/index.js +9 -2
  165. package/lib/Search/style/item.js +35 -0
  166. package/lib/Search/style/search.js +140 -0
  167. package/lib/Search/util.js +116 -124
  168. package/lib/Skeleton/components/DashBoardCard.js +64 -0
  169. package/lib/Skeleton/components/DashBoardChart.js +96 -0
  170. package/lib/Skeleton/components/Detail.js +110 -0
  171. package/lib/Skeleton/components/Drawer.js +91 -0
  172. package/lib/Skeleton/components/Item.js +68 -0
  173. package/lib/Skeleton/components/List.js +45 -0
  174. package/lib/Skeleton/components/ListCard.js +63 -0
  175. package/lib/Skeleton/components/ListCardItem.js +86 -0
  176. package/lib/Skeleton/components/ListTable.js +76 -0
  177. package/lib/Skeleton/components/Page.js +62 -0
  178. package/lib/Skeleton/components/Search.js +54 -0
  179. package/lib/Skeleton/components/Tree.js +72 -0
  180. package/lib/Skeleton/index.js +75 -0
  181. package/lib/Skeleton/skeleton.js +58 -0
  182. package/lib/Skeleton/style/index.js +139 -0
  183. package/lib/Title/style/index.js +34 -1
  184. package/lib/Title/title.js +13 -5
  185. package/lib/ValueItem/ValueItem.js +44 -39
  186. package/lib/components.js +0 -21
  187. package/lib/locale/en-US.js +3 -7
  188. package/lib/locale/zh-CN.js +3 -7
  189. package/lib/style/components.less +0 -1
  190. package/lib/style/index.js +1 -4
  191. package/lib/style/styleRegister.js +28 -0
  192. package/lib/style/variable.js +10 -0
  193. package/lib/style.js +1 -14
  194. package/package.json +10 -13
  195. package/es/AMap/Map.js +0 -133
  196. package/es/AMap/index.js +0 -5
  197. package/es/AMap/util.js +0 -56
  198. package/es/CardSelect/style/index.css +0 -24
  199. package/es/CardSelect/style/index.less +0 -26
  200. package/es/CheckButton/style/index.css +0 -37
  201. package/es/CheckButton/style/index.less +0 -40
  202. package/es/DragModal/style/index.css +0 -82
  203. package/es/DragModal/style/index.less +0 -97
  204. package/es/Echarts/Echarts.js +0 -48
  205. package/es/Echarts/index.js +0 -5
  206. package/es/EditTable/style/body.less +0 -66
  207. package/es/EditTable/style/form.less +0 -33
  208. package/es/EditTable/style/group.less +0 -32
  209. package/es/EditTable/style/header.less +0 -77
  210. package/es/EditTable/style/index.css +0 -267
  211. package/es/EditTable/style/index.less +0 -41
  212. package/es/EditTable/style/menu.less +0 -25
  213. package/es/EditTable/style/table.less +0 -47
  214. package/es/Ellipsis/style/index.css +0 -17
  215. package/es/Ellipsis/style/index.less +0 -20
  216. package/es/FlameGraph/FlameGraph.js +0 -136
  217. package/es/FlameGraph/index.js +0 -5
  218. package/es/FlameGraph/style/index.css +0 -43
  219. package/es/FlameGraph/style/index.js +0 -1
  220. package/es/FlameGraph/style/index.less +0 -52
  221. package/es/ProLayout/Basic/BasicLayout.less +0 -66
  222. package/es/ProLayout/Basic/Header.less +0 -8
  223. package/es/ProLayout/PageContainer/index.less +0 -103
  224. package/es/ProLayout/SiderMenu/index.less +0 -231
  225. package/es/ProLayout/TopHeader/index.less +0 -174
  226. package/es/ProLayout/style/default.less +0 -4
  227. package/es/ProLayout/style/style.less +0 -7
  228. package/es/ProTable/style/ProTable.less +0 -139
  229. package/es/RadioButton/style/index.css +0 -20
  230. package/es/RadioButton/style/index.less +0 -19
  231. package/es/Scrollbar/style/index.css +0 -65
  232. package/es/Scrollbar/style/index.less +0 -83
  233. package/es/Search/style/Item.less +0 -33
  234. package/es/Search/style/Search.less +0 -179
  235. package/es/Title/style/index.css +0 -23
  236. package/es/Title/style/index.less +0 -25
  237. package/es/style/index.css +0 -5234
  238. package/es/style/index.less +0 -13
  239. package/es/style/variable.css +0 -4
  240. package/es/style/variable.less +0 -4
  241. package/lib/AMap/Map.js +0 -133
  242. package/lib/AMap/index.js +0 -12
  243. package/lib/AMap/util.js +0 -62
  244. package/lib/CardSelect/style/index.css +0 -24
  245. package/lib/CardSelect/style/index.less +0 -26
  246. package/lib/CheckButton/style/index.css +0 -37
  247. package/lib/CheckButton/style/index.less +0 -40
  248. package/lib/DragModal/style/index.css +0 -82
  249. package/lib/DragModal/style/index.less +0 -97
  250. package/lib/Echarts/Echarts.js +0 -48
  251. package/lib/Echarts/index.js +0 -12
  252. package/lib/EditTable/style/body.less +0 -66
  253. package/lib/EditTable/style/form.less +0 -33
  254. package/lib/EditTable/style/group.less +0 -32
  255. package/lib/EditTable/style/header.less +0 -77
  256. package/lib/EditTable/style/index.css +0 -267
  257. package/lib/EditTable/style/index.less +0 -41
  258. package/lib/EditTable/style/menu.less +0 -25
  259. package/lib/EditTable/style/table.less +0 -47
  260. package/lib/Ellipsis/style/index.css +0 -17
  261. package/lib/Ellipsis/style/index.less +0 -20
  262. package/lib/FlameGraph/FlameGraph.js +0 -136
  263. package/lib/FlameGraph/index.js +0 -12
  264. package/lib/FlameGraph/style/index.css +0 -43
  265. package/lib/FlameGraph/style/index.js +0 -3
  266. package/lib/FlameGraph/style/index.less +0 -52
  267. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  268. package/lib/ProLayout/Basic/Header.less +0 -8
  269. package/lib/ProLayout/PageContainer/index.less +0 -103
  270. package/lib/ProLayout/SiderMenu/index.less +0 -231
  271. package/lib/ProLayout/TopHeader/index.less +0 -174
  272. package/lib/ProLayout/style/default.less +0 -4
  273. package/lib/ProLayout/style/style.less +0 -7
  274. package/lib/ProTable/style/ProTable.less +0 -139
  275. package/lib/RadioButton/style/index.css +0 -20
  276. package/lib/RadioButton/style/index.less +0 -19
  277. package/lib/Scrollbar/style/index.css +0 -65
  278. package/lib/Scrollbar/style/index.less +0 -83
  279. package/lib/Search/style/Item.less +0 -33
  280. package/lib/Search/style/Search.less +0 -179
  281. package/lib/Title/style/index.css +0 -23
  282. package/lib/Title/style/index.less +0 -25
  283. package/lib/style/index.css +0 -5234
  284. package/lib/style/index.less +0 -13
  285. package/lib/style/variable.css +0 -4
  286. package/lib/style/variable.less +0 -4
@@ -26,12 +26,16 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
26
26
  "BAR_MAP": "setup-maybe-ref",
27
27
  "renderThumbStyle": "setup-maybe-ref",
28
28
  "thumbProps": "setup-maybe-ref",
29
+ "useScrollbarStyle": "setup-maybe-ref",
29
30
  "props": "setup-reactive-const",
30
31
  "scrollbar": "setup-maybe-ref",
31
32
  "instance": "setup-ref",
32
33
  "thumb": "setup-ref",
33
34
  "thumbState": "setup-ref",
34
35
  "visible": "setup-ref",
36
+ "prefixCls": "setup-ref",
37
+ "wrapSSR": "setup-maybe-ref",
38
+ "hashId": "setup-maybe-ref",
35
39
  "cursorDown": "setup-let",
36
40
  "cursorLeave": "setup-let",
37
41
  "originalOnSelectStart": "setup-let",
@@ -48,13 +52,14 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
48
52
  "restoreOnselectstart": "setup-const"
49
53
  } */
50
54
  import { defineComponent as _defineComponent } from 'vue';
51
- import { normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, vShow as _vShow, normalizeClass as _normalizeClass, withDirectives as _withDirectives, Transition as _Transition, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
55
+ import { unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, vShow as _vShow, normalizeClass as _normalizeClass, withDirectives as _withDirectives, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
52
56
  import { computed, inject, onBeforeUnmount, ref, toRef } from 'vue';
53
57
  import { useEventListener } from '@vueuse/core';
54
58
  import { isClient } from '@jetlinks-web/utils';
55
59
  import { scrollbarContextKey } from './constants';
56
60
  import { BAR_MAP, renderThumbStyle } from './util';
57
61
  import { thumbProps } from './thumbProps';
62
+ import useScrollbarStyle from './style';
58
63
  const __sfc_main__ = _defineComponent({
59
64
  props: thumbProps,
60
65
  setup(__props) {
@@ -66,6 +71,8 @@ const __sfc_main__ = _defineComponent({
66
71
  const thumb = ref();
67
72
  const thumbState = ref({});
68
73
  const visible = ref(false);
74
+ const prefixCls = computed(() => 'j-scrollbar');
75
+ const [wrapSSR, hashId] = useScrollbarStyle(prefixCls);
69
76
  let cursorDown = false;
70
77
  let cursorLeave = false;
71
78
  let originalOnSelectStart = isClient ? document.onselectstart : null;
@@ -159,30 +166,34 @@ const __sfc_main__ = _defineComponent({
159
166
  useEventListener(toRef(scrollbar, 'scrollbarElement'), 'mousemove', mouseMoveScrollbarHandler);
160
167
  useEventListener(toRef(scrollbar, 'scrollbarElement'), 'mouseleave', mouseLeaveScrollbarHandler);
161
168
  return (_ctx, _cache) => {
162
- return (_openBlock(), _createBlock(_Transition, {
163
- name: "j-scrollbar-fade",
164
- persisted: ""
165
- }, {
166
- default: _withCtx(() => [
167
- _withDirectives(_createElementVNode("div", {
168
- ref_key: "instance",
169
- ref: instance,
170
- class: _normalizeClass(['j-scrollbar__bar', props.vertical ? 'is-vertical' : 'is-horizontal']),
171
- onMousedown: clickTrackHandler
172
- }, [
173
- _createElementVNode("div", {
174
- ref_key: "thumb",
175
- ref: thumb,
176
- class: "j-scrollbar__thumb",
177
- style: _normalizeStyle(thumbStyle.value),
178
- onMousedown: clickThumbHandler
179
- }, null, 36 /* STYLE, NEED_HYDRATION */)
180
- ], 34 /* CLASS, NEED_HYDRATION */), [
181
- [_vShow, _ctx.always || visible.value]
182
- ])
183
- ]),
184
- _: 1 /* STABLE */
185
- }));
169
+ return (_openBlock(), _createElementBlock("div", {
170
+ class: _normalizeClass([_unref(hashId)])
171
+ }, [
172
+ _createVNode(_Transition, {
173
+ name: "j-scrollbar-fade",
174
+ persisted: ""
175
+ }, {
176
+ default: _withCtx(() => [
177
+ _withDirectives(_createElementVNode("div", {
178
+ ref_key: "instance",
179
+ ref: instance,
180
+ class: _normalizeClass(['j-scrollbar__bar', props.vertical ? 'is-vertical' : 'is-horizontal']),
181
+ onMousedown: clickTrackHandler
182
+ }, [
183
+ _createElementVNode("div", {
184
+ ref_key: "thumb",
185
+ ref: thumb,
186
+ class: "j-scrollbar__thumb",
187
+ style: _normalizeStyle(thumbStyle.value),
188
+ onMousedown: clickThumbHandler
189
+ }, null, 36 /* STYLE, NEED_HYDRATION */)
190
+ ], 34 /* CLASS, NEED_HYDRATION */), [
191
+ [_vShow, _ctx.always || visible.value]
192
+ ])
193
+ ]),
194
+ _: 1 /* STABLE */
195
+ })
196
+ ], 2 /* CLASS */));
186
197
  };
187
198
  }
188
199
  });
@@ -1,3 +1,70 @@
1
1
  "use strict";
2
2
 
3
- require("./index.less");
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _styleRegister = _interopRequireDefault(require("../../style/styleRegister"));
10
+ var scrollbarBgColor = '#909399';
11
+ var scrollbarHoverBgColor = '#909399';
12
+ var scrollbarHoverOpacity = 0.5;
13
+ var scrollbarOpacity = 0.3;
14
+ var transitionDuration = '0.3s';
15
+ var genScrollbarStyle = function genScrollbarStyle(config) {
16
+ var componentCls = config.componentCls,
17
+ token = config.token;
18
+ return (0, _defineProperty2.default)((0, _defineProperty2.default)({}, componentCls, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
19
+ overflow: 'hidden',
20
+ position: 'relative',
21
+ height: '100%'
22
+ }, "".concat(componentCls, "__wrap"), (0, _defineProperty2.default)({
23
+ overflow: 'auto',
24
+ height: '100%'
25
+ }, "".concat(componentCls, "--hidden-default"), {
26
+ scrollbarWidth: 'none',
27
+ '&::-webkit-scrollbar': {
28
+ display: 'none'
29
+ }
30
+ })), "".concat(componentCls, "__thumb"), {
31
+ position: 'relative',
32
+ display: 'block',
33
+ width: 0,
34
+ height: 0,
35
+ cursor: 'pointer',
36
+ borderRadius: 'inherit',
37
+ backgroundColor: scrollbarBgColor,
38
+ transition: "".concat(transitionDuration, " background-color"),
39
+ opacity: scrollbarOpacity,
40
+ '&:hover': {
41
+ backgroundColor: scrollbarHoverBgColor,
42
+ opacity: scrollbarOpacity
43
+ }
44
+ }), "".concat(componentCls, "__bar"), (0, _defineProperty2.default)((0, _defineProperty2.default)({
45
+ position: 'absolute',
46
+ right: '2px',
47
+ bottom: '2px',
48
+ zIndex: 1,
49
+ borderRadius: '4px'
50
+ }, "".concat(componentCls, "--vertical"), {
51
+ width: '6px',
52
+ top: '2px',
53
+ '> div': {
54
+ width: '100%'
55
+ }
56
+ }), "".concat(componentCls, "--horizontal"), {
57
+ height: '6px',
58
+ left: '2px',
59
+ '> div': {
60
+ height: '100%'
61
+ }
62
+ }))), "".concat(componentCls, "-fade"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(componentCls, "-fade-enter-active"), {
63
+ transition: 'opacity 340ms ease-out'
64
+ }), "".concat(componentCls, "-fade-leave-active"), {
65
+ transition: 'opacity 120ms ease-out'
66
+ }), "".concat(componentCls, "-fade-enter-from,").concat(componentCls, "-fade-leave-active"), {
67
+ opacity: 0
68
+ }));
69
+ };
70
+ var _default = exports.default = (0, _styleRegister.default)([genScrollbarStyle]);
@@ -15,8 +15,12 @@
15
15
  "Popover": "setup-maybe-ref",
16
16
  "message": "setup-maybe-ref",
17
17
  "useLocaleReceiver": "setup-maybe-ref",
18
+ "useSearchStyle": "setup-maybe-ref",
18
19
  "emit": "setup-const",
19
20
  "props": "setup-reactive-const",
21
+ "prefixCls": "setup-ref",
22
+ "wrapSSR": "setup-maybe-ref",
23
+ "hashId": "setup-maybe-ref",
20
24
  "contextLocale": "setup-maybe-ref",
21
25
  "historyList": "setup-ref",
22
26
  "historyVisible": "setup-ref",
@@ -28,15 +32,10 @@
28
32
  "deleteHistory": "setup-const"
29
33
  } */
30
34
  import { defineComponent as _defineComponent } from 'vue';
31
- import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, withModifiers as _withModifiers } from "vue";
32
- const _hoisted_1 = { class: "search-history-warp" };
33
- const _hoisted_2 = {
34
- key: 0,
35
- class: "search-history-items"
36
- };
37
- const _hoisted_3 = ["onClick"];
38
- const _hoisted_4 = { class: "delete" };
39
- const _hoisted_5 = {
35
+ import { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, withModifiers as _withModifiers } from "vue";
36
+ const _hoisted_1 = ["onClick"];
37
+ const _hoisted_2 = { class: "delete" };
38
+ const _hoisted_3 = {
40
39
  key: 1,
41
40
  class: "search-history-empty"
42
41
  };
@@ -45,6 +44,7 @@ import { isFunction } from 'lodash-es';
45
44
  import { AIcon, Empty, Ellipsis } from '../../../';
46
45
  import { Popconfirm, Button, FormItemRest, Popover, message } from 'ant-design-vue';
47
46
  import { useLocaleReceiver } from "../../LocaleReciver";
47
+ import useSearchStyle from '../style';
48
48
  const __sfc_main__ = _defineComponent({
49
49
  props: {
50
50
  target: {
@@ -69,6 +69,8 @@ const __sfc_main__ = _defineComponent({
69
69
  setup(__props, { emit: __emit }) {
70
70
  const emit = __emit;
71
71
  const props = __props;
72
+ const prefixCls = computed(() => 'JSearch');
73
+ const [wrapSSR, hashId] = useSearchStyle(prefixCls);
72
74
  const [contextLocale] = useLocaleReceiver('Search');
73
75
  const historyList = ref([]);
74
76
  const historyVisible = ref(false);
@@ -109,7 +111,9 @@ const __sfc_main__ = _defineComponent({
109
111
  }
110
112
  };
111
113
  return (_ctx, _cache) => {
112
- return (_openBlock(), _createElementBlock("div", _hoisted_1, [
114
+ return (_openBlock(), _createElementBlock("div", {
115
+ class: _normalizeClass(['search-history-warp', _unref(hashId)])
116
+ }, [
113
117
  _createVNode(_unref(FormItemRest), null, {
114
118
  default: _withCtx(() => [
115
119
  _createVNode(_unref(Button), {
@@ -134,7 +138,10 @@ const __sfc_main__ = _defineComponent({
134
138
  }, {
135
139
  content: _withCtx(() => [
136
140
  (!showEmpty.value)
137
- ? (_openBlock(), _createElementBlock("div", _hoisted_2, [
141
+ ? (_openBlock(), _createElementBlock("div", {
142
+ key: 0,
143
+ class: _normalizeClass(['search-history-items', _unref(hashId)])
144
+ }, [
138
145
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(historyList.value, (item) => {
139
146
  return (_openBlock(), _createElementBlock("div", {
140
147
  key: item.id,
@@ -150,14 +157,14 @@ const __sfc_main__ = _defineComponent({
150
157
  ]),
151
158
  _: 2 /* DYNAMIC */
152
159
  }, 1024 /* DYNAMIC_SLOTS */)
153
- ], 8 /* PROPS */, _hoisted_3),
160
+ ], 8 /* PROPS */, _hoisted_1),
154
161
  _createVNode(_unref(Popconfirm), {
155
162
  title: _unref(contextLocale).advanced.history.confirmDelete,
156
163
  placement: "top",
157
164
  onConfirm: ($event) => (deleteHistory(item))
158
165
  }, {
159
166
  default: _withCtx(() => [
160
- _createElementVNode("span", _hoisted_4, [
167
+ _createElementVNode("span", _hoisted_2, [
161
168
  _createVNode(_unref(AIcon), { type: "DeleteOutlined" })
162
169
  ])
163
170
  ]),
@@ -165,8 +172,8 @@ const __sfc_main__ = _defineComponent({
165
172
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["title", "onConfirm"])
166
173
  ]));
167
174
  }), 128 /* KEYED_FRAGMENT */))
168
- ]))
169
- : (_openBlock(), _createElementBlock("div", _hoisted_5, [
175
+ ], 2 /* CLASS */))
176
+ : (_openBlock(), _createElementBlock("div", _hoisted_3, [
170
177
  _createVNode(_unref(Empty))
171
178
  ]))
172
179
  ]),
@@ -180,7 +187,7 @@ const __sfc_main__ = _defineComponent({
180
187
  ]),
181
188
  _: 1 /* STABLE */
182
189
  }, 8 /* PROPS */, ["visible"])
183
- ]));
190
+ ], 2 /* CLASS */));
184
191
  };
185
192
  }
186
193
  });
@@ -22,8 +22,7 @@
22
22
  "saveHistory": "setup-const"
23
23
  } */
24
24
  import { defineComponent as _defineComponent } from 'vue';
25
- import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
26
- const _withScopeId = n => (_pushScopeId("data-v-1745819698162"), n = n(), _popScopeId(), n);
25
+ import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock } from "vue";
27
26
  const _hoisted_1 = {
28
27
  key: 0,
29
28
  style: { "width": "240px" }