xt-element-ui 1.3.3 → 1.3.4
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/CHANGELOG.md +72 -72
- package/LICENSE +21 -21
- package/README.md +240 -240
- package/docs/README.md +100 -100
- package/docs/components/base/xt-button.md +114 -114
- package/docs/components/base/xt-card-item.md +104 -104
- package/docs/components/base/xt-card.md +108 -108
- package/docs/components/base/xt-config-provider.md +199 -199
- package/docs/components/base/xt-flex-box.md +115 -115
- package/docs/components/base/xt-grid-box.md +302 -302
- package/docs/components/base/xt-input.md +150 -150
- package/docs/components/base/xt-map-provider.md +23 -23
- package/docs/components/base/xt-map.md +331 -331
- package/docs/components/base/xt-step-price.md +165 -165
- package/docs/components/base/xt-text.md +212 -212
- package/docs/components/base/xt-time.md +165 -165
- package/docs/components/extend/ex-bar.md +67 -67
- package/docs/components/extend/ex-button.md +62 -62
- package/docs/components/extend/ex-card.md +86 -86
- package/docs/components/extend/ex-chart.md +463 -463
- package/docs/components/extend/ex-icon.md +189 -189
- package/docs/components/extend/ex-line.md +70 -70
- package/docs/components/extend/ex-multi.md +155 -155
- package/docs/components/extend/ex-pie.md +69 -69
- package/docs/components/extend/ex-select-tree.md +210 -210
- package/docs/components/extend/ex-table.md +590 -590
- package/docs/components/extend/ex-upload.md +134 -134
- package/docs/components/utils/size.md +147 -147
- package/docs/components/utils/theme.md +182 -182
- package/lib/index.common.js +4112 -4122
- package/lib/index.umd.js +4072 -4081
- package/lib/index.umd.min.js +3 -3
- package/package.json +80 -81
- package/src/components/ex-button/index.js +7 -7
- package/src/components/ex-button/index.vue +66 -66
- package/src/components/ex-button/style/index.scss +67 -67
- package/src/components/ex-card/index.js +7 -7
- package/src/components/ex-card/index.vue +68 -68
- package/src/components/ex-card/style/index.scss +73 -73
- package/src/components/ex-chart/index.js +7 -7
- package/src/components/ex-chart/index.vue +136 -136
- package/src/components/ex-date-picker/index.js +7 -7
- package/src/components/ex-icon/index.js +7 -7
- package/src/components/ex-icon/index.vue +168 -168
- package/src/components/ex-icon/style/index.scss +7 -7
- package/src/components/ex-page/index.js +7 -7
- package/src/components/ex-select-tree/index.js +7 -7
- package/src/components/ex-table/ExTableCell.vue +22 -22
- package/src/components/ex-table/index.js +7 -7
- package/src/components/ex-table/virtualScrollData.js +35 -35
- package/src/components/ex-upload/index.js +7 -7
- package/src/components/index.scss +39 -39
- package/src/components/xt-button/index.js +7 -7
- package/src/components/xt-button/index.vue +97 -97
- package/src/components/xt-card/index.js +7 -7
- package/src/components/xt-card/style/index.scss +48 -48
- package/src/components/xt-card-item/index.js +7 -7
- package/src/components/xt-card-item/style/index copy.scss +71 -71
- package/src/components/xt-card-item/style/index.scss +82 -82
- package/src/components/xt-config-provider/index.js +7 -7
- package/src/components/xt-config-provider/index.vue +362 -362
- package/src/components/xt-config-provider/style/index.scss +11 -11
- package/src/components/xt-flex-box/index.js +7 -7
- package/src/components/xt-flex-box/style/index.scss +81 -81
- package/src/components/xt-grid-box/index.js +7 -7
- package/src/components/xt-grid-box/style/index.scss +92 -92
- package/src/components/xt-grid-item/index.js +7 -7
- package/src/components/xt-grid-item/index.vue +106 -106
- package/src/components/xt-input/index.js +7 -7
- package/src/components/xt-input/index.vue +66 -66
- package/src/components/xt-input/style/index.scss +84 -84
- package/src/components/xt-map/adapters/amap.js +235 -235
- package/src/components/xt-map/adapters/baidu.js +254 -254
- package/src/components/xt-map/adapters/base.js +267 -267
- package/src/components/xt-map/adapters/index.js +29 -29
- package/src/components/xt-map/adapters/tianditu.js +242 -242
- package/src/components/xt-map/config/xt-map-config.js +197 -197
- package/src/components/xt-map/index.js +8 -8
- package/src/components/xt-map/index.vue +351 -351
- package/src/components/xt-map/loaders/script-loader.js +114 -114
- package/src/components/xt-map/provider.vue +200 -200
- package/src/components/xt-map/style/index.scss +77 -77
- package/src/components/xt-map-provider/index.js +8 -8
- package/src/components/xt-step-price/index.js +10 -10
- package/src/components/xt-step-price/index.vue +272 -272
- package/src/components/xt-step-price/style/index.scss +123 -123
- package/src/components/xt-step-price-item/index.js +7 -7
- package/src/components/xt-step-price-item/index.vue +187 -187
- package/src/components/xt-text/index.js +7 -7
- package/src/components/xt-text/index.vue +1 -1
- package/src/components/xt-text/style/index.scss +92 -92
- package/src/components/xt-time/index.js +7 -7
- package/src/components/xt-time/index.vue +313 -313
- package/src/components/xt-time/style/index.scss +23 -23
- package/src/config/element-registry.js +135 -135
- package/src/index.js +162 -178
- package/src/styles/css-variables.scss +257 -257
- package/src/styles/theme/background.scss +5 -5
- package/src/styles/theme/border-radius.scss +3 -3
- package/src/styles/theme/borders.scss +3 -3
- package/src/styles/theme/colors.scss +101 -101
- package/src/styles/theme/component-variables.scss +69 -69
- package/src/styles/theme/dark-variables.scss +28 -28
- package/src/styles/theme/font.scss +12 -12
- package/src/styles/theme/index.scss +11 -11
- package/src/styles/theme/shadows.scss +2 -2
- package/src/styles/theme/spacing.scss +4 -4
- package/src/styles/theme/transitions.scss +2 -2
- package/src/styles/theme/typography.scss +4 -4
- package/src/styles/variables-export.scss +85 -85
- package/src/utils/index.js +191 -202
|
@@ -1,257 +1,257 @@
|
|
|
1
|
-
@import './theme/index.scss';
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
// ============================
|
|
5
|
-
// 基础变量(参考 Element Plus)
|
|
6
|
-
// ============================
|
|
7
|
-
color-scheme: light;
|
|
8
|
-
|
|
9
|
-
// 基础颜色
|
|
10
|
-
--xt-color-white: #ffffff;
|
|
11
|
-
--xt-color-black: #000000;
|
|
12
|
-
|
|
13
|
-
// RGB 值
|
|
14
|
-
--xt-color-primary-rgb: 24, 144, 255;
|
|
15
|
-
--xt-color-success-rgb: 103, 194, 58;
|
|
16
|
-
--xt-color-warning-rgb: 230, 162, 60;
|
|
17
|
-
--xt-color-danger-rgb: 245, 108, 108;
|
|
18
|
-
--xt-color-info-rgb: 144, 147, 153;
|
|
19
|
-
|
|
20
|
-
// 主色调系列 (#1890ff)
|
|
21
|
-
--xt-color-primary: #1890ff;
|
|
22
|
-
--xt-color-success: #67c23a;
|
|
23
|
-
--xt-color-warning: #e6a23c;
|
|
24
|
-
--xt-color-danger: #f56c6c;
|
|
25
|
-
--xt-color-error: #f56c6c;
|
|
26
|
-
--xt-color-info: #909399;
|
|
27
|
-
|
|
28
|
-
// Primary 渐变色系 (#1890ff)
|
|
29
|
-
--xt-color-primary-light-3: rgb(93, 177, 255);
|
|
30
|
-
--xt-color-primary-light-5: rgb(140, 200, 255);
|
|
31
|
-
--xt-color-primary-light-7: rgb(186, 222, 255);
|
|
32
|
-
--xt-color-primary-light-8: rgb(209, 233, 255);
|
|
33
|
-
--xt-color-primary-light-9: rgb(232, 244, 255);
|
|
34
|
-
--xt-color-primary-dark-2: rgb(19, 115, 204);
|
|
35
|
-
|
|
36
|
-
// Success 渐变色系
|
|
37
|
-
--xt-color-success-light-3: rgb(149, 212, 117);
|
|
38
|
-
--xt-color-success-light-5: rgb(179, 225, 157);
|
|
39
|
-
--xt-color-success-light-7: rgb(209, 237, 196);
|
|
40
|
-
--xt-color-success-light-8: rgb(225, 243, 216);
|
|
41
|
-
--xt-color-success-light-9: rgb(240, 249, 235);
|
|
42
|
-
--xt-color-success-dark-2: rgb(82, 155, 46);
|
|
43
|
-
|
|
44
|
-
// Warning 渐变色系
|
|
45
|
-
--xt-color-warning-light-3: rgb(238, 190, 119);
|
|
46
|
-
--xt-color-warning-light-5: rgb(243, 209, 158);
|
|
47
|
-
--xt-color-warning-light-7: rgb(248, 227, 197);
|
|
48
|
-
--xt-color-warning-light-8: rgb(250, 236, 216);
|
|
49
|
-
--xt-color-warning-light-9: rgb(253, 246, 236);
|
|
50
|
-
--xt-color-warning-dark-2: rgb(184, 130, 48);
|
|
51
|
-
|
|
52
|
-
// Danger 渐变色系
|
|
53
|
-
--xt-color-danger-light-3: rgb(248, 152, 152);
|
|
54
|
-
--xt-color-danger-light-5: rgb(250, 182, 182);
|
|
55
|
-
--xt-color-danger-light-7: rgb(252, 211, 211);
|
|
56
|
-
--xt-color-danger-light-8: rgb(253, 226, 226);
|
|
57
|
-
--xt-color-danger-light-9: rgb(254, 240, 240);
|
|
58
|
-
--xt-color-danger-dark-2: rgb(196, 86, 86);
|
|
59
|
-
|
|
60
|
-
// Error 渐变色系
|
|
61
|
-
--xt-color-error-light-3: rgb(248, 152, 152);
|
|
62
|
-
--xt-color-error-light-5: rgb(250, 182, 182);
|
|
63
|
-
--xt-color-error-light-7: rgb(252, 211, 211);
|
|
64
|
-
--xt-color-error-light-8: rgb(253, 226, 226);
|
|
65
|
-
--xt-color-error-light-9: rgb(254, 240, 240);
|
|
66
|
-
--xt-color-error-dark-2: rgb(196, 86, 86);
|
|
67
|
-
|
|
68
|
-
// Info 渐变色系
|
|
69
|
-
--xt-color-info-light-3: rgb(177, 179, 184);
|
|
70
|
-
--xt-color-info-light-5: rgb(200, 201, 204);
|
|
71
|
-
--xt-color-info-light-7: rgb(222, 223, 224);
|
|
72
|
-
--xt-color-info-light-8: rgb(233, 233, 235);
|
|
73
|
-
--xt-color-info-light-9: rgb(244, 244, 245);
|
|
74
|
-
--xt-color-info-dark-2: rgb(115, 118, 122);
|
|
75
|
-
|
|
76
|
-
// 背景颜色
|
|
77
|
-
--xt-bg-color: #ffffff;
|
|
78
|
-
--xt-bg-color-page: #f2f3f5;
|
|
79
|
-
--xt-bg-color-overlay: #ffffff;
|
|
80
|
-
|
|
81
|
-
// 文字颜色
|
|
82
|
-
--xt-text-color-primary: #303133;
|
|
83
|
-
--xt-text-color-regular: #606266;
|
|
84
|
-
--xt-text-color-secondary: #909399;
|
|
85
|
-
--xt-text-color-placeholder: #a8abb2;
|
|
86
|
-
--xt-text-color-disabled: #c0c4cc;
|
|
87
|
-
|
|
88
|
-
// 边框颜色
|
|
89
|
-
--xt-border-color: #dcdfe6;
|
|
90
|
-
--xt-border-color-light: #e4e7ed;
|
|
91
|
-
--xt-border-color-lighter: #ebeef5;
|
|
92
|
-
--xt-border-color-extra-light: #f2f6fc;
|
|
93
|
-
--xt-border-color-dark: #d4d7de;
|
|
94
|
-
--xt-border-color-darker: #cdd0d6;
|
|
95
|
-
|
|
96
|
-
// 填充颜色
|
|
97
|
-
--xt-fill-color: #f0f2f5;
|
|
98
|
-
--xt-fill-color-light: #f5f7fa;
|
|
99
|
-
--xt-fill-color-lighter: #fafafa;
|
|
100
|
-
--xt-fill-color-extra-light: #fafcff;
|
|
101
|
-
--xt-fill-color-dark: #ebedf0;
|
|
102
|
-
--xt-fill-color-darker: #e6e8eb;
|
|
103
|
-
--xt-fill-color-blank: #ffffff;
|
|
104
|
-
|
|
105
|
-
// 阴影
|
|
106
|
-
--xt-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);
|
|
107
|
-
--xt-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);
|
|
108
|
-
--xt-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);
|
|
109
|
-
--xt-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);
|
|
110
|
-
|
|
111
|
-
// 禁用状态颜色
|
|
112
|
-
--xt-disabled-bg-color: var(--xt-fill-color-light);
|
|
113
|
-
--xt-disabled-text-color: var(--xt-text-color-placeholder);
|
|
114
|
-
--xt-disabled-border-color: var(--xt-border-color-light);
|
|
115
|
-
|
|
116
|
-
// 遮罩颜色
|
|
117
|
-
--xt-overlay-color: rgba(0, 0, 0, .8);
|
|
118
|
-
--xt-overlay-color-light: rgba(0, 0, 0, .7);
|
|
119
|
-
--xt-overlay-color-lighter: rgba(0, 0, 0, .5);
|
|
120
|
-
--xt-mask-color: rgba(255, 255, 255, .9);
|
|
121
|
-
--xt-mask-color-extra-light: rgba(255, 255, 255, .3);
|
|
122
|
-
|
|
123
|
-
// 边框
|
|
124
|
-
--xt-border-width: 1px;
|
|
125
|
-
--xt-border-style: solid;
|
|
126
|
-
--xt-border-color-hover: var(--xt-text-color-disabled);
|
|
127
|
-
--xt-border: var(--xt-border-width) var(--xt-border-style) var(--xt-border-color);
|
|
128
|
-
|
|
129
|
-
// SVG 灰度
|
|
130
|
-
--xt-svg-monochrome-grey: var(--xt-border-color);
|
|
131
|
-
|
|
132
|
-
// 字体大小
|
|
133
|
-
--xt-font-size-extra-large: 20px;
|
|
134
|
-
--xt-font-size-large: 18px;
|
|
135
|
-
--xt-font-size-medium: 16px;
|
|
136
|
-
--xt-font-size-base: 14px;
|
|
137
|
-
--xt-font-size-small: 13px;
|
|
138
|
-
--xt-font-size-extra-small: 12px;
|
|
139
|
-
|
|
140
|
-
// 字体
|
|
141
|
-
--xt-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
|
|
142
|
-
--xt-font-weight-primary: 500;
|
|
143
|
-
--xt-font-line-height-primary: 24px;
|
|
144
|
-
|
|
145
|
-
// 层级
|
|
146
|
-
--xt-index-normal: 1;
|
|
147
|
-
--xt-index-top: 1000;
|
|
148
|
-
--xt-index-popper: 2000;
|
|
149
|
-
|
|
150
|
-
// 圆角
|
|
151
|
-
--xt-border-radius-base: 4px;
|
|
152
|
-
--xt-border-radius-small: 2px;
|
|
153
|
-
--xt-border-radius-round: 20px;
|
|
154
|
-
--xt-border-radius-circle: 100%;
|
|
155
|
-
|
|
156
|
-
// 过渡动画
|
|
157
|
-
--xt-transition-duration: .3s;
|
|
158
|
-
--xt-transition-duration-fast: .2s;
|
|
159
|
-
--xt-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);
|
|
160
|
-
--xt-transition-function-fast-bezier: cubic-bezier(.23, 1, .32, 1);
|
|
161
|
-
--xt-transition-all: all var(--xt-transition-duration) var(--xt-transition-function-ease-in-out-bezier);
|
|
162
|
-
--xt-transition-fade: opacity var(--xt-transition-duration) var(--xt-transition-function-fast-bezier);
|
|
163
|
-
--xt-transition-md-fade: transform var(--xt-transition-duration) var(--xt-transition-function-fast-bezier), opacity var(--xt-transition-duration) var(--xt-transition-function-fast-bezier);
|
|
164
|
-
--xt-transition-fade-linear: opacity var(--xt-transition-duration-fast) linear;
|
|
165
|
-
--xt-transition-border: border-color var(--xt-transition-duration-fast) var(--xt-transition-function-ease-in-out-bezier);
|
|
166
|
-
--xt-transition-box-shadow: box-shadow var(--xt-transition-duration-fast) var(--xt-transition-function-ease-in-out-bezier);
|
|
167
|
-
--xt-transition-color: color var(--xt-transition-duration-fast) var(--xt-transition-function-ease-in-out-bezier);
|
|
168
|
-
|
|
169
|
-
// 组件尺寸
|
|
170
|
-
--xt-component-size-large: 40px;
|
|
171
|
-
--xt-component-size: 32px;
|
|
172
|
-
--xt-component-size-small: 24px;
|
|
173
|
-
|
|
174
|
-
// 间距
|
|
175
|
-
--xt-spacing-xs: 8px;
|
|
176
|
-
--xt-spacing-sm: 12px;
|
|
177
|
-
--xt-spacing-md: 16px;
|
|
178
|
-
--xt-spacing-lg: 24px;
|
|
179
|
-
--xt-spacing-xl: 32px;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// ============================
|
|
183
|
-
// 暗色主题(参考 Element Plus)
|
|
184
|
-
// ============================
|
|
185
|
-
:root[data-theme="dark"],
|
|
186
|
-
[data-theme="dark"], html.dark {
|
|
187
|
-
color-scheme: dark;
|
|
188
|
-
--xt-color-primary: #409eff;
|
|
189
|
-
--xt-color-primary-light-3: rgb(51, 117, 185);
|
|
190
|
-
--xt-color-primary-light-5: rgb(42, 89, 138);
|
|
191
|
-
--xt-color-primary-light-7: rgb(33, 61, 91);
|
|
192
|
-
--xt-color-primary-light-8: rgb(29, 48, 67);
|
|
193
|
-
--xt-color-primary-light-9: rgb(24, 34, 43);
|
|
194
|
-
--xt-color-primary-dark-2: rgb(102, 177, 255);
|
|
195
|
-
--xt-color-success: #67c23a;
|
|
196
|
-
--xt-color-success-light-3: rgb(78, 142, 47);
|
|
197
|
-
--xt-color-success-light-5: rgb(62, 107, 39);
|
|
198
|
-
--xt-color-success-light-7: rgb(45, 72, 31);
|
|
199
|
-
--xt-color-success-light-8: rgb(37, 55, 28);
|
|
200
|
-
--xt-color-success-light-9: rgb(28, 37, 24);
|
|
201
|
-
--xt-color-success-dark-2: rgb(133, 206, 97);
|
|
202
|
-
--xt-color-warning: #e6a23c;
|
|
203
|
-
--xt-color-warning-light-3: rgb(167, 119, 48);
|
|
204
|
-
--xt-color-warning-light-5: rgb(125, 91, 40);
|
|
205
|
-
--xt-color-warning-light-7: rgb(83, 63, 32);
|
|
206
|
-
--xt-color-warning-light-8: rgb(62, 48, 28);
|
|
207
|
-
--xt-color-warning-light-9: rgb(41, 34, 24);
|
|
208
|
-
--xt-color-warning-dark-2: rgb(235, 181, 99);
|
|
209
|
-
--xt-color-danger: #f56c6c;
|
|
210
|
-
--xt-color-danger-light-3: rgb(178, 82, 82);
|
|
211
|
-
--xt-color-danger-light-5: rgb(133, 64, 64);
|
|
212
|
-
--xt-color-danger-light-7: rgb(88, 46, 46);
|
|
213
|
-
--xt-color-danger-light-8: rgb(65, 38, 38);
|
|
214
|
-
--xt-color-danger-light-9: rgb(42, 29, 29);
|
|
215
|
-
--xt-color-danger-dark-2: rgb(247, 137, 137);
|
|
216
|
-
--xt-color-error: #f56c6c;
|
|
217
|
-
--xt-color-error-light-3: rgb(178, 82, 82);
|
|
218
|
-
--xt-color-error-light-5: rgb(133, 64, 64);
|
|
219
|
-
--xt-color-error-light-7: rgb(88, 46, 46);
|
|
220
|
-
--xt-color-error-light-8: rgb(65, 38, 38);
|
|
221
|
-
--xt-color-error-light-9: rgb(42, 29, 29);
|
|
222
|
-
--xt-color-error-dark-2: rgb(247, 137, 137);
|
|
223
|
-
--xt-color-info: #909399;
|
|
224
|
-
--xt-color-info-light-3: rgb(107, 109, 113);
|
|
225
|
-
--xt-color-info-light-5: rgb(82, 84, 87);
|
|
226
|
-
--xt-color-info-light-7: rgb(57, 58, 60);
|
|
227
|
-
--xt-color-info-light-8: rgb(45, 45, 47);
|
|
228
|
-
--xt-color-info-light-9: rgb(32, 33, 33);
|
|
229
|
-
--xt-color-info-dark-2: rgb(166, 169, 173);
|
|
230
|
-
--xt-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .36), 0px 8px 20px rgba(0, 0, 0, .72);
|
|
231
|
-
--xt-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .72);
|
|
232
|
-
--xt-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .72);
|
|
233
|
-
--xt-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;
|
|
234
|
-
--xt-bg-color-page: #0a0a0a;
|
|
235
|
-
--xt-bg-color: #141414;
|
|
236
|
-
--xt-bg-color-overlay: #1d1e1f;
|
|
237
|
-
--xt-text-color-primary: #E5EAF3;
|
|
238
|
-
--xt-text-color-regular: #CFD3DC;
|
|
239
|
-
--xt-text-color-secondary: #A3A6AD;
|
|
240
|
-
--xt-text-color-placeholder: #8D9095;
|
|
241
|
-
--xt-text-color-disabled: #6C6E72;
|
|
242
|
-
--xt-border-color-darker: #636466;
|
|
243
|
-
--xt-border-color-dark: #58585B;
|
|
244
|
-
--xt-border-color: #4C4D4F;
|
|
245
|
-
--xt-border-color-light: #414243;
|
|
246
|
-
--xt-border-color-lighter: #363637;
|
|
247
|
-
--xt-border-color-extra-light: #2B2B2C;
|
|
248
|
-
--xt-fill-color-darker: #424243;
|
|
249
|
-
--xt-fill-color-dark: #39393A;
|
|
250
|
-
--xt-fill-color: #303030;
|
|
251
|
-
--xt-fill-color-light: #262727;
|
|
252
|
-
--xt-fill-color-lighter: #1D1D1D;
|
|
253
|
-
--xt-fill-color-extra-light: #191919;
|
|
254
|
-
--xt-fill-color-blank: #141414;
|
|
255
|
-
--xt-mask-color: rgba(0, 0, 0, .8);
|
|
256
|
-
--xt-mask-color-extra-light: rgba(0, 0, 0, .3)
|
|
257
|
-
}
|
|
1
|
+
@import './theme/index.scss';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
// ============================
|
|
5
|
+
// 基础变量(参考 Element Plus)
|
|
6
|
+
// ============================
|
|
7
|
+
color-scheme: light;
|
|
8
|
+
|
|
9
|
+
// 基础颜色
|
|
10
|
+
--xt-color-white: #ffffff;
|
|
11
|
+
--xt-color-black: #000000;
|
|
12
|
+
|
|
13
|
+
// RGB 值
|
|
14
|
+
--xt-color-primary-rgb: 24, 144, 255;
|
|
15
|
+
--xt-color-success-rgb: 103, 194, 58;
|
|
16
|
+
--xt-color-warning-rgb: 230, 162, 60;
|
|
17
|
+
--xt-color-danger-rgb: 245, 108, 108;
|
|
18
|
+
--xt-color-info-rgb: 144, 147, 153;
|
|
19
|
+
|
|
20
|
+
// 主色调系列 (#1890ff)
|
|
21
|
+
--xt-color-primary: #1890ff;
|
|
22
|
+
--xt-color-success: #67c23a;
|
|
23
|
+
--xt-color-warning: #e6a23c;
|
|
24
|
+
--xt-color-danger: #f56c6c;
|
|
25
|
+
--xt-color-error: #f56c6c;
|
|
26
|
+
--xt-color-info: #909399;
|
|
27
|
+
|
|
28
|
+
// Primary 渐变色系 (#1890ff)
|
|
29
|
+
--xt-color-primary-light-3: rgb(93, 177, 255);
|
|
30
|
+
--xt-color-primary-light-5: rgb(140, 200, 255);
|
|
31
|
+
--xt-color-primary-light-7: rgb(186, 222, 255);
|
|
32
|
+
--xt-color-primary-light-8: rgb(209, 233, 255);
|
|
33
|
+
--xt-color-primary-light-9: rgb(232, 244, 255);
|
|
34
|
+
--xt-color-primary-dark-2: rgb(19, 115, 204);
|
|
35
|
+
|
|
36
|
+
// Success 渐变色系
|
|
37
|
+
--xt-color-success-light-3: rgb(149, 212, 117);
|
|
38
|
+
--xt-color-success-light-5: rgb(179, 225, 157);
|
|
39
|
+
--xt-color-success-light-7: rgb(209, 237, 196);
|
|
40
|
+
--xt-color-success-light-8: rgb(225, 243, 216);
|
|
41
|
+
--xt-color-success-light-9: rgb(240, 249, 235);
|
|
42
|
+
--xt-color-success-dark-2: rgb(82, 155, 46);
|
|
43
|
+
|
|
44
|
+
// Warning 渐变色系
|
|
45
|
+
--xt-color-warning-light-3: rgb(238, 190, 119);
|
|
46
|
+
--xt-color-warning-light-5: rgb(243, 209, 158);
|
|
47
|
+
--xt-color-warning-light-7: rgb(248, 227, 197);
|
|
48
|
+
--xt-color-warning-light-8: rgb(250, 236, 216);
|
|
49
|
+
--xt-color-warning-light-9: rgb(253, 246, 236);
|
|
50
|
+
--xt-color-warning-dark-2: rgb(184, 130, 48);
|
|
51
|
+
|
|
52
|
+
// Danger 渐变色系
|
|
53
|
+
--xt-color-danger-light-3: rgb(248, 152, 152);
|
|
54
|
+
--xt-color-danger-light-5: rgb(250, 182, 182);
|
|
55
|
+
--xt-color-danger-light-7: rgb(252, 211, 211);
|
|
56
|
+
--xt-color-danger-light-8: rgb(253, 226, 226);
|
|
57
|
+
--xt-color-danger-light-9: rgb(254, 240, 240);
|
|
58
|
+
--xt-color-danger-dark-2: rgb(196, 86, 86);
|
|
59
|
+
|
|
60
|
+
// Error 渐变色系
|
|
61
|
+
--xt-color-error-light-3: rgb(248, 152, 152);
|
|
62
|
+
--xt-color-error-light-5: rgb(250, 182, 182);
|
|
63
|
+
--xt-color-error-light-7: rgb(252, 211, 211);
|
|
64
|
+
--xt-color-error-light-8: rgb(253, 226, 226);
|
|
65
|
+
--xt-color-error-light-9: rgb(254, 240, 240);
|
|
66
|
+
--xt-color-error-dark-2: rgb(196, 86, 86);
|
|
67
|
+
|
|
68
|
+
// Info 渐变色系
|
|
69
|
+
--xt-color-info-light-3: rgb(177, 179, 184);
|
|
70
|
+
--xt-color-info-light-5: rgb(200, 201, 204);
|
|
71
|
+
--xt-color-info-light-7: rgb(222, 223, 224);
|
|
72
|
+
--xt-color-info-light-8: rgb(233, 233, 235);
|
|
73
|
+
--xt-color-info-light-9: rgb(244, 244, 245);
|
|
74
|
+
--xt-color-info-dark-2: rgb(115, 118, 122);
|
|
75
|
+
|
|
76
|
+
// 背景颜色
|
|
77
|
+
--xt-bg-color: #ffffff;
|
|
78
|
+
--xt-bg-color-page: #f2f3f5;
|
|
79
|
+
--xt-bg-color-overlay: #ffffff;
|
|
80
|
+
|
|
81
|
+
// 文字颜色
|
|
82
|
+
--xt-text-color-primary: #303133;
|
|
83
|
+
--xt-text-color-regular: #606266;
|
|
84
|
+
--xt-text-color-secondary: #909399;
|
|
85
|
+
--xt-text-color-placeholder: #a8abb2;
|
|
86
|
+
--xt-text-color-disabled: #c0c4cc;
|
|
87
|
+
|
|
88
|
+
// 边框颜色
|
|
89
|
+
--xt-border-color: #dcdfe6;
|
|
90
|
+
--xt-border-color-light: #e4e7ed;
|
|
91
|
+
--xt-border-color-lighter: #ebeef5;
|
|
92
|
+
--xt-border-color-extra-light: #f2f6fc;
|
|
93
|
+
--xt-border-color-dark: #d4d7de;
|
|
94
|
+
--xt-border-color-darker: #cdd0d6;
|
|
95
|
+
|
|
96
|
+
// 填充颜色
|
|
97
|
+
--xt-fill-color: #f0f2f5;
|
|
98
|
+
--xt-fill-color-light: #f5f7fa;
|
|
99
|
+
--xt-fill-color-lighter: #fafafa;
|
|
100
|
+
--xt-fill-color-extra-light: #fafcff;
|
|
101
|
+
--xt-fill-color-dark: #ebedf0;
|
|
102
|
+
--xt-fill-color-darker: #e6e8eb;
|
|
103
|
+
--xt-fill-color-blank: #ffffff;
|
|
104
|
+
|
|
105
|
+
// 阴影
|
|
106
|
+
--xt-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);
|
|
107
|
+
--xt-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);
|
|
108
|
+
--xt-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);
|
|
109
|
+
--xt-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);
|
|
110
|
+
|
|
111
|
+
// 禁用状态颜色
|
|
112
|
+
--xt-disabled-bg-color: var(--xt-fill-color-light);
|
|
113
|
+
--xt-disabled-text-color: var(--xt-text-color-placeholder);
|
|
114
|
+
--xt-disabled-border-color: var(--xt-border-color-light);
|
|
115
|
+
|
|
116
|
+
// 遮罩颜色
|
|
117
|
+
--xt-overlay-color: rgba(0, 0, 0, .8);
|
|
118
|
+
--xt-overlay-color-light: rgba(0, 0, 0, .7);
|
|
119
|
+
--xt-overlay-color-lighter: rgba(0, 0, 0, .5);
|
|
120
|
+
--xt-mask-color: rgba(255, 255, 255, .9);
|
|
121
|
+
--xt-mask-color-extra-light: rgba(255, 255, 255, .3);
|
|
122
|
+
|
|
123
|
+
// 边框
|
|
124
|
+
--xt-border-width: 1px;
|
|
125
|
+
--xt-border-style: solid;
|
|
126
|
+
--xt-border-color-hover: var(--xt-text-color-disabled);
|
|
127
|
+
--xt-border: var(--xt-border-width) var(--xt-border-style) var(--xt-border-color);
|
|
128
|
+
|
|
129
|
+
// SVG 灰度
|
|
130
|
+
--xt-svg-monochrome-grey: var(--xt-border-color);
|
|
131
|
+
|
|
132
|
+
// 字体大小
|
|
133
|
+
--xt-font-size-extra-large: 20px;
|
|
134
|
+
--xt-font-size-large: 18px;
|
|
135
|
+
--xt-font-size-medium: 16px;
|
|
136
|
+
--xt-font-size-base: 14px;
|
|
137
|
+
--xt-font-size-small: 13px;
|
|
138
|
+
--xt-font-size-extra-small: 12px;
|
|
139
|
+
|
|
140
|
+
// 字体
|
|
141
|
+
--xt-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
|
|
142
|
+
--xt-font-weight-primary: 500;
|
|
143
|
+
--xt-font-line-height-primary: 24px;
|
|
144
|
+
|
|
145
|
+
// 层级
|
|
146
|
+
--xt-index-normal: 1;
|
|
147
|
+
--xt-index-top: 1000;
|
|
148
|
+
--xt-index-popper: 2000;
|
|
149
|
+
|
|
150
|
+
// 圆角
|
|
151
|
+
--xt-border-radius-base: 4px;
|
|
152
|
+
--xt-border-radius-small: 2px;
|
|
153
|
+
--xt-border-radius-round: 20px;
|
|
154
|
+
--xt-border-radius-circle: 100%;
|
|
155
|
+
|
|
156
|
+
// 过渡动画
|
|
157
|
+
--xt-transition-duration: .3s;
|
|
158
|
+
--xt-transition-duration-fast: .2s;
|
|
159
|
+
--xt-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);
|
|
160
|
+
--xt-transition-function-fast-bezier: cubic-bezier(.23, 1, .32, 1);
|
|
161
|
+
--xt-transition-all: all var(--xt-transition-duration) var(--xt-transition-function-ease-in-out-bezier);
|
|
162
|
+
--xt-transition-fade: opacity var(--xt-transition-duration) var(--xt-transition-function-fast-bezier);
|
|
163
|
+
--xt-transition-md-fade: transform var(--xt-transition-duration) var(--xt-transition-function-fast-bezier), opacity var(--xt-transition-duration) var(--xt-transition-function-fast-bezier);
|
|
164
|
+
--xt-transition-fade-linear: opacity var(--xt-transition-duration-fast) linear;
|
|
165
|
+
--xt-transition-border: border-color var(--xt-transition-duration-fast) var(--xt-transition-function-ease-in-out-bezier);
|
|
166
|
+
--xt-transition-box-shadow: box-shadow var(--xt-transition-duration-fast) var(--xt-transition-function-ease-in-out-bezier);
|
|
167
|
+
--xt-transition-color: color var(--xt-transition-duration-fast) var(--xt-transition-function-ease-in-out-bezier);
|
|
168
|
+
|
|
169
|
+
// 组件尺寸
|
|
170
|
+
--xt-component-size-large: 40px;
|
|
171
|
+
--xt-component-size: 32px;
|
|
172
|
+
--xt-component-size-small: 24px;
|
|
173
|
+
|
|
174
|
+
// 间距
|
|
175
|
+
--xt-spacing-xs: 8px;
|
|
176
|
+
--xt-spacing-sm: 12px;
|
|
177
|
+
--xt-spacing-md: 16px;
|
|
178
|
+
--xt-spacing-lg: 24px;
|
|
179
|
+
--xt-spacing-xl: 32px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// ============================
|
|
183
|
+
// 暗色主题(参考 Element Plus)
|
|
184
|
+
// ============================
|
|
185
|
+
:root[data-theme="dark"],
|
|
186
|
+
[data-theme="dark"], html.dark {
|
|
187
|
+
color-scheme: dark;
|
|
188
|
+
--xt-color-primary: #409eff;
|
|
189
|
+
--xt-color-primary-light-3: rgb(51, 117, 185);
|
|
190
|
+
--xt-color-primary-light-5: rgb(42, 89, 138);
|
|
191
|
+
--xt-color-primary-light-7: rgb(33, 61, 91);
|
|
192
|
+
--xt-color-primary-light-8: rgb(29, 48, 67);
|
|
193
|
+
--xt-color-primary-light-9: rgb(24, 34, 43);
|
|
194
|
+
--xt-color-primary-dark-2: rgb(102, 177, 255);
|
|
195
|
+
--xt-color-success: #67c23a;
|
|
196
|
+
--xt-color-success-light-3: rgb(78, 142, 47);
|
|
197
|
+
--xt-color-success-light-5: rgb(62, 107, 39);
|
|
198
|
+
--xt-color-success-light-7: rgb(45, 72, 31);
|
|
199
|
+
--xt-color-success-light-8: rgb(37, 55, 28);
|
|
200
|
+
--xt-color-success-light-9: rgb(28, 37, 24);
|
|
201
|
+
--xt-color-success-dark-2: rgb(133, 206, 97);
|
|
202
|
+
--xt-color-warning: #e6a23c;
|
|
203
|
+
--xt-color-warning-light-3: rgb(167, 119, 48);
|
|
204
|
+
--xt-color-warning-light-5: rgb(125, 91, 40);
|
|
205
|
+
--xt-color-warning-light-7: rgb(83, 63, 32);
|
|
206
|
+
--xt-color-warning-light-8: rgb(62, 48, 28);
|
|
207
|
+
--xt-color-warning-light-9: rgb(41, 34, 24);
|
|
208
|
+
--xt-color-warning-dark-2: rgb(235, 181, 99);
|
|
209
|
+
--xt-color-danger: #f56c6c;
|
|
210
|
+
--xt-color-danger-light-3: rgb(178, 82, 82);
|
|
211
|
+
--xt-color-danger-light-5: rgb(133, 64, 64);
|
|
212
|
+
--xt-color-danger-light-7: rgb(88, 46, 46);
|
|
213
|
+
--xt-color-danger-light-8: rgb(65, 38, 38);
|
|
214
|
+
--xt-color-danger-light-9: rgb(42, 29, 29);
|
|
215
|
+
--xt-color-danger-dark-2: rgb(247, 137, 137);
|
|
216
|
+
--xt-color-error: #f56c6c;
|
|
217
|
+
--xt-color-error-light-3: rgb(178, 82, 82);
|
|
218
|
+
--xt-color-error-light-5: rgb(133, 64, 64);
|
|
219
|
+
--xt-color-error-light-7: rgb(88, 46, 46);
|
|
220
|
+
--xt-color-error-light-8: rgb(65, 38, 38);
|
|
221
|
+
--xt-color-error-light-9: rgb(42, 29, 29);
|
|
222
|
+
--xt-color-error-dark-2: rgb(247, 137, 137);
|
|
223
|
+
--xt-color-info: #909399;
|
|
224
|
+
--xt-color-info-light-3: rgb(107, 109, 113);
|
|
225
|
+
--xt-color-info-light-5: rgb(82, 84, 87);
|
|
226
|
+
--xt-color-info-light-7: rgb(57, 58, 60);
|
|
227
|
+
--xt-color-info-light-8: rgb(45, 45, 47);
|
|
228
|
+
--xt-color-info-light-9: rgb(32, 33, 33);
|
|
229
|
+
--xt-color-info-dark-2: rgb(166, 169, 173);
|
|
230
|
+
--xt-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .36), 0px 8px 20px rgba(0, 0, 0, .72);
|
|
231
|
+
--xt-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .72);
|
|
232
|
+
--xt-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .72);
|
|
233
|
+
--xt-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;
|
|
234
|
+
--xt-bg-color-page: #0a0a0a;
|
|
235
|
+
--xt-bg-color: #141414;
|
|
236
|
+
--xt-bg-color-overlay: #1d1e1f;
|
|
237
|
+
--xt-text-color-primary: #E5EAF3;
|
|
238
|
+
--xt-text-color-regular: #CFD3DC;
|
|
239
|
+
--xt-text-color-secondary: #A3A6AD;
|
|
240
|
+
--xt-text-color-placeholder: #8D9095;
|
|
241
|
+
--xt-text-color-disabled: #6C6E72;
|
|
242
|
+
--xt-border-color-darker: #636466;
|
|
243
|
+
--xt-border-color-dark: #58585B;
|
|
244
|
+
--xt-border-color: #4C4D4F;
|
|
245
|
+
--xt-border-color-light: #414243;
|
|
246
|
+
--xt-border-color-lighter: #363637;
|
|
247
|
+
--xt-border-color-extra-light: #2B2B2C;
|
|
248
|
+
--xt-fill-color-darker: #424243;
|
|
249
|
+
--xt-fill-color-dark: #39393A;
|
|
250
|
+
--xt-fill-color: #303030;
|
|
251
|
+
--xt-fill-color-light: #262727;
|
|
252
|
+
--xt-fill-color-lighter: #1D1D1D;
|
|
253
|
+
--xt-fill-color-extra-light: #191919;
|
|
254
|
+
--xt-fill-color-blank: #141414;
|
|
255
|
+
--xt-mask-color: rgba(0, 0, 0, .8);
|
|
256
|
+
--xt-mask-color-extra-light: rgba(0, 0, 0, .3)
|
|
257
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
$xt-color-bg-primary: #ffffff; // 主背景色 - 白色
|
|
2
|
-
$xt-color-bg-secondary: #f5f7fa; // 次要背景色 - 浅灰
|
|
3
|
-
$xt-color-bg-hover: #f5f5f5; // 悬停背景色
|
|
4
|
-
$xt-color-bg-container: #f0f0f2; // 容器背景色
|
|
5
|
-
$xt-color-bg-main: #ffffff; // 主内容区域背景色
|
|
1
|
+
$xt-color-bg-primary: #ffffff; // 主背景色 - 白色
|
|
2
|
+
$xt-color-bg-secondary: #f5f7fa; // 次要背景色 - 浅灰
|
|
3
|
+
$xt-color-bg-hover: #f5f5f5; // 悬停背景色
|
|
4
|
+
$xt-color-bg-container: #f0f0f2; // 容器背景色
|
|
5
|
+
$xt-color-bg-main: #ffffff; // 主内容区域背景色
|
|
6
6
|
$xt-color-bg-overlay: #ffffff; // 浮层背景色
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$xt-border-radius-base: 4px; // 基准圆角
|
|
2
|
-
$xt-border-radius-small: 2px; // 小圆角
|
|
3
|
-
$xt-border-radius-round: 20px; // 圆角(胶囊状)
|
|
1
|
+
$xt-border-radius-base: 4px; // 基准圆角
|
|
2
|
+
$xt-border-radius-small: 2px; // 小圆角
|
|
3
|
+
$xt-border-radius-round: 20px; // 圆角(胶囊状)
|
|
4
4
|
$xt-border-radius-circle: 50%; // 圆形
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$xt-color-border: #DCDFE6; // 边框颜色 - 标准
|
|
2
|
-
$xt-color-border-light: #E4E7ED; // 边框浅色
|
|
3
|
-
$xt-color-border-lighter: #EBEEF5; // 边框更浅色
|
|
1
|
+
$xt-color-border: #DCDFE6; // 边框颜色 - 标准
|
|
2
|
+
$xt-color-border-light: #E4E7ED; // 边框浅色
|
|
3
|
+
$xt-color-border-lighter: #EBEEF5; // 边框更浅色
|
|
4
4
|
$xt-color-border-extra-light: #F2F6FC; // 边框极浅色
|