@jetlinks-web/components 3.3.12 → 3.3.13

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 (51) hide show
  1. package/es/CardSelect/style/index.js +3 -3
  2. package/es/CheckButton/style/index.js +9 -9
  3. package/es/DragModal/style/index.js +6 -6
  4. package/es/EditTable/FormItem.js +18 -15
  5. package/es/EditTable/components/Search/sort.js +15 -1
  6. package/es/EditTable/style/body.js +8 -6
  7. package/es/EditTable/style/group.js +3 -3
  8. package/es/EditTable/style/header.js +3 -3
  9. package/es/EditTable/style/menu.js +3 -3
  10. package/es/EditTable/style/table.js +3 -3
  11. package/es/FullPage/FullPage.js +15 -5
  12. package/es/ProLayout/SiderMenu/style.js +105 -26
  13. package/es/ProLayout/TopHeader/style.js +55 -11
  14. package/es/ProTable/ProTable.js +2 -4
  15. package/es/ProTable/style/index.js +11 -8
  16. package/es/RadioButton/style/index.js +3 -2
  17. package/es/Scrollbar/style/index.js +9 -9
  18. package/es/Search/style/search.js +5 -5
  19. package/es/Skeleton/components/Page.js +18 -5
  20. package/es/Skeleton/style/index.js +12 -6
  21. package/es/Title/style/index.js +2 -2
  22. package/es/VirtualTable/style/index.js +7 -4
  23. package/es/style/scrollbar.js +24 -0
  24. package/es/style/styleRegister.js +45 -11
  25. package/es/style/variable.js +1 -4
  26. package/lib/CardSelect/style/index.js +3 -3
  27. package/lib/CheckButton/style/index.js +9 -9
  28. package/lib/DragModal/style/index.js +6 -6
  29. package/lib/EditTable/FormItem.js +18 -15
  30. package/lib/EditTable/components/Search/sort.js +15 -1
  31. package/lib/EditTable/style/body.js +8 -6
  32. package/lib/EditTable/style/group.js +3 -3
  33. package/lib/EditTable/style/header.js +3 -3
  34. package/lib/EditTable/style/menu.js +3 -3
  35. package/lib/EditTable/style/table.js +3 -3
  36. package/lib/FullPage/FullPage.js +15 -5
  37. package/lib/ProLayout/SiderMenu/style.js +104 -25
  38. package/lib/ProLayout/TopHeader/style.js +55 -11
  39. package/lib/ProTable/ProTable.js +2 -4
  40. package/lib/ProTable/style/index.js +10 -7
  41. package/lib/RadioButton/style/index.js +3 -2
  42. package/lib/Scrollbar/style/index.js +8 -8
  43. package/lib/Search/style/search.js +5 -5
  44. package/lib/Skeleton/components/Page.js +18 -5
  45. package/lib/Skeleton/style/index.js +12 -6
  46. package/lib/Title/style/index.js +2 -2
  47. package/lib/VirtualTable/style/index.js +6 -3
  48. package/lib/style/scrollbar.js +30 -0
  49. package/lib/style/styleRegister.js +44 -10
  50. package/lib/style/variable.js +1 -4
  51. package/package.json +3 -3
@@ -1,10 +1,19 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
- import { Keyframes } from "ant-design-vue";
2
+ import { Keyframes } from 'ant-design-vue';
3
3
  export var genSiderMenuStyle = function genSiderMenuStyle(config) {
4
- var _$concat9;
4
+ var _$concat0;
5
5
  var token = config.token;
6
6
  var proLayoutSiderMenuCls = "".concat(token.antCls, "-pro-sider");
7
7
  var proLayoutHeaderHeight = '48px';
8
+ var isAntdvDarkTheme = ['#000', '#000000'].includes(String(token.colorBgLayout).toLowerCase());
9
+ var darkMenuBg = isAntdvDarkTheme ? token.colorBgLayout : '#001529';
10
+ var darkMenuSubBg = isAntdvDarkTheme ? token.colorBgContainer : '#000c17';
11
+ var darkMenuPopupBg = isAntdvDarkTheme ? token.colorBgElevated : '#001529';
12
+ var darkMenuHoverBg = isAntdvDarkTheme ? token.colorFillTertiary : 'rgba(255, 255, 255, 0.08)';
13
+ var darkMenuActiveBg = isAntdvDarkTheme ? token.colorFillSecondary : 'rgba(255, 255, 255, 0.12)';
14
+ var darkMenuTextColor = isAntdvDarkTheme ? token.colorText : 'rgba(255, 255, 255, 0.85)';
15
+ var darkMenuTextSecondaryColor = isAntdvDarkTheme ? token.colorTextSecondary : 'rgba(255, 255, 255, 0.65)';
16
+ var darkMenuTextHoverColor = isAntdvDarkTheme ? token.colorTextHeading : '#fff';
8
17
  var proLayoutTitleHideKeyframes = new Keyframes('pro-layout-title-hide', {
9
18
  '0%': {
10
19
  display: 'none',
@@ -19,14 +28,46 @@ export var genSiderMenuStyle = function genSiderMenuStyle(config) {
19
28
  opacity: 1
20
29
  }
21
30
  });
22
- return ["\n ".concat(proLayoutSiderMenuCls, " > ").concat(token.antCls, "-layout-sider-children {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n "), _defineProperty(_defineProperty(_defineProperty({}, "".concat(proLayoutSiderMenuCls), (_$concat9 = {
31
+ return ["\n ".concat(proLayoutSiderMenuCls, " > ").concat(token.antCls, "-layout-sider-children {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n "), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(proLayoutSiderMenuCls), (_$concat0 = {
23
32
  position: 'relative',
24
- backgroundColor: '#001529',
33
+ background: darkMenuBg,
25
34
  borderRight: 0,
26
35
  // FIXME: 临时修正(可能不会做兼容)
27
36
  zIndex: 20
28
- }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat9, "".concat(token.antCls, "-menu"), {
37
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat0, "".concat(token.antCls, "-menu"), {
29
38
  background: 'transparent'
39
+ }), "&".concat(proLayoutSiderMenuCls, "-dark, &").concat(token.antCls, "-layout-sider-dark"), _defineProperty(_defineProperty({
40
+ background: darkMenuBg
41
+ }, "".concat(token.antCls, "-layout-sider-children"), {
42
+ background: darkMenuBg
43
+ }), "".concat(token.antCls, "-menu-dark"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
44
+ color: darkMenuTextColor,
45
+ background: 'transparent'
46
+ }, "".concat(token.antCls, "-menu-sub"), {
47
+ background: darkMenuSubBg
48
+ }), "".concat(token.antCls, "-menu-item, ").concat(token.antCls, "-menu-submenu-title"), {
49
+ color: darkMenuTextColor
50
+ }), "".concat(token.antCls, "-menu-item a, ").concat(token.antCls, "-menu-submenu-title a"), {
51
+ color: 'inherit'
52
+ }), "".concat(token.antCls, "-menu-item .anticon, ").concat(token.antCls, "-menu-submenu-title .anticon, ").concat(token.antCls, "-menu-submenu-arrow"), {
53
+ color: darkMenuTextSecondaryColor
54
+ }), "".concat(token.antCls, "-menu-item:hover, ").concat(token.antCls, "-menu-submenu-title:hover"), {
55
+ color: darkMenuTextHoverColor,
56
+ backgroundColor: darkMenuHoverBg
57
+ }), "".concat(token.antCls, "-menu-item:hover .anticon, ").concat(token.antCls, "-menu-submenu-title:hover .anticon, ").concat(token.antCls, "-menu-submenu-title:hover ").concat(token.antCls, "-menu-submenu-arrow"), {
58
+ color: darkMenuTextHoverColor
59
+ }), "".concat(token.antCls, "-menu-submenu-open > ").concat(token.antCls, "-menu-submenu-title"), {
60
+ color: darkMenuTextHoverColor,
61
+ backgroundColor: darkMenuActiveBg
62
+ }), "".concat(token.antCls, "-menu-item-selected"), {
63
+ color: token.colorTextLightSolid,
64
+ backgroundColor: token.colorPrimary
65
+ }), "".concat(token.antCls, "-menu-item-selected a, ").concat(token.antCls, "-menu-item-selected .anticon"), {
66
+ color: token.colorTextLightSolid
67
+ }))), "&".concat(proLayoutSiderMenuCls, "-dark").concat(token.antCls, "-layout-sider-dark"), {
68
+ background: darkMenuBg
69
+ }), "&".concat(proLayoutSiderMenuCls, "-dark ").concat(token.antCls, "-menu-dark").concat(token.antCls, "-menu-inline ").concat(token.antCls, "-menu-sub").concat(token.antCls, "-menu-inline"), {
70
+ background: darkMenuSubBg
30
71
  }), "&".concat(token.antCls, "-layout-sider-light"), _defineProperty(_defineProperty({}, "".concat(token.antCls, "-menu-item a"), {
31
72
  color: token.colorTextHeading
32
73
  }), "".concat(token.antCls, "-menu-item-selected a, ").concat(token.antCls, "-menu-item a:hover"), {
@@ -44,12 +85,12 @@ export var genSiderMenuStyle = function genSiderMenuStyle(config) {
44
85
  justifyContent: 'center',
45
86
  minHeight: 32
46
87
  },
47
- 'img': {
88
+ img: {
48
89
  display: 'inline-block',
49
90
  height: 32,
50
91
  verticalAlign: 'middle'
51
92
  },
52
- 'h1': {
93
+ h1: {
53
94
  display: 'inline-block',
54
95
  height: '32px',
55
96
  margin: '0 0 0 12px',
@@ -82,7 +123,7 @@ export var genSiderMenuStyle = function genSiderMenuStyle(config) {
82
123
  width: '6px',
83
124
  height: '6px'
84
125
  },
85
- '::webkit-scrollbar-track': {
126
+ '::-webkit-scrollbar-track': {
86
127
  background: 'rgba(255, 255, 255, 0.15)',
87
128
  borderRadius: '3px',
88
129
  boxShadow: 'inset 0 0 5px rgba(37, 37, 37, 0.05)'
@@ -95,9 +136,24 @@ export var genSiderMenuStyle = function genSiderMenuStyle(config) {
95
136
  }
96
137
  }, "".concat(proLayoutSiderMenuCls, "-logo"), {
97
138
  h1: {
98
- color: '#333'
139
+ color: darkMenuTextHoverColor
140
+ }
141
+ })), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat0, "".concat(proLayoutSiderMenuCls, "-body"), {
142
+ scrollbarWidth: 'thin',
143
+ scrollbarColor: 'rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.15)',
144
+ '::-webkit-scrollbar': {
145
+ width: '6px',
146
+ height: '6px'
147
+ },
148
+ '::-webkit-scrollbar-track': {
149
+ background: 'rgba(255, 255, 255, 0.15)',
150
+ borderRadius: '3px'
151
+ },
152
+ '::-webkit-scrollbar-thumb': {
153
+ background: 'rgba(255, 255, 255, 0.2)',
154
+ borderRadius: '3px'
99
155
  }
100
- })), "&".concat(token.antCls, "-layout-sider-collapsed"), _defineProperty(_defineProperty({}, "".concat(token.antCls, "-menu-inline-collapsed"), {
156
+ }), "&".concat(token.antCls, "-layout-sider-collapsed"), _defineProperty(_defineProperty({}, "".concat(token.antCls, "-menu-inline-collapsed"), {
101
157
  width: '48px'
102
158
  }), "".concat(proLayoutSiderMenuCls), _defineProperty({}, "".concat(proLayoutSiderMenuCls, "-logo"), {
103
159
  padding: '16px 24px'
@@ -113,30 +169,37 @@ export var genSiderMenuStyle = function genSiderMenuStyle(config) {
113
169
  }, "> ".concat(token.antCls, "-menu-root"), _defineProperty({}, ":not".concat(proLayoutSiderMenuCls, "-link-menu"), {
114
170
  height: "calc(100vh - ".concat(proLayoutHeaderHeight, ")"),
115
171
  overflowY: 'auto'
116
- }))), "&".concat(proLayoutSiderMenuCls, "-light"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
172
+ }))), "&".concat(proLayoutSiderMenuCls, "-light"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
117
173
  backgroundColor: token.colorBgContainer,
118
174
  boxShadow: '2px 0 8px 0 rgba(29, 35, 41, 0.05)'
119
175
  }, "".concat(token.antCls, "-layout-sider-children"), {
120
- '::webkit-scrollbar-track': {
176
+ '::-webkit-scrollbar-track': {
121
177
  background: 'rgba(0, 0, 0, 0.06)',
122
178
  borderRadius: '3px',
123
- boxShadow: 'inset 0 0 5px rgba(0, 21, 41, 0.05)',
124
- /* 滚动条滑块 */
125
- '::-webkit-scrollbar-thumb': {
126
- background: 'rgba(0, 0, 0, 0.12)',
127
- borderRadius: '3px',
128
- boxShadow: 'inset 0 0 5px rgba(0, 21, 41, 0.05)'
129
- }
179
+ boxShadow: 'inset 0 0 5px rgba(0, 21, 41, 0.05)'
180
+ },
181
+ '::-webkit-scrollbar-thumb': {
182
+ background: 'rgba(0, 0, 0, 0.12)',
183
+ borderRadius: '3px',
184
+ boxShadow: 'inset 0 0 5px rgba(0, 21, 41, 0.05)'
185
+ }
186
+ }), "".concat(proLayoutSiderMenuCls, "-body"), {
187
+ scrollbarColor: 'rgba(0, 0, 0, 0.12) rgba(0, 0, 0, 0.06)',
188
+ '::-webkit-scrollbar-track': {
189
+ background: 'rgba(0, 0, 0, 0.06)'
190
+ },
191
+ '::-webkit-scrollbar-thumb': {
192
+ background: 'rgba(0, 0, 0, 0.12)'
130
193
  }
131
194
  }), "".concat(proLayoutSiderMenuCls, "-logo"), {
132
- 'h1': {
195
+ h1: {
133
196
  color: token.colorPrimary
134
197
  }
135
198
  }), "".concat(token.antCls, "-menu-light"), {
136
199
  borderRightColor: 'transparent'
137
200
  }), "".concat(proLayoutSiderMenuCls, "-collapsed-button"), {
138
201
  borderTop: "".concat(token.lineWidth, " solid ").concat(token.colorSplit)
139
- })), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat9, "".concat(proLayoutSiderMenuCls, "-icon"), {
202
+ })), "".concat(proLayoutSiderMenuCls, "-icon"), {
140
203
  width: '14px',
141
204
  verticalAlign: 'baseline'
142
205
  }), "".concat(proLayoutSiderMenuCls, "-links"), _defineProperty({
@@ -152,19 +215,35 @@ export var genSiderMenuStyle = function genSiderMenuStyle(config) {
152
215
  height: '100%',
153
216
  lineHeight: 1
154
217
  }), '.drawer .drawer-content', {
155
- background: "#001529"
156
- }))), "".concat(token.antCls, "-pro-menu-item"), _defineProperty({}, ".anticon".concat(token.antCls, "-pro-menu-item-title"), {
218
+ background: darkMenuBg
219
+ }))), "".concat(token.antCls, "-pro-menu-popup"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(token.antCls, "-menu, ").concat(token.antCls, "-menu-dark"), {
220
+ background: darkMenuPopupBg,
221
+ color: darkMenuTextColor
222
+ }), "".concat(token.antCls, "-menu-item, ").concat(token.antCls, "-menu-submenu-title"), {
223
+ color: darkMenuTextColor
224
+ }), "".concat(token.antCls, "-menu-item a"), {
225
+ color: 'inherit'
226
+ }), "".concat(token.antCls, "-menu-item:hover, ").concat(token.antCls, "-menu-submenu-title:hover"), {
227
+ color: darkMenuTextHoverColor,
228
+ backgroundColor: darkMenuHoverBg
229
+ }), "".concat(token.antCls, "-menu-item-selected"), {
230
+ color: token.colorTextLightSolid,
231
+ backgroundColor: token.colorPrimary
232
+ })), "".concat(token.antCls, "-menu-submenu-popup").concat(token.antCls, "-menu-dark").concat(token.antCls, "-pro-menu-popup ").concat(token.antCls, "-menu"), {
233
+ background: darkMenuPopupBg,
234
+ color: darkMenuTextColor
235
+ }), "".concat(token.antCls, "-pro-menu-item"), _defineProperty({}, ".anticon".concat(token.antCls, "-pro-menu-item-title"), {
157
236
  marginLeft: '10px'
158
237
  })), '.sider-app-menus', {
159
238
  width: '100px',
160
- backgroundColor: '#fff',
239
+ backgroundColor: token.colorBgContainer,
161
240
  cursor: 'pointer',
162
241
  padding: '6px',
163
242
  transition: 'all .3s',
164
243
  borderRadius: '4px',
165
- color: '#333',
244
+ color: token.colorText,
166
245
  '&:hover': {
167
- backgroundColor: '#efefef'
246
+ backgroundColor: token.colorFillQuaternary
168
247
  }
169
248
  })];
170
249
  };
@@ -3,6 +3,13 @@ export var genTopHeaderStyle = function genTopHeaderStyle(config) {
3
3
  var token = config.token;
4
4
  var topNavHeaderCls = "".concat(token.antCls, "-pro-top-nav-header");
5
5
  var proLayoutGlobalHeaderCls = "".concat(token.antCls, "-pro-global-header");
6
+ var isAntdvDarkTheme = ['#000', '#000000'].includes(String(token.colorBgLayout).toLowerCase());
7
+ var darkHeaderBg = isAntdvDarkTheme ? token.colorBgLayout : '#001529';
8
+ var darkHeaderPopupBg = isAntdvDarkTheme ? token.colorBgElevated : '#001529';
9
+ var darkHeaderHoverBg = isAntdvDarkTheme ? token.colorFillTertiary : 'rgba(255, 255, 255, 0.08)';
10
+ var darkHeaderTextColor = isAntdvDarkTheme ? token.colorText : 'rgba(255, 255, 255, 0.85)';
11
+ var darkHeaderTextSecondaryColor = isAntdvDarkTheme ? token.colorTextSecondary : 'rgba(255, 255, 255, 0.65)';
12
+ var darkHeaderTextHoverColor = isAntdvDarkTheme ? token.colorTextHeading : '#fff';
6
13
  var proLayoutHeaderBg = token.colorBgContainer;
7
14
  var proLayoutHeaderHoverBg = token.colorBgContainer;
8
15
  var proLayoutHeaderBoxShadow = '0 1px 4px rgba(0, 21, 41, 0.08)';
@@ -23,13 +30,13 @@ export var genTopHeaderStyle = function genTopHeaderStyle(config) {
23
30
  marginLeft: '16px',
24
31
  fontSize: '20px'
25
32
  }), "".concat(proLayoutGlobalHeaderCls, "-layout"), _defineProperty({}, "".concat(proLayoutGlobalHeaderCls, "-layout-mix"), _defineProperty(_defineProperty({
26
- backgroundColor: '#001529'
33
+ backgroundColor: darkHeaderBg
27
34
  }, "".concat(proLayoutGlobalHeaderCls, "-logo"), {
28
- 'h1': {
29
- color: '#fff'
35
+ h1: {
36
+ color: darkHeaderTextHoverColor
30
37
  }
31
38
  }), '.anticon', {
32
- color: '#fff'
39
+ color: darkHeaderTextHoverColor
33
40
  }))), "".concat(proLayoutGlobalHeaderCls, "-logo"), {
34
41
  position: 'relative',
35
42
  overflow: 'hidden',
@@ -58,17 +65,17 @@ export var genTopHeaderStyle = function genTopHeaderStyle(config) {
58
65
  })), '.dark', {
59
66
  height: '48px',
60
67
  '.action': _defineProperty({
61
- color: 'rgba(255, 255, 255, 0.85)',
68
+ color: darkHeaderTextColor,
62
69
  '> i': {
63
- color: 'rgba(255, 255, 255, 0.85)'
70
+ color: darkHeaderTextColor
64
71
  },
65
72
  '&:hover,&.opend': {
66
73
  background: token.colorPrimary
67
74
  }
68
75
  }, "".concat(token.antCls, "-badge"), {
69
- color: 'rgba(255, 255, 255, 0.85)'
76
+ color: darkHeaderTextColor
70
77
  })
71
- })), topNavHeaderCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
78
+ })), topNavHeaderCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
72
79
  position: 'relative',
73
80
  width: '100%',
74
81
  height: '100%',
@@ -76,7 +83,31 @@ export var genTopHeaderStyle = function genTopHeaderStyle(config) {
76
83
  transition: 'background 0.3s, width 0.2s'
77
84
  }, "".concat(token.antCls, "-menu"), {
78
85
  backgroundColor: 'transparent'
79
- }), '&.light', _defineProperty(_defineProperty({
86
+ }), '&.dark', _defineProperty(_defineProperty({
87
+ backgroundColor: darkHeaderBg,
88
+ color: darkHeaderTextColor
89
+ }, "".concat(topNavHeaderCls, "-logo"), {
90
+ h1: {
91
+ color: token.colorPrimary
92
+ }
93
+ }), "".concat(token.antCls, "-menu-dark"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
94
+ color: darkHeaderTextColor,
95
+ backgroundColor: 'transparent'
96
+ }, "".concat(token.antCls, "-menu-item, ").concat(token.antCls, "-menu-submenu-title"), {
97
+ color: darkHeaderTextColor
98
+ }), "".concat(token.antCls, "-menu-item a"), {
99
+ color: 'inherit'
100
+ }), "".concat(token.antCls, "-menu-item .anticon, ").concat(token.antCls, "-menu-submenu-title .anticon, ").concat(token.antCls, "-menu-submenu-arrow"), {
101
+ color: darkHeaderTextSecondaryColor
102
+ }), "".concat(token.antCls, "-menu-item:hover, ").concat(token.antCls, "-menu-submenu-title:hover"), {
103
+ color: darkHeaderTextHoverColor,
104
+ backgroundColor: darkHeaderHoverBg
105
+ }), "".concat(token.antCls, "-menu-item-selected"), {
106
+ color: token.colorTextLightSolid,
107
+ backgroundColor: token.colorPrimary
108
+ }), "".concat(token.antCls, "-menu-item-selected a, ").concat(token.antCls, "-menu-item-selected .anticon"), {
109
+ color: token.colorTextLightSolid
110
+ }))), '&.light', _defineProperty(_defineProperty({
80
111
  backgroundColor: token.colorBgContainer
81
112
  }, "".concat(topNavHeaderCls, "-logo"), {
82
113
  h1: {
@@ -96,7 +127,7 @@ export var genTopHeaderStyle = function genTopHeaderStyle(config) {
96
127
  alignItems: 'center',
97
128
  marginInlineEnd: '16px'
98
129
  })), '.anticon', {
99
- color: '#fff'
130
+ color: darkHeaderTextColor
100
131
  }), "".concat(topNavHeaderCls, "-logo"), {
101
132
  position: 'relative',
102
133
  minWidth: '165px',
@@ -124,7 +155,20 @@ export var genTopHeaderStyle = function genTopHeaderStyle(config) {
124
155
  height: '100%'
125
156
  }, "".concat(token.antCls, "-badge"), {
126
157
  color: 'unset'
127
- }))))), "".concat(token.antCls, "-pro-menu-popup"), _defineProperty({}, "".concat(token.antCls, "-badge"), {
158
+ }))))), "".concat(token.antCls, "-pro-menu-popup"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(token.antCls, "-menu, ").concat(token.antCls, "-menu-dark"), {
159
+ background: darkHeaderPopupBg,
160
+ color: darkHeaderTextColor
161
+ }), "".concat(token.antCls, "-menu-item, ").concat(token.antCls, "-menu-submenu-title"), {
162
+ color: darkHeaderTextColor
163
+ }), "".concat(token.antCls, "-menu-item a"), {
164
+ color: 'inherit'
165
+ }), "".concat(token.antCls, "-menu-item:hover, ").concat(token.antCls, "-menu-submenu-title:hover"), {
166
+ color: darkHeaderTextHoverColor,
167
+ backgroundColor: darkHeaderHoverBg
168
+ }), "".concat(token.antCls, "-menu-item-selected"), {
169
+ color: token.colorTextLightSolid,
170
+ backgroundColor: token.colorPrimary
171
+ }), "".concat(token.antCls, "-badge"), {
128
172
  color: 'unset'
129
173
  }));
130
174
  };
@@ -315,12 +315,10 @@ const __sfc_main__ = _defineComponent({
315
315
  }, { deep: true, immediate: true });
316
316
  onMounted(() => {
317
317
  windowChange(); // 初始化
318
- window.onresize = () => {
319
- windowChange();
320
- };
318
+ window.addEventListener('resize', windowChange);
321
319
  });
322
320
  onUnmounted(() => {
323
- window.onresize = null;
321
+ window.removeEventListener('resize', windowChange);
324
322
  });
325
323
  __expose({ reload, dataSource: _dataSource });
326
324
  return (_ctx, _cache) => {
@@ -1,12 +1,14 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
- import genCompoentStyle from "../../style/styleRegister";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import genCompoentStyle from '../../style/styleRegister';
4
+ import { genTokenScrollbarStyle } from '../../style/scrollbar';
3
5
  var genProTableStyle = function genProTableStyle(config) {
4
6
  var token = config.token;
5
7
  return {
6
8
  '.jtable-body-spin': {
7
9
  height: '100%',
8
10
  width: '100%',
9
- backgroundColor: '#fff',
11
+ backgroundColor: token.colorBgContainer,
10
12
  '.ant-spin-nested-loading': {
11
13
  height: '100%',
12
14
  '.ant-spin-container': {
@@ -40,7 +42,7 @@ var genProTableStyle = function genProTableStyle(config) {
40
42
  width: '62px',
41
43
  '.right-button-icon': {
42
44
  fontSize: '16px',
43
- color: '#d9d9d9'
45
+ color: token.colorTextDisabled
44
46
  },
45
47
  '.ant-radio-button-wrapper': {
46
48
  padding: '0 8px'
@@ -54,9 +56,10 @@ var genProTableStyle = function genProTableStyle(config) {
54
56
  '.jtable-box': {
55
57
  flex: 1,
56
58
  minHeight: 0,
57
- '.jtable-card': _defineProperty({
59
+ '.jtable-card': _objectSpread(_objectSpread({
58
60
  height: '100%',
59
- overflowY: 'auto',
61
+ overflowY: 'auto'
62
+ }, genTokenScrollbarStyle(token)), {}, _defineProperty({
60
63
  '.jtable-card-items': {
61
64
  display: 'grid',
62
65
  gridGap: '18px',
@@ -67,7 +70,7 @@ var genProTableStyle = function genProTableStyle(config) {
67
70
  }
68
71
  }, "j-table-empty", {
69
72
  marginTop: '100px'
70
- }),
73
+ })),
71
74
  '.ant-table-wrapper': {
72
75
  height: '100%',
73
76
  '.ant-table': {
@@ -85,11 +88,11 @@ var genProTableStyle = function genProTableStyle(config) {
85
88
  display: 'flex',
86
89
  flexDirection: 'column'
87
90
  },
88
- '.ant-table-body': {
91
+ '.ant-table-body': _objectSpread({
89
92
  flex: 1,
90
93
  minHeight: 0,
91
94
  overflowY: 'auto'
92
- }
95
+ }, genTokenScrollbarStyle(token))
93
96
  }
94
97
  },
95
98
  '.jtable-alert': {
@@ -10,10 +10,11 @@ var genRadioButtonStyle = function genRadioButtonStyle(config) {
10
10
  textAlign: 'center',
11
11
  height: '100%',
12
12
  borderRadius: '2px',
13
- backgroundColor: '#f5f5f5',
13
+ backgroundColor: token.colorFillTertiary,
14
+ color: token.colorText,
14
15
  cursor: 'pointer',
15
16
  '&.active': {
16
- color: '#fff',
17
+ color: token.colorTextLightSolid,
17
18
  backgroundColor: token.colorPrimary
18
19
  }
19
20
  }
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
- import genCompoentStyle from "../../style/styleRegister";
3
- var scrollbarBgColor = '#909399';
4
- var scrollbarHoverBgColor = '#909399';
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import genCompoentStyle from '../../style/styleRegister';
4
+ import { genTokenScrollbarStyle } from '../../style/scrollbar';
5
5
  var scrollbarHoverOpacity = 0.5;
6
6
  var scrollbarOpacity = 0.3;
7
7
  var transitionDuration = '0.3s';
@@ -12,27 +12,27 @@ var genScrollbarStyle = function genScrollbarStyle(config) {
12
12
  overflow: 'hidden',
13
13
  position: 'relative',
14
14
  height: '100%'
15
- }, "".concat(componentCls, "__wrap"), _defineProperty({
15
+ }, "".concat(componentCls, "__wrap"), _objectSpread(_objectSpread({
16
16
  overflow: 'auto',
17
17
  height: '100%'
18
- }, "".concat(componentCls, "--hidden-default"), {
18
+ }, genTokenScrollbarStyle(token)), {}, _defineProperty({}, "".concat(componentCls, "--hidden-default"), {
19
19
  scrollbarWidth: 'none',
20
20
  '&::-webkit-scrollbar': {
21
21
  display: 'none'
22
22
  }
23
- })), "".concat(componentCls, "__thumb"), {
23
+ }))), "".concat(componentCls, "__thumb"), {
24
24
  position: 'relative',
25
25
  display: 'block',
26
26
  width: 0,
27
27
  height: 0,
28
28
  cursor: 'pointer',
29
29
  borderRadius: 'inherit',
30
- backgroundColor: scrollbarBgColor,
30
+ backgroundColor: token.colorFillSecondary,
31
31
  transition: "".concat(transitionDuration, " background-color"),
32
32
  opacity: scrollbarOpacity,
33
33
  '&:hover': {
34
- backgroundColor: scrollbarHoverBgColor,
35
- opacity: scrollbarOpacity
34
+ backgroundColor: token.colorFill,
35
+ opacity: scrollbarHoverOpacity
36
36
  }
37
37
  }), "".concat(componentCls, "__bar"), _defineProperty(_defineProperty({
38
38
  position: 'absolute',
@@ -4,7 +4,7 @@ export var genSearchStyle = function genSearchStyle(config) {
4
4
  token = config.token;
5
5
  return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-warp"), _defineProperty(_defineProperty(_defineProperty({
6
6
  padding: '24px',
7
- backgroundColor: '#fff',
7
+ backgroundColor: token.colorBgContainer,
8
8
  marginBottom: '24px',
9
9
  '.pack-up': _defineProperty({}, "".concat(componentCls, "-items"), {
10
10
  flex: '1 1 auto',
@@ -81,7 +81,7 @@ export var genSearchStyle = function genSearchStyle(config) {
81
81
  }))
82
82
  }), '.no-radius', {
83
83
  borderRadius: 0,
84
- borderColor: '#f1f1f1'
84
+ borderColor: token.colorBorderSecondary
85
85
  }), '.search-history-warp', {
86
86
  position: 'relative',
87
87
  '.search-history-button': {
@@ -93,7 +93,7 @@ export var genSearchStyle = function genSearchStyle(config) {
93
93
  height: '18px',
94
94
  right: '6px',
95
95
  top: '8px',
96
- color: '#fff',
96
+ color: token.colorTextLightSolid,
97
97
  lineHeight: '18px',
98
98
  textAlign: 'center',
99
99
  fontWeight: 'bold',
@@ -103,7 +103,7 @@ export var genSearchStyle = function genSearchStyle(config) {
103
103
  }
104
104
  })), '.search-history-empty', {
105
105
  padding: '12px 12px 6px 12px',
106
- backgroundColor: '#fff'
106
+ backgroundColor: token.colorBgElevated
107
107
  }), '.search-history-items', {
108
108
  width: '120px',
109
109
  maxHeight: '300px',
@@ -114,7 +114,7 @@ export var genSearchStyle = function genSearchStyle(config) {
114
114
  alignItems: 'center',
115
115
  gap: '4px',
116
116
  '&:hover': {
117
- backgroundColor: '#f1f1f1'
117
+ backgroundColor: token.colorFillTertiary
118
118
  },
119
119
  '.history-item--title': {
120
120
  width: 'calc(100% - 30px)',
@@ -4,12 +4,17 @@
4
4
  "loading": "props",
5
5
  "List": "setup-const",
6
6
  "Detail": "setup-const",
7
- "props": "setup-reactive-const"
7
+ "computed": "setup-const",
8
+ "theme": "setup-maybe-ref",
9
+ "props": "setup-reactive-const",
10
+ "token": "setup-maybe-ref",
11
+ "pageStyle": "setup-ref"
8
12
  } */
9
- import { renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from "vue";
10
- const _hoisted_1 = { style: { "padding": "24px", "background-color": "#ffffff", "height": "100%" } };
13
+ import { renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
11
14
  import List from "./List.js";
12
15
  import Detail from "./Detail.js";
16
+ import { computed } from "vue";
17
+ import { theme } from "ant-design-vue";
13
18
  const __sfc_main__ = Object.assign({
14
19
  name: 'JSkeletonPage'
15
20
  }, {
@@ -29,8 +34,16 @@ const __sfc_main__ = Object.assign({
29
34
  },
30
35
  setup(__props) {
31
36
  const props = __props;
37
+ const { token } = theme.useToken();
38
+ const pageStyle = computed(() => ({
39
+ padding: '24px',
40
+ backgroundColor: token.value.colorBgContainer,
41
+ height: '100%',
42
+ }));
32
43
  return (_ctx, _cache) => {
33
- return (_openBlock(), _createElementBlock("div", _hoisted_1, [
44
+ return (_openBlock(), _createElementBlock("div", {
45
+ style: _normalizeStyle(pageStyle.value)
46
+ }, [
34
47
  (__props.type === 'list')
35
48
  ? (_openBlock(), _createBlock(List, {
36
49
  key: 0,
@@ -55,7 +68,7 @@ const __sfc_main__ = Object.assign({
55
68
  _: 3 /* FORWARDED */
56
69
  }, 8 /* PROPS */, ["loading"]))
57
70
  : _renderSlot(_ctx.$slots, "default", { key: 2 })
58
- ]));
71
+ ], 4 /* STYLE */));
59
72
  };
60
73
  }
61
74
  });
@@ -6,9 +6,6 @@ var JSkeletonSizeLg = '36px';
6
6
  var JSkeletonSizeSm = '16px';
7
7
  var JSkeletonSize = '24px';
8
8
  var JSkeletonBorderRadius = '8px';
9
- var JSkeletonBg = '#f0f2f5';
10
- var JSkeletonBg1 = '#e6e8eb';
11
- var JSkeletonBorder = "4px solid ".concat(JSkeletonBg);
12
9
  var JSkeletonFlex = {
13
10
  display: 'flex',
14
11
  gap: '24px',
@@ -27,6 +24,10 @@ var genSkeletonStyle = function genSkeletonStyle(config) {
27
24
  var _$concat6;
28
25
  var componentCls = config.componentCls,
29
26
  token = config.token;
27
+ var JSkeletonBg = token.colorFillQuaternary;
28
+ var JSkeletonBg1 = token.colorFillSecondary;
29
+ var JSkeletonBorder = "".concat(token.lineWidth * 4, "px solid ").concat(JSkeletonBg);
30
+ var JSkeletonCardBorder = "".concat(token.lineWidth * 2, "px solid ").concat(token.colorBorderSecondary);
30
31
  return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-flex"), JSkeletonFlex), "".concat(componentCls, "-flex-between"), _objectSpread(_objectSpread({}, JSkeletonFlex), {}, {
31
32
  background: JSkeletonBg,
32
33
  height: JSkeletonSize,
@@ -34,7 +35,12 @@ var genSkeletonStyle = function genSkeletonStyle(config) {
34
35
  })), "".concat(componentCls, "-flex-column"), _objectSpread(_objectSpread({}, JSkeletonFlex), {}, {
35
36
  justifyContent: 'space-between'
36
37
  })), "".concat(componentCls), (_$concat6 = {
37
- height: '100%'
38
+ height: '100%',
39
+ '--j-skeleton-bg': JSkeletonBg,
40
+ '--j-skeleton-bg-active': JSkeletonBg1,
41
+ '--j-skeleton-border': JSkeletonBorder,
42
+ '--j-skeleton-card-border': JSkeletonCardBorder,
43
+ '--j-skeleton-table-header-bg': token.colorFillTertiary
38
44
  }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat6, "".concat(componentCls, "-item"), {
39
45
  background: "linear-gradient(90deg, ".concat(JSkeletonBg, " 25%, ").concat(JSkeletonBg1, " 50%, ").concat(JSkeletonBg, " 75%)"),
40
46
  backgroundSize: '400% 100%',
@@ -83,7 +89,7 @@ var genSkeletonStyle = function genSkeletonStyle(config) {
83
89
  padding: '12px 6px',
84
90
  borderRadius: '8px'
85
91
  }), "".concat(componentCls, "-table-header"), {
86
- backgroundColor: 'lightgrey'
92
+ backgroundColor: token.colorFillTertiary
87
93
  }), _defineProperty(_defineProperty(_defineProperty(_$concat6, "".concat(componentCls, "-table-action"), {
88
94
  width: '200px',
89
95
  display: 'grid',
@@ -96,7 +102,7 @@ var genSkeletonStyle = function genSkeletonStyle(config) {
96
102
  }), "".concat(componentCls, "-card"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-card-content"), _defineProperty(_defineProperty({
97
103
  display: 'flex',
98
104
  gap: '16px',
99
- border: '2px solid #f0f2f5',
105
+ border: JSkeletonCardBorder,
100
106
  borderRadius: '8px',
101
107
  padding: '24px',
102
108
  marginBottom: '16px'
@@ -11,7 +11,7 @@ var genTitleStyle = function genTitleStyle(config) {
11
11
  }, "".concat(componentCls, "-content"), {
12
12
  position: 'relative',
13
13
  paddingLeft: '10px',
14
- color: 'rgba(0, 0, 0, 0.8)',
14
+ color: token.colorTextHeading,
15
15
  fontWeight: 600,
16
16
  lineHeight: 1,
17
17
  '&::before': {
@@ -20,7 +20,7 @@ var genTitleStyle = function genTitleStyle(config) {
20
20
  left: 0,
21
21
  width: 4,
22
22
  height: '100%',
23
- background: '#1890ff',
23
+ background: token.colorPrimary,
24
24
  borderRadius: '0 3px 3px 0',
25
25
  content: '""'
26
26
  }
@@ -1,5 +1,8 @@
1
- import genCompoentStyle from "../../style/styleRegister";
2
- var genVirtualTableStyle = function genVirtualTableStyle() {
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import genCompoentStyle from '../../style/styleRegister';
3
+ import { genTokenScrollbarStyle } from '../../style/scrollbar';
4
+ var genVirtualTableStyle = function genVirtualTableStyle(config) {
5
+ var token = config.token;
3
6
  return {
4
7
  '.virtual-table-wrapper': {
5
8
  display: 'flex',
@@ -17,11 +20,11 @@ var genVirtualTableStyle = function genVirtualTableStyle() {
17
20
  }
18
21
  }
19
22
  },
20
- '.virtual-table-body': {
23
+ '.virtual-table-body': _objectSpread({
21
24
  'overflow-y': 'auto',
22
25
  position: 'relative',
23
26
  'min-height': '100px'
24
- },
27
+ }, genTokenScrollbarStyle(token)),
25
28
  '.virtual-table-header-fixed': {
26
29
  // 位移的容器,提升位移动画性能
27
30
  'will-change': 'transform'