@yyp92-cli/template-react-pc 2.1.0 → 2.2.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/package.json +4 -1
- package/CHANGELOG.md +0 -55
- package/template/.env.development +0 -5
- package/template/.env.production +0 -4
- package/template/.env.test +0 -4
- package/template/.eslintrc.cjs +0 -18
- package/template/README.md +0 -15
- package/template/index.html +0 -13
- package/template/package.json +0 -42
- package/template/pnpm-lock.yaml +0 -3570
- package/template/public/vite.svg +0 -1
- package/template/src/antdTheme/darkTheme.ts +0 -285
- package/template/src/antdTheme/lightTheme.ts +0 -286
- package/template/src/app.scss +0 -29
- package/template/src/app.tsx +0 -14
- package/template/src/assets/iconfont/demo.css +0 -539
- package/template/src/assets/iconfont/demo_index.html +0 -211
- package/template/src/assets/iconfont/iconfont.css +0 -19
- package/template/src/assets/iconfont/iconfont.js +0 -1
- package/template/src/assets/iconfont/iconfont.json +0 -16
- package/template/src/assets/iconfont/iconfont.ttf +0 -0
- package/template/src/assets/iconfont/iconfont.woff +0 -0
- package/template/src/assets/iconfont/iconfont.woff2 +0 -0
- package/template/src/assets/react.svg +0 -1
- package/template/src/components/403/index.tsx +0 -22
- package/template/src/components/404/index.tsx +0 -24
- package/template/src/components/index.ts +0 -3
- package/template/src/components/layout/content/index.module.scss +0 -22
- package/template/src/components/layout/content/index.tsx +0 -109
- package/template/src/components/layout/footer/index.module.scss +0 -12
- package/template/src/components/layout/footer/index.tsx +0 -15
- package/template/src/components/layout/header/index.module.scss +0 -21
- package/template/src/components/layout/header/index.tsx +0 -115
- package/template/src/components/layout/index.module.scss +0 -8
- package/template/src/components/layout/index.tsx +0 -47
- package/template/src/components/layout/side/index.module.scss +0 -31
- package/template/src/components/layout/side/index.tsx +0 -109
- package/template/src/components/layout-horizontal/content/index.module.scss +0 -22
- package/template/src/components/layout-horizontal/content/index.tsx +0 -105
- package/template/src/components/layout-horizontal/footer/index.module.scss +0 -12
- package/template/src/components/layout-horizontal/footer/index.tsx +0 -15
- package/template/src/components/layout-horizontal/header/index.module.scss +0 -23
- package/template/src/components/layout-horizontal/header/index.tsx +0 -115
- package/template/src/components/layout-horizontal/index.module.scss +0 -8
- package/template/src/components/layout-horizontal/index.tsx +0 -48
- package/template/src/components/layout-horizontal/side/index.module.scss +0 -32
- package/template/src/components/layout-horizontal/side/index.tsx +0 -104
- package/template/src/components/login/index.module.scss +0 -23
- package/template/src/components/login/index.tsx +0 -133
- package/template/src/global/constants.ts +0 -5
- package/template/src/pages/home/index.module.scss +0 -0
- package/template/src/pages/home/index.tsx +0 -90
- package/template/src/router/router.tsx +0 -190
- package/template/src/service/api.ts +0 -9
- package/template/src/service/config.ts +0 -9
- package/template/src/service/index.ts +0 -1
- package/template/src/service/request/index.ts +0 -267
- package/template/src/service/request/type.ts +0 -5
- package/template/src/service/service.ts +0 -27
- package/template/src/store/antdToken.ts +0 -35
- package/template/src/store/login.ts +0 -38
- package/template/src/store/menus.ts +0 -30
- package/template/src/store/permission.ts +0 -30
- package/template/src/store/token.ts +0 -30
- package/template/src/theme/darkTheme.scss +0 -47
- package/template/src/theme/lightTheme.scss +0 -49
- package/template/src/utils/base64ToBlob.ts +0 -41
- package/template/src/utils/cache.ts +0 -44
- package/template/src/utils/changeTheme.ts +0 -14
- package/template/src/utils/download.ts +0 -45
- package/template/src/utils/filterMenu.ts +0 -34
- package/template/src/utils/index.ts +0 -5
- package/template/src/vite-env.d.ts +0 -5
- package/template/tsconfig.json +0 -45
- package/template/tsconfig.node.json +0 -10
- package/template/vite.config.ts +0 -49
package/template/public/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
const activeColor = '#3591F4'
|
|
2
|
-
const activeColor1 = 'rgba(53, 145, 244, 0.5)'
|
|
3
|
-
const activeColor2 = 'rgba(53, 145, 244, 0.8)'
|
|
4
|
-
const activeColor3 = 'rgba(53, 145, 244, 0.1)'
|
|
5
|
-
const successColor = '#0CAA43'
|
|
6
|
-
const successColor1 = 'rgba(12, 170, 67, 0.5)'
|
|
7
|
-
const successColor2 = 'rgba(12, 170, 67, 0.2)'
|
|
8
|
-
const warnColor = '#FFA00A'
|
|
9
|
-
const warnColor1 = 'rgba(255, 160, 10, 0.5)'
|
|
10
|
-
const warnColor2 = 'rgba(255, 160, 10, 0.2)'
|
|
11
|
-
const errorColor = '#F43835'
|
|
12
|
-
const errorColor1 = 'rgba(244, 56, 53, 0.5)'
|
|
13
|
-
const errorColor2 = 'rgba(244, 56, 53, 0.8)'
|
|
14
|
-
|
|
15
|
-
const bgColor = '#1C1C1C'
|
|
16
|
-
const bgGreyColor = '#161616'
|
|
17
|
-
const textColor = '#FFFFFF'
|
|
18
|
-
const textColor1 = '#898d97'
|
|
19
|
-
const textColor2 = '#FFFFFF'
|
|
20
|
-
const iconColor = '#898d97'
|
|
21
|
-
const borderColor = '#2A2A2D'
|
|
22
|
-
const fontSize12 = 12
|
|
23
|
-
const lineHeight12 = 1.5
|
|
24
|
-
const fontSize14 = 14
|
|
25
|
-
const lineHeight14 = 1.4286
|
|
26
|
-
const height = 36
|
|
27
|
-
|
|
28
|
-
export const darkToken = {
|
|
29
|
-
token: {
|
|
30
|
-
colorBgContainer: bgColor,
|
|
31
|
-
colorBgContainerDisabled: bgGreyColor,
|
|
32
|
-
colorBorder: borderColor,
|
|
33
|
-
colorSplit: borderColor,
|
|
34
|
-
colorText: textColor,
|
|
35
|
-
colorTextDescription: textColor1,
|
|
36
|
-
colorTextDisabled: textColor1,
|
|
37
|
-
colorTextLightSolid: textColor2,
|
|
38
|
-
colorTextPlaceholder: textColor1,
|
|
39
|
-
colorIcon: iconColor,
|
|
40
|
-
colorBgSolidHover: activeColor2,
|
|
41
|
-
colorTextQuaternary: iconColor,
|
|
42
|
-
|
|
43
|
-
colorPrimary: activeColor,
|
|
44
|
-
colorPrimaryActive: activeColor,
|
|
45
|
-
colorPrimaryHover: activeColor,
|
|
46
|
-
colorPrimaryText: activeColor,
|
|
47
|
-
colorPrimaryTextActive: activeColor,
|
|
48
|
-
colorPrimaryTextHover: activeColor,
|
|
49
|
-
|
|
50
|
-
colorLink: activeColor,
|
|
51
|
-
colorLinkActive: activeColor,
|
|
52
|
-
colorLinkHover: activeColor,
|
|
53
|
-
|
|
54
|
-
colorError: errorColor,
|
|
55
|
-
colorErrorActive: errorColor,
|
|
56
|
-
colorErrorHover: errorColor,
|
|
57
|
-
|
|
58
|
-
borderRadius: 4,
|
|
59
|
-
fontSize: fontSize14,
|
|
60
|
-
lineHeight: lineHeight14,
|
|
61
|
-
controlHeight: 32,
|
|
62
|
-
|
|
63
|
-
controlItemBgHover: bgGreyColor,
|
|
64
|
-
controlItemBgActiveHover: activeColor3,
|
|
65
|
-
controlItemBgActive: activeColor3,
|
|
66
|
-
},
|
|
67
|
-
components: {
|
|
68
|
-
Button: {
|
|
69
|
-
borderColorDisabled: borderColor,
|
|
70
|
-
contentFontSize: fontSize14,
|
|
71
|
-
contentLineHeight: lineHeight14,
|
|
72
|
-
dangerColor: bgColor,
|
|
73
|
-
dangerShadow: 'none',
|
|
74
|
-
defaultActiveBg: bgColor,
|
|
75
|
-
defaultActiveBorderColor: activeColor,
|
|
76
|
-
defaultActiveColor: activeColor,
|
|
77
|
-
defaultBg: bgColor,
|
|
78
|
-
defaultBorderColor: borderColor,
|
|
79
|
-
defaultColor: textColor,
|
|
80
|
-
defaultGhostBorderColor: bgColor,
|
|
81
|
-
defaultGhostColor: bgColor,
|
|
82
|
-
defaultHoverBg: bgColor,
|
|
83
|
-
defaultHoverBorderColor: activeColor,
|
|
84
|
-
defaultHoverColor: activeColor,
|
|
85
|
-
defaultShadow: 'none',
|
|
86
|
-
paddingBlock: 5,
|
|
87
|
-
paddingInline: 10,
|
|
88
|
-
primaryColor: textColor2,
|
|
89
|
-
primaryShadow: 'none',
|
|
90
|
-
textTextActiveColor: textColor,
|
|
91
|
-
textTextColor: textColor,
|
|
92
|
-
textTextHoverColor: textColor,
|
|
93
|
-
},
|
|
94
|
-
Dropdown: {
|
|
95
|
-
paddingBlock: 7,
|
|
96
|
-
padding: 0,
|
|
97
|
-
paddingXS: 0,
|
|
98
|
-
paddingXXS: 0,
|
|
99
|
-
controlPaddingHorizontal: 10
|
|
100
|
-
},
|
|
101
|
-
Menu: {
|
|
102
|
-
itemHeight: 40,
|
|
103
|
-
itemBg: bgColor,
|
|
104
|
-
itemColor: textColor,
|
|
105
|
-
itemHoverBg: bgGreyColor,
|
|
106
|
-
itemHoverColor: textColor,
|
|
107
|
-
itemSelectedColor: activeColor,
|
|
108
|
-
itemSelectedBg: activeColor3,
|
|
109
|
-
popupBg: bgColor,
|
|
110
|
-
horizontalItemHoverColor: activeColor,
|
|
111
|
-
horizontalItemSelectedBg: activeColor3,
|
|
112
|
-
horizontalItemSelectedColor: activeColor,
|
|
113
|
-
itemActiveBg: activeColor3,
|
|
114
|
-
itemMarginBlock: 4,
|
|
115
|
-
itemMarginInline: 0,
|
|
116
|
-
itemBorderRadius: 0,
|
|
117
|
-
itemPaddingInline: 16,
|
|
118
|
-
iconSize: 20,
|
|
119
|
-
iconMarginInlineEnd: 8,
|
|
120
|
-
dropdownWidth: 200
|
|
121
|
-
},
|
|
122
|
-
Form: {
|
|
123
|
-
labelColor: textColor,
|
|
124
|
-
labelFontSize: fontSize14,
|
|
125
|
-
labelHeight: height,
|
|
126
|
-
labelRequiredMarkColor: errorColor,
|
|
127
|
-
verticalLabelPadding: '0 0 8px',
|
|
128
|
-
itemMarginBottom: 12,
|
|
129
|
-
colorBorder: borderColor,
|
|
130
|
-
colorError: errorColor,
|
|
131
|
-
colorPrimary: activeColor,
|
|
132
|
-
colorSuccess: successColor,
|
|
133
|
-
colorWarning: warnColor,
|
|
134
|
-
colorText: textColor,
|
|
135
|
-
colorTextDescription: textColor1,
|
|
136
|
-
controlHeight: height,
|
|
137
|
-
fontSize: fontSize14,
|
|
138
|
-
lineHeight: lineHeight14,
|
|
139
|
-
},
|
|
140
|
-
Input: {
|
|
141
|
-
activeBg: bgColor,
|
|
142
|
-
activeBorderColor: activeColor,
|
|
143
|
-
activeShadow: 'none',
|
|
144
|
-
hoverBg: bgColor,
|
|
145
|
-
hoverBorderColor: activeColor,
|
|
146
|
-
inputFontSize: fontSize14,
|
|
147
|
-
paddingBlock: 6,
|
|
148
|
-
paddingInline: 10,
|
|
149
|
-
controlHeight: height,
|
|
150
|
-
},
|
|
151
|
-
InputNumber: {
|
|
152
|
-
activeBg: bgColor,
|
|
153
|
-
activeBorderColor: activeColor,
|
|
154
|
-
activeShadow: 'none',
|
|
155
|
-
handleBorderColor: borderColor,
|
|
156
|
-
handleHoverColor: activeColor,
|
|
157
|
-
hoverBg: bgColor,
|
|
158
|
-
hoverBorderColor: activeColor,
|
|
159
|
-
inputFontSize: 14,
|
|
160
|
-
paddingBlock: 7,
|
|
161
|
-
paddingInline: 10,
|
|
162
|
-
controlHeight: height,
|
|
163
|
-
addonBg: bgColor,
|
|
164
|
-
},
|
|
165
|
-
Radio: {
|
|
166
|
-
buttonBg: bgColor,
|
|
167
|
-
buttonCheckedBg: bgColor,
|
|
168
|
-
buttonCheckedBgDisabled: bgGreyColor,
|
|
169
|
-
buttonCheckedColorDisabled: textColor1,
|
|
170
|
-
buttonColor: textColor,
|
|
171
|
-
radioSize: 18,
|
|
172
|
-
dotSize: 8,
|
|
173
|
-
buttonSolidCheckedActiveBg: activeColor,
|
|
174
|
-
buttonSolidCheckedBg: activeColor,
|
|
175
|
-
buttonSolidCheckedColor: textColor2,
|
|
176
|
-
buttonSolidCheckedHoverBg: activeColor,
|
|
177
|
-
dotColorDisabled: iconColor,
|
|
178
|
-
},
|
|
179
|
-
Switch: {
|
|
180
|
-
handleBg: bgColor,
|
|
181
|
-
handleShadow: 'unset',
|
|
182
|
-
handleSize: 18,
|
|
183
|
-
trackMinWidth: 45,
|
|
184
|
-
trackHeight: 22,
|
|
185
|
-
colorTextQuaternary: iconColor,
|
|
186
|
-
colorTextTertiary: iconColor,
|
|
187
|
-
},
|
|
188
|
-
Select: {
|
|
189
|
-
activeBorderColor: activeColor,
|
|
190
|
-
activeOutlineColor: 'none',
|
|
191
|
-
clearBg: bgColor,
|
|
192
|
-
hoverBorderColor: activeColor,
|
|
193
|
-
multipleItemBg: bgGreyColor,
|
|
194
|
-
multipleItemBorderColor: 'transparent',
|
|
195
|
-
multipleItemBorderColorDisabled: 'transparent',
|
|
196
|
-
multipleItemHeight: 28,
|
|
197
|
-
multipleSelectorBgDisabled: bgGreyColor,
|
|
198
|
-
optionActiveBg: bgGreyColor,
|
|
199
|
-
optionFontSize: fontSize14,
|
|
200
|
-
optionHeight: 32,
|
|
201
|
-
optionLineHeight: lineHeight14,
|
|
202
|
-
optionPadding: '5px 12px',
|
|
203
|
-
optionSelectedBg: activeColor3,
|
|
204
|
-
optionSelectedColor: activeColor,
|
|
205
|
-
selectorBg: bgGreyColor,
|
|
206
|
-
showArrowPaddingInlineEnd: 10,
|
|
207
|
-
controlHeight: height,
|
|
208
|
-
paddingSM: 10,
|
|
209
|
-
},
|
|
210
|
-
DatePicker: {
|
|
211
|
-
colorBgElevated: bgColor,
|
|
212
|
-
activeBg: bgColor,
|
|
213
|
-
activeBorderColor: activeColor,
|
|
214
|
-
activeShadow: 'none',
|
|
215
|
-
cellActiveWithRangeBg: activeColor2,
|
|
216
|
-
cellBgDisabled: bgGreyColor,
|
|
217
|
-
cellHoverBg: bgGreyColor,
|
|
218
|
-
cellHoverWithRangeBg: activeColor2,
|
|
219
|
-
cellRangeBorderColor: activeColor,
|
|
220
|
-
hoverBg: bgColor,
|
|
221
|
-
hoverBorderColor: activeColor,
|
|
222
|
-
multipleItemColorDisabled: textColor1,
|
|
223
|
-
multipleSelectorBgDisabled: bgGreyColor,
|
|
224
|
-
controlHeight: height
|
|
225
|
-
},
|
|
226
|
-
Modal: {
|
|
227
|
-
contentBg: bgColor,
|
|
228
|
-
footerBg: 'transparent',
|
|
229
|
-
headerBg: bgColor,
|
|
230
|
-
titleColor: textColor,
|
|
231
|
-
titleFontSize: 16,
|
|
232
|
-
titleLineHeight: 1.5,
|
|
233
|
-
},
|
|
234
|
-
Drawer: {
|
|
235
|
-
colorBgElevated: bgColor
|
|
236
|
-
},
|
|
237
|
-
Progress: {
|
|
238
|
-
circleTextColor: textColor,
|
|
239
|
-
defaultColor: activeColor,
|
|
240
|
-
remainingColor: bgGreyColor,
|
|
241
|
-
},
|
|
242
|
-
TreeSelect: {
|
|
243
|
-
nodeHoverBg: bgGreyColor,
|
|
244
|
-
nodeHoverColor: textColor,
|
|
245
|
-
nodeSelectedBg: activeColor3,
|
|
246
|
-
nodeSelectedColor: activeColor,
|
|
247
|
-
titleHeight: 32,
|
|
248
|
-
},
|
|
249
|
-
Tabs: {
|
|
250
|
-
cardBg: bgColor,
|
|
251
|
-
cardGutter: 0,
|
|
252
|
-
cardHeight: 40,
|
|
253
|
-
cardPadding: '10px 16px',
|
|
254
|
-
horizontalItemGutter: 0,
|
|
255
|
-
inkBarColor: activeColor,
|
|
256
|
-
itemActiveColor: activeColor,
|
|
257
|
-
itemColor: textColor,
|
|
258
|
-
itemHoverColor: activeColor,
|
|
259
|
-
itemSelectedColor: activeColor,
|
|
260
|
-
colorBorderSecondary: borderColor,
|
|
261
|
-
},
|
|
262
|
-
Table: {
|
|
263
|
-
borderColor: borderColor,
|
|
264
|
-
headerBg: bgGreyColor,
|
|
265
|
-
headerBorderRadius: 4,
|
|
266
|
-
headerColor: textColor,
|
|
267
|
-
headerSplitColor: bgGreyColor,
|
|
268
|
-
rowHoverBg: bgGreyColor,
|
|
269
|
-
rowSelectedBg: activeColor3,
|
|
270
|
-
rowSelectedHoverBg: activeColor3,
|
|
271
|
-
cellPaddingBlock: 10,
|
|
272
|
-
},
|
|
273
|
-
Pagination: {
|
|
274
|
-
itemActiveBg: bgColor,
|
|
275
|
-
itemActiveBgDisabled: bgGreyColor,
|
|
276
|
-
itemActiveColorDisabled: textColor1,
|
|
277
|
-
itemBg: bgColor,
|
|
278
|
-
itemInputBg: bgColor,
|
|
279
|
-
itemLinkBg: bgColor,
|
|
280
|
-
},
|
|
281
|
-
Cascader: {
|
|
282
|
-
optionPadding: '5px 12px',
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
const activeColor = '#3591F4'
|
|
2
|
-
const activeColor1 = 'rgba(53, 145, 244, 0.5)'
|
|
3
|
-
const activeColor2 = 'rgba(53, 145, 244, 0.8)'
|
|
4
|
-
const activeColor3 = 'rgba(53, 145, 244, 0.1)'
|
|
5
|
-
const successColor = '#0CAA43'
|
|
6
|
-
const successColor1 = 'rgba(12, 170, 67, 0.5)'
|
|
7
|
-
const successColor2 = 'rgba(12, 170, 67, 0.2)'
|
|
8
|
-
const warnColor = '#FFA00A'
|
|
9
|
-
const warnColor1 = 'rgba(255, 160, 10, 0.5)'
|
|
10
|
-
const warnColor2 = 'rgba(255, 160, 10, 0.2)'
|
|
11
|
-
const errorColor = '#F43835'
|
|
12
|
-
const errorColor1 = 'rgba(244, 56, 53, 0.5)'
|
|
13
|
-
const errorColor2 = 'rgba(244, 56, 53, 0.8)'
|
|
14
|
-
|
|
15
|
-
const bgColor = '#FFFFFF'
|
|
16
|
-
const bgGreyColor = '#F2F4F9'
|
|
17
|
-
const textColor = '#363A45'
|
|
18
|
-
const textColor1 = '#898d97'
|
|
19
|
-
const textColor2 = '#FFFFFF'
|
|
20
|
-
const iconColor = '#CCD6DD'
|
|
21
|
-
const borderColor = '#DDE6F0'
|
|
22
|
-
const fontSize12 = 12
|
|
23
|
-
const lineHeight12 = 1.5
|
|
24
|
-
const fontSize14 = 14
|
|
25
|
-
const lineHeight14 = 1.4286
|
|
26
|
-
const height = 36
|
|
27
|
-
|
|
28
|
-
export const lightToken = {
|
|
29
|
-
token: {
|
|
30
|
-
colorBgContainer: bgColor,
|
|
31
|
-
colorBgContainerDisabled: bgGreyColor,
|
|
32
|
-
colorBorder: borderColor,
|
|
33
|
-
colorSplit: borderColor,
|
|
34
|
-
colorText: textColor,
|
|
35
|
-
colorTextDescription: textColor1,
|
|
36
|
-
colorTextDisabled: textColor1,
|
|
37
|
-
colorTextLightSolid: textColor2,
|
|
38
|
-
colorTextPlaceholder: textColor1,
|
|
39
|
-
colorIcon: iconColor,
|
|
40
|
-
colorBgSolidHover: activeColor2,
|
|
41
|
-
colorTextQuaternary: iconColor,
|
|
42
|
-
|
|
43
|
-
colorPrimary: activeColor,
|
|
44
|
-
colorPrimaryActive: activeColor,
|
|
45
|
-
colorPrimaryHover: activeColor,
|
|
46
|
-
colorPrimaryText: activeColor,
|
|
47
|
-
colorPrimaryTextActive: activeColor,
|
|
48
|
-
colorPrimaryTextHover: activeColor,
|
|
49
|
-
|
|
50
|
-
colorLink: activeColor,
|
|
51
|
-
colorLinkActive: activeColor,
|
|
52
|
-
colorLinkHover: activeColor,
|
|
53
|
-
|
|
54
|
-
colorError: errorColor,
|
|
55
|
-
colorErrorActive: errorColor,
|
|
56
|
-
colorErrorHover: errorColor,
|
|
57
|
-
|
|
58
|
-
borderRadius: 4,
|
|
59
|
-
fontSize: fontSize14,
|
|
60
|
-
lineHeight: lineHeight14,
|
|
61
|
-
controlHeight: 32,
|
|
62
|
-
|
|
63
|
-
controlItemBgHover: bgGreyColor,
|
|
64
|
-
controlItemBgActiveHover: activeColor3,
|
|
65
|
-
controlItemBgActive: activeColor3,
|
|
66
|
-
},
|
|
67
|
-
components: {
|
|
68
|
-
Button: {
|
|
69
|
-
borderColorDisabled: borderColor,
|
|
70
|
-
contentFontSize: fontSize14,
|
|
71
|
-
contentLineHeight: lineHeight14,
|
|
72
|
-
dangerColor: bgColor,
|
|
73
|
-
dangerShadow: 'none',
|
|
74
|
-
defaultActiveBg: bgColor,
|
|
75
|
-
defaultActiveBorderColor: activeColor,
|
|
76
|
-
defaultActiveColor: activeColor,
|
|
77
|
-
defaultBg: bgColor,
|
|
78
|
-
defaultBorderColor: borderColor,
|
|
79
|
-
defaultColor: textColor,
|
|
80
|
-
defaultGhostBorderColor: bgColor,
|
|
81
|
-
defaultGhostColor: bgColor,
|
|
82
|
-
defaultHoverBg: bgColor,
|
|
83
|
-
defaultHoverBorderColor: activeColor,
|
|
84
|
-
defaultHoverColor: activeColor,
|
|
85
|
-
defaultShadow: 'none',
|
|
86
|
-
paddingBlock: 5,
|
|
87
|
-
paddingInline: 10,
|
|
88
|
-
primaryColor: textColor2,
|
|
89
|
-
primaryShadow: 'none',
|
|
90
|
-
textTextActiveColor: textColor,
|
|
91
|
-
textTextColor: textColor,
|
|
92
|
-
textTextHoverColor: textColor,
|
|
93
|
-
},
|
|
94
|
-
Dropdown: {
|
|
95
|
-
paddingBlock: 7,
|
|
96
|
-
padding: 0,
|
|
97
|
-
paddingXS: 0,
|
|
98
|
-
paddingXXS: 0,
|
|
99
|
-
controlPaddingHorizontal: 10
|
|
100
|
-
},
|
|
101
|
-
Menu: {
|
|
102
|
-
itemHeight: 40,
|
|
103
|
-
itemBg: bgColor,
|
|
104
|
-
itemColor: textColor,
|
|
105
|
-
itemHoverBg: bgGreyColor,
|
|
106
|
-
itemHoverColor: textColor,
|
|
107
|
-
itemSelectedColor: activeColor,
|
|
108
|
-
itemSelectedBg: activeColor3,
|
|
109
|
-
popupBg: bgColor,
|
|
110
|
-
horizontalItemHoverBg: bgColor,
|
|
111
|
-
horizontalItemHoverColor: activeColor,
|
|
112
|
-
horizontalItemSelectedBg: activeColor3,
|
|
113
|
-
horizontalItemSelectedColor: activeColor,
|
|
114
|
-
itemActiveBg: activeColor3,
|
|
115
|
-
itemMarginBlock: 4,
|
|
116
|
-
itemMarginInline: 8,
|
|
117
|
-
itemBorderRadius: 4,
|
|
118
|
-
itemPaddingInline: 16,
|
|
119
|
-
iconSize: 20,
|
|
120
|
-
iconMarginInlineEnd: 8,
|
|
121
|
-
dropdownWidth: 200,
|
|
122
|
-
},
|
|
123
|
-
Form: {
|
|
124
|
-
labelColor: textColor,
|
|
125
|
-
labelFontSize: fontSize14,
|
|
126
|
-
labelHeight: height,
|
|
127
|
-
labelRequiredMarkColor: errorColor,
|
|
128
|
-
verticalLabelPadding: '0 0 8px',
|
|
129
|
-
itemMarginBottom: 12,
|
|
130
|
-
colorBorder: borderColor,
|
|
131
|
-
colorError: errorColor,
|
|
132
|
-
colorPrimary: activeColor,
|
|
133
|
-
colorSuccess: successColor,
|
|
134
|
-
colorWarning: warnColor,
|
|
135
|
-
colorText: textColor,
|
|
136
|
-
colorTextDescription: textColor1,
|
|
137
|
-
controlHeight: height,
|
|
138
|
-
fontSize: fontSize14,
|
|
139
|
-
lineHeight: lineHeight14,
|
|
140
|
-
},
|
|
141
|
-
Input: {
|
|
142
|
-
activeBg: bgColor,
|
|
143
|
-
activeBorderColor: activeColor,
|
|
144
|
-
activeShadow: 'none',
|
|
145
|
-
hoverBg: bgColor,
|
|
146
|
-
hoverBorderColor: activeColor,
|
|
147
|
-
inputFontSize: fontSize14,
|
|
148
|
-
paddingBlock: 6,
|
|
149
|
-
paddingInline: 10,
|
|
150
|
-
controlHeight: height,
|
|
151
|
-
},
|
|
152
|
-
InputNumber: {
|
|
153
|
-
activeBg: bgColor,
|
|
154
|
-
activeBorderColor: activeColor,
|
|
155
|
-
activeShadow: 'none',
|
|
156
|
-
handleBorderColor: borderColor,
|
|
157
|
-
handleHoverColor: activeColor,
|
|
158
|
-
hoverBg: bgColor,
|
|
159
|
-
hoverBorderColor: activeColor,
|
|
160
|
-
inputFontSize: 14,
|
|
161
|
-
paddingBlock: 7,
|
|
162
|
-
paddingInline: 10,
|
|
163
|
-
controlHeight: height,
|
|
164
|
-
addonBg: bgColor,
|
|
165
|
-
},
|
|
166
|
-
Radio: {
|
|
167
|
-
buttonBg: bgColor,
|
|
168
|
-
buttonCheckedBg: bgColor,
|
|
169
|
-
buttonCheckedBgDisabled: bgGreyColor,
|
|
170
|
-
buttonCheckedColorDisabled: textColor1,
|
|
171
|
-
buttonColor: textColor,
|
|
172
|
-
radioSize: 18,
|
|
173
|
-
dotSize: 8,
|
|
174
|
-
buttonSolidCheckedActiveBg: activeColor,
|
|
175
|
-
buttonSolidCheckedBg: activeColor,
|
|
176
|
-
buttonSolidCheckedColor: textColor2,
|
|
177
|
-
buttonSolidCheckedHoverBg: activeColor,
|
|
178
|
-
dotColorDisabled: iconColor,
|
|
179
|
-
},
|
|
180
|
-
Switch: {
|
|
181
|
-
handleBg: bgColor,
|
|
182
|
-
handleShadow: 'unset',
|
|
183
|
-
handleSize: 18,
|
|
184
|
-
trackMinWidth: 45,
|
|
185
|
-
trackHeight: 22,
|
|
186
|
-
colorTextQuaternary: iconColor,
|
|
187
|
-
colorTextTertiary: iconColor,
|
|
188
|
-
},
|
|
189
|
-
Select: {
|
|
190
|
-
activeBorderColor: activeColor,
|
|
191
|
-
activeOutlineColor: 'none',
|
|
192
|
-
clearBg: bgColor,
|
|
193
|
-
hoverBorderColor: activeColor,
|
|
194
|
-
multipleItemBg: bgGreyColor,
|
|
195
|
-
multipleItemBorderColor: 'transparent',
|
|
196
|
-
multipleItemBorderColorDisabled: 'transparent',
|
|
197
|
-
multipleItemHeight: 28,
|
|
198
|
-
multipleSelectorBgDisabled: bgGreyColor,
|
|
199
|
-
optionActiveBg: bgGreyColor,
|
|
200
|
-
optionFontSize: fontSize14,
|
|
201
|
-
optionHeight: 32,
|
|
202
|
-
optionLineHeight: lineHeight14,
|
|
203
|
-
optionPadding: '5px 12px',
|
|
204
|
-
optionSelectedBg: activeColor3,
|
|
205
|
-
optionSelectedColor: activeColor,
|
|
206
|
-
selectorBg: bgColor,
|
|
207
|
-
showArrowPaddingInlineEnd: 10,
|
|
208
|
-
controlHeight: height,
|
|
209
|
-
paddingSM: 10,
|
|
210
|
-
},
|
|
211
|
-
DatePicker: {
|
|
212
|
-
colorBgElevated: bgColor,
|
|
213
|
-
activeBg: bgColor,
|
|
214
|
-
activeBorderColor: activeColor,
|
|
215
|
-
activeShadow: 'none',
|
|
216
|
-
cellActiveWithRangeBg: activeColor2,
|
|
217
|
-
cellBgDisabled: bgGreyColor,
|
|
218
|
-
cellHoverBg: bgGreyColor,
|
|
219
|
-
cellHoverWithRangeBg: activeColor2,
|
|
220
|
-
cellRangeBorderColor: activeColor,
|
|
221
|
-
hoverBg: bgColor,
|
|
222
|
-
hoverBorderColor: activeColor,
|
|
223
|
-
multipleItemColorDisabled: textColor1,
|
|
224
|
-
multipleSelectorBgDisabled: bgGreyColor,
|
|
225
|
-
controlHeight: height
|
|
226
|
-
},
|
|
227
|
-
Modal: {
|
|
228
|
-
contentBg: bgColor,
|
|
229
|
-
footerBg: 'transparent',
|
|
230
|
-
headerBg: bgColor,
|
|
231
|
-
titleColor: textColor,
|
|
232
|
-
titleFontSize: 16,
|
|
233
|
-
titleLineHeight: 1.5,
|
|
234
|
-
},
|
|
235
|
-
Drawer: {
|
|
236
|
-
colorBgElevated: bgColor
|
|
237
|
-
},
|
|
238
|
-
Progress: {
|
|
239
|
-
circleTextColor: textColor,
|
|
240
|
-
defaultColor: activeColor,
|
|
241
|
-
remainingColor: bgGreyColor,
|
|
242
|
-
},
|
|
243
|
-
TreeSelect: {
|
|
244
|
-
nodeHoverBg: bgGreyColor,
|
|
245
|
-
nodeHoverColor: textColor,
|
|
246
|
-
nodeSelectedBg: activeColor3,
|
|
247
|
-
nodeSelectedColor: activeColor,
|
|
248
|
-
titleHeight: 32,
|
|
249
|
-
},
|
|
250
|
-
Tabs: {
|
|
251
|
-
cardBg: bgColor,
|
|
252
|
-
cardGutter: 0,
|
|
253
|
-
cardHeight: 40,
|
|
254
|
-
cardPadding: '10px 16px',
|
|
255
|
-
horizontalItemGutter: 0,
|
|
256
|
-
inkBarColor: activeColor,
|
|
257
|
-
itemActiveColor: activeColor,
|
|
258
|
-
itemColor: textColor,
|
|
259
|
-
itemHoverColor: activeColor,
|
|
260
|
-
itemSelectedColor: activeColor,
|
|
261
|
-
colorBorderSecondary: borderColor,
|
|
262
|
-
},
|
|
263
|
-
Table: {
|
|
264
|
-
borderColor: borderColor,
|
|
265
|
-
headerBg: bgGreyColor,
|
|
266
|
-
headerBorderRadius: 4,
|
|
267
|
-
headerColor: textColor,
|
|
268
|
-
headerSplitColor: bgGreyColor,
|
|
269
|
-
rowHoverBg: bgGreyColor,
|
|
270
|
-
rowSelectedBg: activeColor3,
|
|
271
|
-
rowSelectedHoverBg: activeColor3,
|
|
272
|
-
cellPaddingBlock: 10,
|
|
273
|
-
},
|
|
274
|
-
Pagination: {
|
|
275
|
-
itemActiveBg: bgColor,
|
|
276
|
-
itemActiveBgDisabled: bgGreyColor,
|
|
277
|
-
itemActiveColorDisabled: textColor1,
|
|
278
|
-
itemBg: bgColor,
|
|
279
|
-
itemInputBg: bgColor,
|
|
280
|
-
itemLinkBg: bgColor,
|
|
281
|
-
},
|
|
282
|
-
Cascader: {
|
|
283
|
-
optionPadding: '5px 12px',
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
package/template/src/app.scss
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
@import './theme/lightTheme.scss';
|
|
2
|
-
@import './theme/darkTheme.scss';
|
|
3
|
-
|
|
4
|
-
html,
|
|
5
|
-
body {
|
|
6
|
-
margin: 0;
|
|
7
|
-
padding: 0;
|
|
8
|
-
width: 100%;
|
|
9
|
-
height: 100%;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
#root {
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/* 滚动条 */
|
|
20
|
-
::-webkit-scrollbar {
|
|
21
|
-
width: 8px;
|
|
22
|
-
height: 8px;
|
|
23
|
-
}
|
|
24
|
-
::-webkit-scrollbar-thumb {
|
|
25
|
-
border-radius: 6px;
|
|
26
|
-
background-color: #dde6f0;
|
|
27
|
-
border: 2px dashed transparent;
|
|
28
|
-
background-clip: padding-box;
|
|
29
|
-
}
|
package/template/src/app.tsx
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import ReactDOM from 'react-dom/client'
|
|
2
|
-
import { RouterProvider } from "react-router-dom"
|
|
3
|
-
import router from '@/router/router'
|
|
4
|
-
import '@/assets/iconfont/iconfont.css'
|
|
5
|
-
import './app.scss'
|
|
6
|
-
|
|
7
|
-
function App() {
|
|
8
|
-
return <RouterProvider router={router} />
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
13
|
-
<App />
|
|
14
|
-
)
|