smart-admin-web 10.23.1 → 10.25.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.
- package/dist/api/index.d.ts +20 -1
- package/dist/api/index.js +23 -8
- package/dist/api/index.js.map +1 -1
- package/dist/api/schema.d.ts +321 -2
- package/dist/components/OrgTreeSelect/index.vue.js +32 -20
- package/dist/components/OrgTreeSelect/index.vue.js.map +1 -1
- package/dist/components/RoleSelect/index.vue.js +12 -14
- package/dist/components/RoleSelect/index.vue.js.map +1 -1
- package/dist/components/UserPicker/index.vue.js +2 -2
- package/dist/components/UserPicker/index2.vue.js +179 -208
- package/dist/components/UserPicker/index2.vue.js.map +1 -1
- package/dist/components/UserSelect/index.vue.js +10 -10
- package/dist/components/UserSelect/index.vue.js.map +1 -1
- package/dist/createSmartAdmin.d.ts +2 -0
- package/dist/createSmartAdmin.js +41 -39
- package/dist/createSmartAdmin.js.map +1 -1
- package/dist/lib/runtime.js +1 -1
- package/dist/locales/en-US.d.ts +3 -2
- package/dist/locales/en-US.js +5 -3
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/zh-CN.d.ts +3 -2
- package/dist/locales/zh-CN.js +5 -3
- package/dist/locales/zh-CN.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/naive-theme.js +152 -136
- package/dist/theme/naive-theme.js.map +1 -1
- package/dist/types/api.d.ts +22 -0
- package/dist/types/api.js.map +1 -1
- package/dist/views/system/user/index.vue.js +2 -2
- package/dist/views/system/user/index2.vue.js +266 -257
- package/dist/views/system/user/index2.vue.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { rgba as
|
|
1
|
+
import { rgba as W, mix as V } from "./mix.js";
|
|
2
2
|
import { deriveAccentTokens as K } from "./accentTokens.js";
|
|
3
3
|
const o = (c) => getComputedStyle(document.documentElement).getPropertyValue(c).trim();
|
|
4
4
|
function B(c) {
|
|
5
|
-
const
|
|
6
|
-
return { base: c, hover:
|
|
5
|
+
const u = V(c, "#FFFFFF", 0.12);
|
|
6
|
+
return { base: c, hover: u, pressed: V(c, "#000000", 0.12), suppl: u };
|
|
7
7
|
}
|
|
8
8
|
function Y(c) {
|
|
9
|
-
const { dark:
|
|
10
|
-
borderRadius:
|
|
11
|
-
color:
|
|
12
|
-
colorActive:
|
|
13
|
-
colorDisabled:
|
|
14
|
-
border: `1px solid ${
|
|
9
|
+
const { dark: u } = c, j = K(c.accent, u), { signal: t, acc: e, onAcc: g, hover: L, pressed: q, activeFg: h, linkFg: x, ring: p } = j, F = B(o("--ok")), T = B(o("--warn")), f = B(o("--err")), w = B(o("--info")), r = o("--text-1"), i = o("--text-2"), l = o("--text-3"), R = o("--text-4"), v = o("--border"), d = o("--separator"), J = o("--hairline"), y = o("--hairline-strong"), E = o("--tooltip-bg"), A = o("--glass-strong"), n = o("--fill"), P = o("--fill-strong"), C = o("--hover"), m = o("--pressed"), b = o("--input"), $ = o("--input-disabled"), s = o("--bg-card"), a = o("--bg-elevated"), G = o("--seg-track"), N = o("--seg-thumb"), z = o("--shadow-1"), M = o("--shadow-2"), O = o("--shadow-3"), I = o("--th-bg"), S = o("--th-bg-hover"), k = o("--td-bg-hover"), H = o("--radius-md"), Q = {
|
|
10
|
+
borderRadius: H,
|
|
11
|
+
color: b,
|
|
12
|
+
colorActive: b,
|
|
13
|
+
colorDisabled: $,
|
|
14
|
+
border: `1px solid ${v}`,
|
|
15
15
|
borderHover: `1px solid ${o("--select-border-hover")}`,
|
|
16
16
|
borderActive: `1px solid ${t}`,
|
|
17
17
|
borderFocus: `1px solid ${t}`,
|
|
18
|
-
boxShadowActive:
|
|
19
|
-
boxShadowFocus:
|
|
20
|
-
},
|
|
18
|
+
boxShadowActive: p,
|
|
19
|
+
boxShadowFocus: p
|
|
20
|
+
}, D = {
|
|
21
21
|
borderRadius: o("--radius-xs"),
|
|
22
|
-
boxShadowFocus:
|
|
22
|
+
boxShadowFocus: p,
|
|
23
23
|
checkMarkColor: "#FFFFFF",
|
|
24
24
|
colorChecked: e,
|
|
25
25
|
borderChecked: `1px solid ${e}`,
|
|
26
26
|
colorIndeterminate: e,
|
|
27
27
|
borderIndeterminate: `1px solid ${e}`,
|
|
28
|
-
border: `1px solid ${
|
|
29
|
-
color:
|
|
28
|
+
border: `1px solid ${v}`,
|
|
29
|
+
color: b
|
|
30
30
|
};
|
|
31
31
|
return {
|
|
32
32
|
common: {
|
|
33
33
|
primaryColor: e,
|
|
34
|
-
primaryColorHover:
|
|
35
|
-
primaryColorPressed:
|
|
36
|
-
primaryColorSuppl:
|
|
37
|
-
successColor:
|
|
38
|
-
successColorHover:
|
|
39
|
-
successColorPressed:
|
|
40
|
-
successColorSuppl:
|
|
41
|
-
warningColor:
|
|
42
|
-
warningColorHover:
|
|
43
|
-
warningColorPressed:
|
|
44
|
-
warningColorSuppl:
|
|
45
|
-
errorColor:
|
|
46
|
-
errorColorHover:
|
|
47
|
-
errorColorPressed:
|
|
48
|
-
errorColorSuppl:
|
|
49
|
-
infoColor:
|
|
50
|
-
infoColorHover:
|
|
51
|
-
infoColorPressed:
|
|
52
|
-
infoColorSuppl:
|
|
34
|
+
primaryColorHover: L,
|
|
35
|
+
primaryColorPressed: q,
|
|
36
|
+
primaryColorSuppl: L,
|
|
37
|
+
successColor: F.base,
|
|
38
|
+
successColorHover: F.hover,
|
|
39
|
+
successColorPressed: F.pressed,
|
|
40
|
+
successColorSuppl: F.suppl,
|
|
41
|
+
warningColor: T.base,
|
|
42
|
+
warningColorHover: T.hover,
|
|
43
|
+
warningColorPressed: T.pressed,
|
|
44
|
+
warningColorSuppl: T.suppl,
|
|
45
|
+
errorColor: f.base,
|
|
46
|
+
errorColorHover: f.hover,
|
|
47
|
+
errorColorPressed: f.pressed,
|
|
48
|
+
errorColorSuppl: f.suppl,
|
|
49
|
+
infoColor: w.base,
|
|
50
|
+
infoColorHover: w.hover,
|
|
51
|
+
infoColorPressed: w.pressed,
|
|
52
|
+
infoColorSuppl: w.suppl,
|
|
53
53
|
bodyColor: o("--bg-app"),
|
|
54
54
|
cardColor: o("--bg-card-glass"),
|
|
55
55
|
tableColor: "transparent",
|
|
@@ -60,22 +60,22 @@ function Y(c) {
|
|
|
60
60
|
textColor2: i,
|
|
61
61
|
textColor3: l,
|
|
62
62
|
placeholderColor: l,
|
|
63
|
-
textColorDisabled:
|
|
64
|
-
borderColor:
|
|
63
|
+
textColorDisabled: R,
|
|
64
|
+
borderColor: v,
|
|
65
65
|
dividerColor: d,
|
|
66
66
|
// 两者同色会让禁用框和可填框长一个样,操作员分不清哪里能输入,必须走不同令牌。
|
|
67
67
|
// 这两个 common 变量流向 Input 与 InternalSelection,
|
|
68
68
|
// 即 NInput / NInputNumber / NSelect / NDatePicker / NCascader 等全部输入类组件。
|
|
69
|
-
inputColor:
|
|
70
|
-
inputColorDisabled:
|
|
69
|
+
inputColor: b,
|
|
70
|
+
inputColorDisabled: $,
|
|
71
71
|
actionColor: n,
|
|
72
72
|
tableHeaderColor: "transparent",
|
|
73
|
-
hoverColor:
|
|
74
|
-
pressedColor:
|
|
75
|
-
closeColorHover:
|
|
76
|
-
closeColorPressed:
|
|
73
|
+
hoverColor: C,
|
|
74
|
+
pressedColor: m,
|
|
75
|
+
closeColorHover: C,
|
|
76
|
+
closeColorPressed: m,
|
|
77
77
|
clearColor: l,
|
|
78
|
-
borderRadius:
|
|
78
|
+
borderRadius: H,
|
|
79
79
|
borderRadiusSmall: o("--radius-sm"),
|
|
80
80
|
fontFamily: o("--font"),
|
|
81
81
|
fontFamilyMono: o("--font-mono"),
|
|
@@ -93,14 +93,14 @@ function Y(c) {
|
|
|
93
93
|
heightMedium: "30px",
|
|
94
94
|
heightLarge: "42px",
|
|
95
95
|
heightHuge: "46px",
|
|
96
|
-
boxShadow1:
|
|
97
|
-
boxShadow2:
|
|
98
|
-
boxShadow3:
|
|
96
|
+
boxShadow1: z,
|
|
97
|
+
boxShadow2: M,
|
|
98
|
+
boxShadow3: O,
|
|
99
99
|
cubicBezierEaseInOut: "cubic-bezier(.2, .8, .2, 1)"
|
|
100
100
|
},
|
|
101
101
|
Button: {
|
|
102
102
|
fontWeight: "500",
|
|
103
|
-
borderRadiusMedium:
|
|
103
|
+
borderRadiusMedium: H,
|
|
104
104
|
borderRadiusSmall: "7px",
|
|
105
105
|
borderRadiusLarge: "12px",
|
|
106
106
|
fontSizeLarge: "15px",
|
|
@@ -109,53 +109,53 @@ function Y(c) {
|
|
|
109
109
|
rippleDuration: "0s",
|
|
110
110
|
paddingMedium: "0 12px",
|
|
111
111
|
paddingSmall: "0 10px",
|
|
112
|
-
textColorPrimary:
|
|
113
|
-
textColorHoverPrimary:
|
|
114
|
-
textColorPressedPrimary:
|
|
115
|
-
textColorFocusPrimary:
|
|
116
|
-
textColorDisabledPrimary:
|
|
112
|
+
textColorPrimary: g,
|
|
113
|
+
textColorHoverPrimary: g,
|
|
114
|
+
textColorPressedPrimary: g,
|
|
115
|
+
textColorFocusPrimary: g,
|
|
116
|
+
textColorDisabledPrimary: g,
|
|
117
117
|
colorSecondary: n,
|
|
118
|
-
colorSecondaryHover:
|
|
119
|
-
colorSecondaryPressed:
|
|
118
|
+
colorSecondaryHover: P,
|
|
119
|
+
colorSecondaryPressed: m,
|
|
120
120
|
// 没写 type 的默认款(库里的「搜索」「更多」)渲染成与 secondary 同款:中性灰底、无描边
|
|
121
121
|
color: n,
|
|
122
|
-
colorHover:
|
|
123
|
-
colorPressed:
|
|
122
|
+
colorHover: P,
|
|
123
|
+
colorPressed: m,
|
|
124
124
|
colorFocus: n,
|
|
125
125
|
border: "1px solid transparent",
|
|
126
126
|
borderHover: "1px solid transparent",
|
|
127
127
|
borderPressed: "1px solid transparent",
|
|
128
128
|
borderFocus: `1px solid ${t}`,
|
|
129
129
|
// 文字 / 行内操作按钮(详情、编辑):浅色 / 深色统一用 linkFg
|
|
130
|
-
textColorTextPrimary:
|
|
131
|
-
textColorTextHoverPrimary:
|
|
132
|
-
textColorTextPressedPrimary:
|
|
133
|
-
textColorTextFocusPrimary:
|
|
134
|
-
textColorGhostPrimary:
|
|
135
|
-
textColorGhostHoverPrimary:
|
|
136
|
-
textColorGhostPressedPrimary:
|
|
137
|
-
textColorGhostFocusPrimary:
|
|
138
|
-
colorQuaternaryHover:
|
|
139
|
-
colorQuaternaryPressed:
|
|
140
|
-
colorTertiaryHover:
|
|
141
|
-
colorTertiaryPressed:
|
|
130
|
+
textColorTextPrimary: x,
|
|
131
|
+
textColorTextHoverPrimary: x,
|
|
132
|
+
textColorTextPressedPrimary: x,
|
|
133
|
+
textColorTextFocusPrimary: x,
|
|
134
|
+
textColorGhostPrimary: x,
|
|
135
|
+
textColorGhostHoverPrimary: x,
|
|
136
|
+
textColorGhostPressedPrimary: x,
|
|
137
|
+
textColorGhostFocusPrimary: x,
|
|
138
|
+
colorQuaternaryHover: C,
|
|
139
|
+
colorQuaternaryPressed: m,
|
|
140
|
+
colorTertiaryHover: C,
|
|
141
|
+
colorTertiaryPressed: m
|
|
142
142
|
},
|
|
143
143
|
Input: {
|
|
144
|
-
borderRadius:
|
|
145
|
-
color:
|
|
146
|
-
colorDisabled:
|
|
147
|
-
colorFocus:
|
|
148
|
-
border: `1px solid ${
|
|
144
|
+
borderRadius: H,
|
|
145
|
+
color: b,
|
|
146
|
+
colorDisabled: $,
|
|
147
|
+
colorFocus: b,
|
|
148
|
+
border: `1px solid ${v}`,
|
|
149
149
|
borderHover: `1px solid ${o("--input-border-hover")}`,
|
|
150
150
|
borderFocus: `1px solid ${t}`,
|
|
151
|
-
boxShadowFocus:
|
|
151
|
+
boxShadowFocus: p,
|
|
152
152
|
heightLarge: "42px",
|
|
153
153
|
fontSizeLarge: "15px",
|
|
154
154
|
caretColor: t
|
|
155
155
|
},
|
|
156
156
|
Select: {
|
|
157
157
|
peers: {
|
|
158
|
-
InternalSelection:
|
|
158
|
+
InternalSelection: Q,
|
|
159
159
|
InternalSelectMenu: {
|
|
160
160
|
borderRadius: "12px",
|
|
161
161
|
optionHeightMedium: "30px",
|
|
@@ -164,22 +164,22 @@ function Y(c) {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
|
-
TreeSelect: { peers: { InternalSelection:
|
|
167
|
+
TreeSelect: { peers: { InternalSelection: Q } },
|
|
168
168
|
DatePicker: {
|
|
169
169
|
peers: {
|
|
170
170
|
Input: {
|
|
171
|
-
borderRadius:
|
|
172
|
-
color:
|
|
171
|
+
borderRadius: H,
|
|
172
|
+
color: b,
|
|
173
173
|
borderFocus: `1px solid ${t}`,
|
|
174
|
-
boxShadowFocus:
|
|
174
|
+
boxShadowFocus: p
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
InputNumber: {
|
|
179
|
-
peers: { Input: { color:
|
|
179
|
+
peers: { Input: { color: b, borderFocus: `1px solid ${t}`, boxShadowFocus: p } }
|
|
180
180
|
},
|
|
181
181
|
Card: {
|
|
182
|
-
color:
|
|
182
|
+
color: s,
|
|
183
183
|
colorEmbedded: n,
|
|
184
184
|
borderColor: "transparent",
|
|
185
185
|
borderRadius: o("--radius-lg"),
|
|
@@ -192,14 +192,30 @@ function Y(c) {
|
|
|
192
192
|
actionColor: n
|
|
193
193
|
},
|
|
194
194
|
DataTable: {
|
|
195
|
-
thColor:
|
|
196
|
-
thColorHover:
|
|
197
|
-
thColorSorting:
|
|
195
|
+
thColor: I,
|
|
196
|
+
thColorHover: S,
|
|
197
|
+
thColorSorting: S,
|
|
198
198
|
// 内容层不透明:行底取实色卡片色(固定列 sticky 叠在别的列上不会透底),不加斑马纹(tdColorStriped 同色)
|
|
199
|
-
tdColor:
|
|
200
|
-
tdColorHover:
|
|
201
|
-
tdColorStriped:
|
|
202
|
-
tdColorSorting:
|
|
199
|
+
tdColor: s,
|
|
200
|
+
tdColorHover: k,
|
|
201
|
+
tdColorStriped: s,
|
|
202
|
+
tdColorSorting: s,
|
|
203
|
+
// 弹窗 / 抽屉 / 浮层里的表格(Naive 的 insideModal 命中 .n-modal 与 .n-drawer,insidePopover 命中 .n-popover)改取下面两套变体,默认由半透明的 modalColor / popoverColor(= --bg-elevated)派生;
|
|
204
|
+
// 固定列叠在别的列上,底色有一丝透明就会透出底下滚过的列的字,所以与上面的非 Modal 变体同值,都是实色。
|
|
205
|
+
tdColorModal: s,
|
|
206
|
+
tdColorHoverModal: k,
|
|
207
|
+
tdColorSortingModal: s,
|
|
208
|
+
tdColorStripedModal: s,
|
|
209
|
+
thColorModal: I,
|
|
210
|
+
thColorHoverModal: S,
|
|
211
|
+
thColorSortingModal: S,
|
|
212
|
+
tdColorPopover: s,
|
|
213
|
+
tdColorHoverPopover: k,
|
|
214
|
+
tdColorSortingPopover: s,
|
|
215
|
+
tdColorStripedPopover: s,
|
|
216
|
+
thColorPopover: I,
|
|
217
|
+
thColorHoverPopover: S,
|
|
218
|
+
thColorSortingPopover: S,
|
|
203
219
|
thTextColor: i,
|
|
204
220
|
thFontWeight: "600",
|
|
205
221
|
thIconColor: l,
|
|
@@ -212,16 +228,16 @@ function Y(c) {
|
|
|
212
228
|
thPaddingSmall: "6px 10px",
|
|
213
229
|
tdPaddingSmall: "4px 10px",
|
|
214
230
|
fontSizeSmall: "14px",
|
|
215
|
-
peers: { Checkbox:
|
|
231
|
+
peers: { Checkbox: D }
|
|
216
232
|
},
|
|
217
233
|
Menu: {
|
|
218
|
-
borderRadius:
|
|
234
|
+
borderRadius: H,
|
|
219
235
|
itemHeight: "34px",
|
|
220
236
|
fontSize: "15px",
|
|
221
|
-
itemColorHover:
|
|
222
|
-
itemColorActive:
|
|
223
|
-
itemColorActiveHover:
|
|
224
|
-
itemColorActiveCollapsed:
|
|
237
|
+
itemColorHover: C,
|
|
238
|
+
itemColorActive: W(t, u ? 0.16 : 0.09),
|
|
239
|
+
itemColorActiveHover: W(t, u ? 0.2 : 0.12),
|
|
240
|
+
itemColorActiveCollapsed: W(t, u ? 0.16 : 0.09),
|
|
225
241
|
// 侧栏标签用主文字色(macOS 侧栏就是 label 主色,不是次级灰);选中 / 悬停靠底色区分
|
|
226
242
|
itemTextColor: r,
|
|
227
243
|
itemTextColorHover: r,
|
|
@@ -230,25 +246,25 @@ function Y(c) {
|
|
|
230
246
|
itemIconColor: r,
|
|
231
247
|
itemIconColorHover: r,
|
|
232
248
|
itemIconColorCollapsed: r,
|
|
233
|
-
itemTextColorActive:
|
|
234
|
-
itemIconColorActive:
|
|
235
|
-
itemTextColorActiveHover:
|
|
236
|
-
itemIconColorActiveHover:
|
|
249
|
+
itemTextColorActive: h,
|
|
250
|
+
itemIconColorActive: h,
|
|
251
|
+
itemTextColorActiveHover: h,
|
|
252
|
+
itemIconColorActiveHover: h,
|
|
237
253
|
itemTextColorChildActive: r,
|
|
238
254
|
itemIconColorChildActive: r,
|
|
239
255
|
itemTextColorChildActiveHover: r,
|
|
240
256
|
itemIconColorChildActiveHover: r,
|
|
241
257
|
arrowColor: l,
|
|
242
258
|
arrowColorHover: i,
|
|
243
|
-
arrowColorActive:
|
|
244
|
-
arrowColorActiveHover:
|
|
259
|
+
arrowColorActive: h,
|
|
260
|
+
arrowColorActiveHover: h,
|
|
245
261
|
arrowColorChildActive: i,
|
|
246
262
|
arrowColorChildActiveHover: r,
|
|
247
263
|
groupTextColor: l
|
|
248
264
|
},
|
|
249
265
|
Tabs: {
|
|
250
|
-
colorSegment:
|
|
251
|
-
tabColorSegment:
|
|
266
|
+
colorSegment: G,
|
|
267
|
+
tabColorSegment: N,
|
|
252
268
|
tabBorderRadius: "8px",
|
|
253
269
|
tabTextColorSegment: i,
|
|
254
270
|
tabTextColorActiveSegment: r,
|
|
@@ -257,7 +273,7 @@ function Y(c) {
|
|
|
257
273
|
tabColor: "transparent",
|
|
258
274
|
tabBorderColor: "transparent",
|
|
259
275
|
tabTextColorCard: l,
|
|
260
|
-
tabTextColorActiveCard:
|
|
276
|
+
tabTextColorActiveCard: h,
|
|
261
277
|
tabTextColorHoverCard: r,
|
|
262
278
|
tabTextColorActiveLine: r,
|
|
263
279
|
tabTextColorHoverLine: r,
|
|
@@ -265,8 +281,8 @@ function Y(c) {
|
|
|
265
281
|
},
|
|
266
282
|
Radio: {
|
|
267
283
|
buttonBorderRadius: "8px",
|
|
268
|
-
buttonColor:
|
|
269
|
-
buttonColorActive:
|
|
284
|
+
buttonColor: G,
|
|
285
|
+
buttonColorActive: N,
|
|
270
286
|
buttonBorderColor: "transparent",
|
|
271
287
|
buttonBorderColorActive: "transparent",
|
|
272
288
|
buttonBorderColorHover: "transparent",
|
|
@@ -275,23 +291,23 @@ function Y(c) {
|
|
|
275
291
|
buttonTextColorHover: r,
|
|
276
292
|
buttonBoxShadow: "none",
|
|
277
293
|
buttonBoxShadowHover: "none",
|
|
278
|
-
buttonBoxShadowFocus:
|
|
294
|
+
buttonBoxShadowFocus: p,
|
|
279
295
|
dotColorActive: e,
|
|
280
296
|
boxShadowActive: `inset 0 0 0 1px ${e}`,
|
|
281
|
-
boxShadowFocus:
|
|
297
|
+
boxShadowFocus: p
|
|
282
298
|
},
|
|
283
|
-
Checkbox:
|
|
299
|
+
Checkbox: D,
|
|
284
300
|
Tree: {
|
|
285
301
|
nodeBorderRadius: "8px",
|
|
286
|
-
nodeColorHover:
|
|
287
|
-
nodeColorActive:
|
|
302
|
+
nodeColorHover: C,
|
|
303
|
+
nodeColorActive: A,
|
|
288
304
|
nodeHeight: "30px",
|
|
289
|
-
peers: { Checkbox:
|
|
305
|
+
peers: { Checkbox: D }
|
|
290
306
|
},
|
|
291
307
|
Switch: {
|
|
292
308
|
railColor: o("--switch-off"),
|
|
293
309
|
railColorActive: e,
|
|
294
|
-
boxShadowFocus:
|
|
310
|
+
boxShadowFocus: p,
|
|
295
311
|
railHeightMedium: "24px",
|
|
296
312
|
railWidthMedium: "42px",
|
|
297
313
|
buttonHeightMedium: "20px",
|
|
@@ -309,11 +325,11 @@ function Y(c) {
|
|
|
309
325
|
color: n,
|
|
310
326
|
textColor: i,
|
|
311
327
|
fontWeightStrong: "500",
|
|
312
|
-
colorPrimary:
|
|
328
|
+
colorPrimary: A,
|
|
313
329
|
textColorPrimary: r,
|
|
314
|
-
borderPrimary: `1px solid ${
|
|
330
|
+
borderPrimary: `1px solid ${y}`
|
|
315
331
|
},
|
|
316
|
-
List: { color: "transparent", colorHover:
|
|
332
|
+
List: { color: "transparent", colorHover: C, borderColor: d },
|
|
317
333
|
Dialog: {
|
|
318
334
|
borderRadius: o("--radius-xl"),
|
|
319
335
|
color: a,
|
|
@@ -321,7 +337,7 @@ function Y(c) {
|
|
|
321
337
|
titleFontSize: "17px",
|
|
322
338
|
titleFontWeight: "600"
|
|
323
339
|
},
|
|
324
|
-
Modal: { color: a, boxShadow:
|
|
340
|
+
Modal: { color: a, boxShadow: O },
|
|
325
341
|
Drawer: {
|
|
326
342
|
color: a,
|
|
327
343
|
headerPadding: "18px 24px",
|
|
@@ -332,13 +348,13 @@ function Y(c) {
|
|
|
332
348
|
headerBorderBottom: `1px solid ${d}`,
|
|
333
349
|
footerBorderTop: `1px solid ${d}`
|
|
334
350
|
},
|
|
335
|
-
Popover: { color: a, borderRadius: o("--radius-lg"), boxShadow:
|
|
351
|
+
Popover: { color: a, borderRadius: o("--radius-lg"), boxShadow: M },
|
|
336
352
|
Dropdown: {
|
|
337
353
|
color: a,
|
|
338
354
|
borderRadius: "12px",
|
|
339
355
|
padding: "5px",
|
|
340
356
|
optionHeightMedium: "30px",
|
|
341
|
-
optionColorHover:
|
|
357
|
+
optionColorHover: C,
|
|
342
358
|
dividerColor: d
|
|
343
359
|
},
|
|
344
360
|
// 提示气泡和下拉 / 弹层同一套浮层表面,随亮暗主题走(亮色近白底深字,暗色深蓝底亮字),不做亮暗都黑的特例。
|
|
@@ -346,37 +362,37 @@ function Y(c) {
|
|
|
346
362
|
// 压过 Tooltip 自带的值,所以同一套要在 peers.Popover 里再写一遍(它在合并链最后,只对 Tooltip 生效)。
|
|
347
363
|
// 阴影用描边 + 卡片级的轻阴影:气泡很小,弹层那种大范围投影会显得过重。
|
|
348
364
|
Tooltip: {
|
|
349
|
-
color:
|
|
365
|
+
color: E,
|
|
350
366
|
textColor: r,
|
|
351
367
|
borderRadius: "8px",
|
|
352
368
|
padding: "5px 9px",
|
|
353
|
-
boxShadow: `0 0 0 1px ${
|
|
369
|
+
boxShadow: `0 0 0 1px ${y}, ${z}`,
|
|
354
370
|
peers: {
|
|
355
371
|
Popover: {
|
|
356
|
-
color:
|
|
372
|
+
color: E,
|
|
357
373
|
textColor: r,
|
|
358
374
|
borderRadius: "8px",
|
|
359
375
|
padding: "5px 9px",
|
|
360
|
-
boxShadow: `0 0 0 1px ${
|
|
376
|
+
boxShadow: `0 0 0 1px ${y}, ${z}`
|
|
361
377
|
}
|
|
362
378
|
}
|
|
363
379
|
},
|
|
364
|
-
Message: { borderRadius: "12px", color: a, padding: "10px 16px", boxShadow:
|
|
365
|
-
Notification: { borderRadius: "16px", color: a, boxShadow:
|
|
380
|
+
Message: { borderRadius: "12px", color: a, padding: "10px 16px", boxShadow: M },
|
|
381
|
+
Notification: { borderRadius: "16px", color: a, boxShadow: M },
|
|
366
382
|
Alert: {
|
|
367
383
|
borderRadius: "10px",
|
|
368
384
|
colorInfo: n,
|
|
369
|
-
borderInfo: `1px solid ${
|
|
385
|
+
borderInfo: `1px solid ${J}`,
|
|
370
386
|
iconColorInfo: i,
|
|
371
387
|
titleTextColorInfo: r,
|
|
372
388
|
contentTextColorInfo: i
|
|
373
389
|
},
|
|
374
390
|
Pagination: {
|
|
375
391
|
itemBorderRadius: "8px",
|
|
376
|
-
itemColorActive:
|
|
392
|
+
itemColorActive: A,
|
|
377
393
|
itemTextColorActive: r,
|
|
378
|
-
itemBorderActive: `1px solid ${
|
|
379
|
-
itemColorActiveHover:
|
|
394
|
+
itemBorderActive: `1px solid ${y}`,
|
|
395
|
+
itemColorActiveHover: A
|
|
380
396
|
},
|
|
381
397
|
Statistic: {
|
|
382
398
|
valueFontSize: "26px",
|
|
@@ -391,30 +407,30 @@ function Y(c) {
|
|
|
391
407
|
tdColor: "transparent"
|
|
392
408
|
},
|
|
393
409
|
Progress: { railColor: n, fillColor: e },
|
|
394
|
-
Breadcrumb: { itemTextColor: l, itemTextColorActive: r, separatorColor:
|
|
410
|
+
Breadcrumb: { itemTextColor: l, itemTextColorActive: r, separatorColor: R },
|
|
395
411
|
Slider: {
|
|
396
412
|
fillColor: e,
|
|
397
413
|
fillColorHover: e,
|
|
398
|
-
railColor:
|
|
399
|
-
railColorHover:
|
|
414
|
+
railColor: P,
|
|
415
|
+
railColorHover: P,
|
|
400
416
|
dotBorderActive: `2px solid ${e}`
|
|
401
417
|
},
|
|
402
418
|
Steps: {
|
|
403
419
|
indicatorColorProcess: e,
|
|
404
|
-
indicatorTextColorProcess:
|
|
420
|
+
indicatorTextColorProcess: g,
|
|
405
421
|
indicatorBorderColorProcess: e,
|
|
406
422
|
indicatorColorFinish: "transparent",
|
|
407
|
-
indicatorBorderColorFinish:
|
|
423
|
+
indicatorBorderColorFinish: v,
|
|
408
424
|
indicatorTextColorFinish: i,
|
|
409
425
|
splitorColorFinish: l,
|
|
410
426
|
splitorColorProcess: d,
|
|
411
427
|
splitorColorWait: d
|
|
412
428
|
},
|
|
413
|
-
Empty: { textColor: l, iconColor:
|
|
429
|
+
Empty: { textColor: l, iconColor: R },
|
|
414
430
|
Divider: { color: d },
|
|
415
|
-
Timeline: { circleBorder: `2px solid ${
|
|
431
|
+
Timeline: { circleBorder: `2px solid ${v}`, titleFontWeight: "500", lineColor: d },
|
|
416
432
|
Badge: { color: o("--badge-bg") },
|
|
417
|
-
Scrollbar: { color:
|
|
433
|
+
Scrollbar: { color: P, colorHover: v },
|
|
418
434
|
Code: { textColor: r }
|
|
419
435
|
};
|
|
420
436
|
}
|