bhd-components 0.2.2 → 0.2.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/README.md +0 -10
- package/dist/table.esm.es5.development.css +113 -23
- package/dist/table.esm.es5.development.js +14 -9
- package/dist/table.esm.es5.production.css +1 -1
- package/dist/table.esm.es5.production.js +1 -1
- package/es2017/index.d.ts +72 -68
- package/es2017/index.js +9 -2
- package/es2017/message/index.d.ts +18 -0
- package/es2017/message/index.js +42 -0
- package/es2017/message/index.module.less +91 -0
- package/es2017/pagination/index.d.ts +4 -0
- package/es2017/pagination/index.js +13 -0
- package/es2017/pagination/index.module.less +49 -0
- package/es2017/table/index.js +12 -8
- package/es2017/table/index.module.less +128 -5
- package/es2017/tableSelect/index.d.ts +3 -0
- package/es2017/tableSelect/index.js +74 -0
- package/es2017/tableSelect/index.module.less +21 -0
- package/es2017/theme/variable.less +625 -0
- package/es2017/titleBar/index.d.ts +11 -0
- package/es2017/titleBar/index.js +51 -0
- package/es2017/titleBar/index.module.less +44 -0
- package/es2017/viewImage/index.d.ts +3 -0
- package/es2017/viewImage/index.js +180 -0
- package/es2017/viewImage/index.module.less +170 -0
- package/esm/index.d.ts +72 -68
- package/esm/index.js +9 -2
- package/esm/message/index.d.ts +18 -0
- package/esm/message/index.js +42 -0
- package/esm/message/index.module.less +91 -0
- package/esm/pagination/index.d.ts +4 -0
- package/esm/pagination/index.js +13 -0
- package/esm/pagination/index.module.less +49 -0
- package/esm/table/index.js +12 -8
- package/esm/table/index.module.less +128 -5
- package/esm/tableSelect/index.d.ts +3 -0
- package/esm/tableSelect/index.js +74 -0
- package/esm/tableSelect/index.module.less +21 -0
- package/esm/theme/variable.less +625 -0
- package/esm/titleBar/index.d.ts +11 -0
- package/esm/titleBar/index.js +51 -0
- package/esm/titleBar/index.module.less +44 -0
- package/esm/viewImage/index.d.ts +3 -0
- package/esm/viewImage/index.js +185 -0
- package/esm/viewImage/index.module.less +170 -0
- package/package.json +6 -5
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
// 基础梯度色值
|
|
2
|
+
@Red-01: #fff4f0;
|
|
3
|
+
@Red-02: #ffe8e0;
|
|
4
|
+
@Red-03: #ffc7b8;
|
|
5
|
+
@Red-04: #ffa38f;
|
|
6
|
+
@Red-05: #ff7d66;
|
|
7
|
+
@Red-06: #f4523b;
|
|
8
|
+
@Red-07: #cf3527;
|
|
9
|
+
@Red-08: #a81f18;
|
|
10
|
+
@Red-09: #820e0c;
|
|
11
|
+
@Red-10: #5c0709;
|
|
12
|
+
|
|
13
|
+
@Blue-01: #f0f8ff;
|
|
14
|
+
@Blue-02: #e6f0fc;
|
|
15
|
+
@Blue-03: #d9ebff;
|
|
16
|
+
@Blue-04: #b0d2ff;
|
|
17
|
+
@Blue-05: #86b5fc;
|
|
18
|
+
@Blue-06: #5991ef;
|
|
19
|
+
@Blue-07: #406ec9;
|
|
20
|
+
@Blue-08: #2c50a3;
|
|
21
|
+
@Blue-09: #1b357d;
|
|
22
|
+
@Blue-10: #122257;
|
|
23
|
+
|
|
24
|
+
@Gold-01: #feffe6;
|
|
25
|
+
@Gold-02: #ffffb8;
|
|
26
|
+
@Gold-03: #fffb8f;
|
|
27
|
+
@Gold-04: #fff566;
|
|
28
|
+
@Gold-05: #ffec3d;
|
|
29
|
+
@Gold-06: #fadb14;
|
|
30
|
+
@Gold-07: #d4b106;
|
|
31
|
+
@Gold-08: #ad8b00;
|
|
32
|
+
@Gold-09: #876800;
|
|
33
|
+
@Gold-10: #614700;
|
|
34
|
+
|
|
35
|
+
@Orange-01: #fff4e6;
|
|
36
|
+
@Orange-02: #ffdbb0;
|
|
37
|
+
@Orange-03: #ffc587;
|
|
38
|
+
@Orange-04: #ffac5e;
|
|
39
|
+
@Orange-05: #ff9036;
|
|
40
|
+
@Orange-06: #f8700c;
|
|
41
|
+
@Orange-07: #d15000;
|
|
42
|
+
@Orange-08: #d15000;
|
|
43
|
+
@Orange-09: #852a00;
|
|
44
|
+
@Orange-10: #5e1b00;
|
|
45
|
+
|
|
46
|
+
@Cyan-01: #f0fffb;
|
|
47
|
+
@Cyan-02: #ccfff2;
|
|
48
|
+
@Cyan-03: #a3ffeb;
|
|
49
|
+
@Cyan-04: #74f2db;
|
|
50
|
+
@Cyan-05: #49e6ce;
|
|
51
|
+
@Cyan-06: #23d9c3;
|
|
52
|
+
@Cyan-07: #14b3a5;
|
|
53
|
+
@Cyan-08: #088c86;
|
|
54
|
+
@Cyan-09: #016664;
|
|
55
|
+
@Cyan-10: #003f40;
|
|
56
|
+
|
|
57
|
+
@Gray-Tr-01: rgba(255, 255, 255, 1);
|
|
58
|
+
@Gray-Tr-02: rgba(0, 0, 0, 0.02);
|
|
59
|
+
@Gray-Tr-03: rgba(0, 0, 0, 0.04);
|
|
60
|
+
@Gray-Tr-04: rgba(0, 0, 0, 0.06);
|
|
61
|
+
@Gray-Tr-05: rgba(0, 0, 0, 0.15);
|
|
62
|
+
@Gray-Tr-06: rgba(0, 0, 0, 0.25);
|
|
63
|
+
@Gray-Tr-07: rgba(0, 0, 0, 0.45);
|
|
64
|
+
@Gray-Tr-08: rgba(0, 0, 0, 0.65);
|
|
65
|
+
@Gray-Tr-09: rgba(0, 0, 0, 0.85);
|
|
66
|
+
@Gray-Tr-10: rgba(0, 0, 0, 1);
|
|
67
|
+
|
|
68
|
+
@Gray-01: #ffffff;
|
|
69
|
+
@Gray-02: #fafafa;
|
|
70
|
+
@Gray-03: #f5f5f5;
|
|
71
|
+
@Gray-04: #ebebeb;
|
|
72
|
+
@Gray-05: #d9d9d9;
|
|
73
|
+
@Gray-06: #bfbfbf;
|
|
74
|
+
@Gray-07: #8c8c8c;
|
|
75
|
+
@Gray-08: #595959;
|
|
76
|
+
@Gray-09: #262626;
|
|
77
|
+
@Gray-10: #000000;
|
|
78
|
+
|
|
79
|
+
/* 变量色值 */
|
|
80
|
+
|
|
81
|
+
/* "color-background-layout": {
|
|
82
|
+
"value": "{Gray-01}",
|
|
83
|
+
"type": "color",
|
|
84
|
+
"description": "布局(全局)背景色"
|
|
85
|
+
} */
|
|
86
|
+
@color-background-layout: @Gray-01;
|
|
87
|
+
/* "color-background-elevated": {
|
|
88
|
+
"value": "{Gray-01}",
|
|
89
|
+
"type": "color",
|
|
90
|
+
"description": "浮层容器背景色"
|
|
91
|
+
} */
|
|
92
|
+
@color-background-elevated: @Gray-01;
|
|
93
|
+
|
|
94
|
+
/* "color-background-fill": {
|
|
95
|
+
"value": "{Gray-05}",
|
|
96
|
+
"type": "color",
|
|
97
|
+
"description": "一级填充色(用于突出内容部分)"
|
|
98
|
+
}, */
|
|
99
|
+
@color-background-fill: @Gray-05;
|
|
100
|
+
|
|
101
|
+
/* "color-background-fillsecondary": {
|
|
102
|
+
"value": "{Gray-04}",
|
|
103
|
+
"type": "color",
|
|
104
|
+
"description": "二级填充色(可以较为明显地勾勒出元素形体,也可以作为三级填充色的 Hover 状态)"
|
|
105
|
+
}, */
|
|
106
|
+
@color-background-fillsecondary: @Gray-04;
|
|
107
|
+
/* "color-background-fillsecondary-Tr": {
|
|
108
|
+
"value": "{Gray-Tr-04}",
|
|
109
|
+
"type": "color",
|
|
110
|
+
"description": "二级填充色(可以较为明显地勾勒出元素形体,也可以作为三级填充色的 Hover 状态)"
|
|
111
|
+
}, */
|
|
112
|
+
@color-background-fillsecondary-Tr: @Gray-Tr-04;
|
|
113
|
+
/* "color-background-filltertiary": {
|
|
114
|
+
"value": "{Gray-03}",
|
|
115
|
+
"type": "color",
|
|
116
|
+
"description": "三级级填充色(用于勾勒出元素形体的场景,如无强调需求的情况下,建议使用三级填色作为默认填色。)"
|
|
117
|
+
}, */
|
|
118
|
+
@color-background-filltertiary: @Gray-03;
|
|
119
|
+
/* "color-background-filltertiary-Tr": {
|
|
120
|
+
"value": "{Gray-Tr-03}",
|
|
121
|
+
"type": "color",
|
|
122
|
+
"description": "三级级填充色(用于勾勒出元素形体的场景,如无强调需求的情况下,建议使用三级填色作为默认填色。)"
|
|
123
|
+
}, */
|
|
124
|
+
@color-background-filltertiary-Tr: @Gray-Tr-03;
|
|
125
|
+
/* "color-background-fillquaternary": {
|
|
126
|
+
"value": "{Gray-02}",
|
|
127
|
+
"type": "color",
|
|
128
|
+
"description": "四级级填充色(最弱一级的填充色,适用于不易引起注意的色块,例如斑马纹、区分边界的色块等。)"
|
|
129
|
+
}, */
|
|
130
|
+
@color-background-fillquaternary: @Gray-02;
|
|
131
|
+
|
|
132
|
+
/* "color-background-fillquaternary-Tr": {
|
|
133
|
+
"value": "{Gray-Tr-02}",
|
|
134
|
+
"type": "color",
|
|
135
|
+
"description": "四级级填充色(最弱一级的填充色,适用于不易引起注意的色块,例如斑马纹、区分边界的色块等。)"
|
|
136
|
+
}, */
|
|
137
|
+
@color-background-fillquaternary-Tr: @Gray-Tr-02;
|
|
138
|
+
/* "color-background-quinary": {
|
|
139
|
+
"value": "{Gray-01}",
|
|
140
|
+
"type": "color",
|
|
141
|
+
"description": "五级级填充色(适用于列表或文本框背景填充)"
|
|
142
|
+
}, */
|
|
143
|
+
|
|
144
|
+
@color-background-quinary: @Gray-01;
|
|
145
|
+
|
|
146
|
+
/*
|
|
147
|
+
"color-background-primary-base": {
|
|
148
|
+
"value": "{Red-06}",
|
|
149
|
+
"type": "color",
|
|
150
|
+
"description": "主色背景"
|
|
151
|
+
}, */
|
|
152
|
+
@color-background-primary-base: @Red-06;
|
|
153
|
+
/* "color-background-primary-active": {
|
|
154
|
+
"value": "{Red-07}",
|
|
155
|
+
"type": "color",
|
|
156
|
+
"description": "主色背景颜色,激活状态"
|
|
157
|
+
}, */
|
|
158
|
+
@color-background-primary-active: @Red-07;
|
|
159
|
+
/* "color-background-primary-hover": {
|
|
160
|
+
"value": "{Red-05}",
|
|
161
|
+
"type": "color",
|
|
162
|
+
"description": "主色背景颜色,悬浮状态"
|
|
163
|
+
}, */
|
|
164
|
+
@color-background-primary-hover: @Red-05;
|
|
165
|
+
/* "color-background-primary-weak": {
|
|
166
|
+
"value": "{Red-01}",
|
|
167
|
+
"type": "color",
|
|
168
|
+
"description": "主色背景颜色(弱背景),可以在文本后面使用"
|
|
169
|
+
}, */
|
|
170
|
+
@color-background-primary-weak: @Red-01;
|
|
171
|
+
/* "color-background-primary-weak-hover": {
|
|
172
|
+
"value": "{Red-02}",
|
|
173
|
+
"type": "color",
|
|
174
|
+
"description": "主色浅色背景,悬浮状态"
|
|
175
|
+
}, */
|
|
176
|
+
@color-background-primary-weak-hover: @Red-02;
|
|
177
|
+
/* "color-background-success-base": {
|
|
178
|
+
"value": "{Cyan-06}",
|
|
179
|
+
"type": "color",
|
|
180
|
+
"description": "成功背景颜色"
|
|
181
|
+
}, */
|
|
182
|
+
@color-background-success-base: @Cyan-06;
|
|
183
|
+
/* "color-background-success-weak": {
|
|
184
|
+
"value": "{Cyan-01}",
|
|
185
|
+
"type": "color",
|
|
186
|
+
"description": "成功浅色背景"
|
|
187
|
+
}, */
|
|
188
|
+
@color-background-success-weak: @Cyan-01;
|
|
189
|
+
/* "color-background-warning-base": {
|
|
190
|
+
"value": "{Gold-06}",
|
|
191
|
+
"type": "color",
|
|
192
|
+
"description": "警告背景颜色"
|
|
193
|
+
}, */
|
|
194
|
+
@color-background-warning-base: @Gold-06;
|
|
195
|
+
/* "color-background-warning-weak": {
|
|
196
|
+
"value": "{Gold-01}",
|
|
197
|
+
"type": "color",
|
|
198
|
+
"description": "警告浅色背景"
|
|
199
|
+
}, */
|
|
200
|
+
@color-background-warning-weak: @Gold-01;
|
|
201
|
+
/* "color-background-error-base": {
|
|
202
|
+
"value": "{Orange-06}",
|
|
203
|
+
"type": "color",
|
|
204
|
+
"description": "错误背景颜色"
|
|
205
|
+
}, */
|
|
206
|
+
@color-background-error-base: @Orange-06;
|
|
207
|
+
/* "color-background-error-weak": {
|
|
208
|
+
"value": "{Orange-01}",
|
|
209
|
+
"type": "color",
|
|
210
|
+
"description": "错误浅色背景"
|
|
211
|
+
}, */
|
|
212
|
+
@color-background-error-weak: @Orange-01;
|
|
213
|
+
/* "color-background-info-base": {
|
|
214
|
+
"value": "{Blue-06}",
|
|
215
|
+
"type": "color",
|
|
216
|
+
"description": "信息色"
|
|
217
|
+
}, */
|
|
218
|
+
@color-background-info-base: @Blue-06;
|
|
219
|
+
/* "color-background-info-weak": {
|
|
220
|
+
"value": "{Blue-01}",
|
|
221
|
+
"type": "color",
|
|
222
|
+
"description": "信息浅色背景"
|
|
223
|
+
}, */
|
|
224
|
+
@color-background-info-weak: @Blue-01;
|
|
225
|
+
/* "color-border": {
|
|
226
|
+
"value": "{Gray-05}",
|
|
227
|
+
"type": "color",
|
|
228
|
+
"description": "一级边框色"
|
|
229
|
+
}, */
|
|
230
|
+
@color-border: @Gray-05;
|
|
231
|
+
/* "color-border-Tr": {
|
|
232
|
+
"value": "{Gray-Tr-05}",
|
|
233
|
+
"type": "color",
|
|
234
|
+
"description": "一级边框色"
|
|
235
|
+
}, */
|
|
236
|
+
@color-border-Tr: @Gray-Tr-05;
|
|
237
|
+
/* "color-border-secondary": {
|
|
238
|
+
"value": "{Gray-04}",
|
|
239
|
+
"type": "color",
|
|
240
|
+
"description": "二级边框色"
|
|
241
|
+
}, */
|
|
242
|
+
@color-border-secondary: @Gray-04;
|
|
243
|
+
/* "color-border-secondary-Tr": {
|
|
244
|
+
"value": "{Gray-Tr-04}",
|
|
245
|
+
"type": "color",
|
|
246
|
+
"description": "二级边框色"
|
|
247
|
+
}, */
|
|
248
|
+
@color-border-secondary-Tr: @Gray-Tr-04;
|
|
249
|
+
/* "color-border-primary": {
|
|
250
|
+
"value": "{Red-06}",
|
|
251
|
+
"type": "color",
|
|
252
|
+
"description": "主色边框色"
|
|
253
|
+
}, */
|
|
254
|
+
@color-border-primary: @Red-06;
|
|
255
|
+
/* "color-border-primary-hover": {
|
|
256
|
+
"value": "{Red-05}",
|
|
257
|
+
"type": "color",
|
|
258
|
+
"description": "主色边框色,悬停状态"
|
|
259
|
+
}, */
|
|
260
|
+
@color-border-primary-hover: @Red-05;
|
|
261
|
+
|
|
262
|
+
/* "color-border-primary-active": {
|
|
263
|
+
"value": "{Red-07}",
|
|
264
|
+
"type": "color",
|
|
265
|
+
"description": "主色边框色,悬停状态"
|
|
266
|
+
}, */
|
|
267
|
+
@color-border-primary-active: @Red-07;
|
|
268
|
+
/* "color-border-success": {
|
|
269
|
+
"value": "{Cyan-06}",
|
|
270
|
+
"type": "color",
|
|
271
|
+
"description": "成功边框色"
|
|
272
|
+
}, */
|
|
273
|
+
@color-border-success: @Cyan-06;
|
|
274
|
+
/* "color-border-warning": {
|
|
275
|
+
"value": "{Gold-06}",
|
|
276
|
+
"type": "color",
|
|
277
|
+
"description": "警告边框色"
|
|
278
|
+
}, */
|
|
279
|
+
@color-border-warning: @Gold-06;
|
|
280
|
+
/* "color-border-error": {
|
|
281
|
+
"value": "{Orange-06}",
|
|
282
|
+
"type": "color",
|
|
283
|
+
"description": "报错边框色"
|
|
284
|
+
}, */
|
|
285
|
+
@color-border-error: @Orange-06;
|
|
286
|
+
/* "color-text": {
|
|
287
|
+
"value": "{Gray-09}",
|
|
288
|
+
"type": "color",
|
|
289
|
+
"description": "一级文本色"
|
|
290
|
+
}, */
|
|
291
|
+
@color-text: @Gray-09;
|
|
292
|
+
/* "color-text-Tr": {
|
|
293
|
+
"value": "{Gray-Tr-09}",
|
|
294
|
+
"type": "color",
|
|
295
|
+
"description": "一级文本色"
|
|
296
|
+
}, */
|
|
297
|
+
@color-text-Tr: @Gray-Tr-09;
|
|
298
|
+
/* "color-text-Secondary": {
|
|
299
|
+
"value": "{Gray-08}",
|
|
300
|
+
"type": "color",
|
|
301
|
+
"description": "二级文本色"
|
|
302
|
+
}, */
|
|
303
|
+
@color-text-Secondary: @Gray-08;
|
|
304
|
+
/* "color-text-Secondary-Tr": {
|
|
305
|
+
"value": "{Gray-Tr-08}",
|
|
306
|
+
"type": "color",
|
|
307
|
+
"description": "二级文本色"
|
|
308
|
+
}, */
|
|
309
|
+
@color-text-Secondary-Tr: @Gray-Tr-08;
|
|
310
|
+
/* "color-text-tertiary": {
|
|
311
|
+
"value": "{Gray-07}",
|
|
312
|
+
"type": "color",
|
|
313
|
+
"description": "三级文本色"
|
|
314
|
+
}, */
|
|
315
|
+
@color-text-tertiary: @Gray-07;
|
|
316
|
+
/* "color-text-tertiary-Tr": {
|
|
317
|
+
"value": "{Gray-Tr-07}",
|
|
318
|
+
"type": "color",
|
|
319
|
+
"description": "三级文本色"
|
|
320
|
+
}, */
|
|
321
|
+
@color-text-tertiary-Tr: @Gray-Tr-07;
|
|
322
|
+
/* "color-text-quaternary": {
|
|
323
|
+
"value": "{Gray-06}",
|
|
324
|
+
"type": "color",
|
|
325
|
+
"description": "四级文本色"
|
|
326
|
+
}, */
|
|
327
|
+
@color-text-quaternary: @Gray-06;
|
|
328
|
+
|
|
329
|
+
/* "color-text-quaternary-Tr": {
|
|
330
|
+
"value": "{Gray-Tr-06}",
|
|
331
|
+
"type": "color",
|
|
332
|
+
"description": "四级文本色"
|
|
333
|
+
}, */
|
|
334
|
+
@color-text-quaternary-Tr: @Gray-Tr-06;
|
|
335
|
+
/* "color-text-quaternary": {
|
|
336
|
+
"value": "{Gray-01}",
|
|
337
|
+
"type": "color",
|
|
338
|
+
"description": "五级文本色"
|
|
339
|
+
}, */
|
|
340
|
+
@color-text-quinary: @Gray-01;
|
|
341
|
+
|
|
342
|
+
/* "color-text-quaternary-Tr": {
|
|
343
|
+
"value": "{Gray-Tr-06}",
|
|
344
|
+
"type": "color",
|
|
345
|
+
"description": "五级文本色"
|
|
346
|
+
}, */
|
|
347
|
+
@color-text-quinary-Tr: @Gray-Tr-01;
|
|
348
|
+
/* "color-text-primary": {
|
|
349
|
+
"value": "{Red-06}",
|
|
350
|
+
"type": "color",
|
|
351
|
+
"description": "品牌文本色"
|
|
352
|
+
}, */
|
|
353
|
+
@color-text-primary: @Red-06;
|
|
354
|
+
|
|
355
|
+
/* "color-text-primary-hover": {
|
|
356
|
+
"value": "{Red-05}",
|
|
357
|
+
"type": "color",
|
|
358
|
+
"description": "品牌文本色,悬浮状态"
|
|
359
|
+
}, */
|
|
360
|
+
@color-text-primary-hover: @Red-05;
|
|
361
|
+
/* "color-text-primary-active": {
|
|
362
|
+
"value": "{Red-07}",
|
|
363
|
+
"type": "color",
|
|
364
|
+
"description": "品牌文本色,激活状态"
|
|
365
|
+
}, */
|
|
366
|
+
@color-text-primary-active: @Red-07;
|
|
367
|
+
/* "color-text-success": {
|
|
368
|
+
"value": "{Cyan-06}",
|
|
369
|
+
"type": "color",
|
|
370
|
+
"description": "成功文本色"
|
|
371
|
+
}, */
|
|
372
|
+
@color-text-success: @Cyan-06;
|
|
373
|
+
/* "color-text-warning": {
|
|
374
|
+
"value": "{Gold-06}",
|
|
375
|
+
"type": "color",
|
|
376
|
+
"description": "警告文本色"
|
|
377
|
+
}, */
|
|
378
|
+
@color-text-warning: @Gold-06;
|
|
379
|
+
/* "color-text-error": {
|
|
380
|
+
"value": "{Orange-06}",
|
|
381
|
+
"type": "color",
|
|
382
|
+
"description": "报错文本色"
|
|
383
|
+
}, */
|
|
384
|
+
@color-text-error: @Orange-06;
|
|
385
|
+
/* "color-text-info": {
|
|
386
|
+
"value": "{Blue-06}",
|
|
387
|
+
"type": "color",
|
|
388
|
+
"description": "信息文本色"
|
|
389
|
+
}, */
|
|
390
|
+
@color-text-info: @Blue-06;
|
|
391
|
+
/* "color-text-info-hover": {
|
|
392
|
+
"value": "{Blue-05}",
|
|
393
|
+
"type": "color",
|
|
394
|
+
"description": "信息文本色,悬停状态"
|
|
395
|
+
}, */
|
|
396
|
+
@color-text-info-hover: @Blue-05;
|
|
397
|
+
/* "color-text-info-active": {
|
|
398
|
+
"value": "{Blue-07}",
|
|
399
|
+
"type": "color",
|
|
400
|
+
"description": "信息文本色,激活状态"
|
|
401
|
+
}, */
|
|
402
|
+
@color-text-info-active: @Blue-07;
|
|
403
|
+
/* "color-data-visualization-01": {
|
|
404
|
+
"value": "#F4523B",
|
|
405
|
+
"type": "color",
|
|
406
|
+
"description": "可视化颜色1"
|
|
407
|
+
}, */
|
|
408
|
+
@color-data-visualization-01: #f4523b;
|
|
409
|
+
/* "color-data-visualization-02": {
|
|
410
|
+
"value": "#5991EF",
|
|
411
|
+
"type": "color",
|
|
412
|
+
"description": "可视化颜色2"
|
|
413
|
+
}, */
|
|
414
|
+
@color-data-visualization-02: #5991ef;
|
|
415
|
+
/* "color-data-visualization-03": {
|
|
416
|
+
"value": "#F8700C",
|
|
417
|
+
"type": "color",
|
|
418
|
+
"description": "可视化颜色3"
|
|
419
|
+
}, */
|
|
420
|
+
@color-data-visualization-03: #f8700c;
|
|
421
|
+
/* "color-data-visualization-04": {
|
|
422
|
+
"value": "#3ED22D",
|
|
423
|
+
"type": "color",
|
|
424
|
+
"description": "可视化颜色4"
|
|
425
|
+
}, */
|
|
426
|
+
@color-data-visualization-04: #3ed22d;
|
|
427
|
+
/* "color-data-visualization-05": {
|
|
428
|
+
"value": "#DC2368",
|
|
429
|
+
"type": "color",
|
|
430
|
+
"description": "可视化颜色5"
|
|
431
|
+
}, */
|
|
432
|
+
@color-data-visualization-05: #dc2368;
|
|
433
|
+
/* "color-data-visualization-06": {
|
|
434
|
+
"value": "#2AC3D5",
|
|
435
|
+
"type": "color",
|
|
436
|
+
"description": "可视化颜色6"
|
|
437
|
+
}, */
|
|
438
|
+
@color-data-visualization-06: #2ac3d5;
|
|
439
|
+
/* "color-data-visualization-07": {
|
|
440
|
+
"value": "#F3D30C",
|
|
441
|
+
"type": "color",
|
|
442
|
+
"description": "可视化颜色7"
|
|
443
|
+
}, */
|
|
444
|
+
@color-data-visualization-07: #f3d30c;
|
|
445
|
+
/* "color-data-visualization-08": {
|
|
446
|
+
"value": "#342AD5",
|
|
447
|
+
"type": "color",
|
|
448
|
+
"description": "可视化颜色8"
|
|
449
|
+
}, */
|
|
450
|
+
@color-data-visualization-08: #342ad5;
|
|
451
|
+
/* "color-data-visualization-09": {
|
|
452
|
+
"value": "#FF69B1",
|
|
453
|
+
"type": "color",
|
|
454
|
+
"description": "可视化颜色9"
|
|
455
|
+
}, */
|
|
456
|
+
@color-data-visualization-09: #ff69b1;
|
|
457
|
+
/* "color-data-visualization-10": {
|
|
458
|
+
"value": "#45DEA6",
|
|
459
|
+
"type": "color",
|
|
460
|
+
"description": "可视化颜色10"
|
|
461
|
+
}, */
|
|
462
|
+
@color-data-visualization-10: #45dea6;
|
|
463
|
+
/* "color-data-visualization-11": {
|
|
464
|
+
"value": "#CB43E1",
|
|
465
|
+
"type": "color",
|
|
466
|
+
"description": "可视化颜色11"
|
|
467
|
+
}, */
|
|
468
|
+
@color-data-visualization-11: #cb43e1;
|
|
469
|
+
/* "color-data-visualization-12": {
|
|
470
|
+
"value": "#69A8FF",
|
|
471
|
+
"type": "color",
|
|
472
|
+
"description": "可视化颜色12"
|
|
473
|
+
} */
|
|
474
|
+
@color-data-visualization-12: #69a8ff;
|
|
475
|
+
|
|
476
|
+
/*
|
|
477
|
+
"color-icon": {
|
|
478
|
+
"value": "$Red-06",
|
|
479
|
+
"type": "color",
|
|
480
|
+
"description": "图标,默认"
|
|
481
|
+
}
|
|
482
|
+
*/
|
|
483
|
+
@color-icon: @Red-06;
|
|
484
|
+
/*
|
|
485
|
+
"color-icon-hover": {
|
|
486
|
+
"value": "$Red-05",
|
|
487
|
+
"type": "color",
|
|
488
|
+
"description": "图标,悬浮状态"
|
|
489
|
+
}
|
|
490
|
+
*/
|
|
491
|
+
|
|
492
|
+
@color-icon-hover: @Red-05;
|
|
493
|
+
|
|
494
|
+
/*
|
|
495
|
+
"color-icon-active": {
|
|
496
|
+
"value": "$Red-07",
|
|
497
|
+
"type": "color",
|
|
498
|
+
"description": "图标,激活状态"
|
|
499
|
+
}
|
|
500
|
+
*/
|
|
501
|
+
|
|
502
|
+
@color-icon-active: @Red-07;
|
|
503
|
+
/*
|
|
504
|
+
"color-icon-success": {
|
|
505
|
+
"value": "$Cyan-06",
|
|
506
|
+
"type": "color",
|
|
507
|
+
"description": "图标,成功色"
|
|
508
|
+
}
|
|
509
|
+
*/
|
|
510
|
+
@color-icon-success: @Cyan-06;
|
|
511
|
+
|
|
512
|
+
/*
|
|
513
|
+
"color-icon-warning": {
|
|
514
|
+
"value": "$Gold-06",
|
|
515
|
+
"type": "color",
|
|
516
|
+
"description": "图标,警告色"
|
|
517
|
+
}
|
|
518
|
+
*/
|
|
519
|
+
@color-icon-warning: @Gold-06;
|
|
520
|
+
/*
|
|
521
|
+
"color-icon-error": {
|
|
522
|
+
"value": "$Orange-06",
|
|
523
|
+
"type": "color",
|
|
524
|
+
"description": "图标,报错色"
|
|
525
|
+
}
|
|
526
|
+
*/
|
|
527
|
+
@color-icon-error: @Orange-06;
|
|
528
|
+
/*
|
|
529
|
+
"color-icon-fill": {
|
|
530
|
+
"value": "$Gray-08",
|
|
531
|
+
"type": "color",
|
|
532
|
+
"description": "图标,一级填充色"
|
|
533
|
+
}
|
|
534
|
+
*/
|
|
535
|
+
@color-icon-fill: @Gray-08;
|
|
536
|
+
|
|
537
|
+
/*
|
|
538
|
+
"color-icon-fill(Tr)": {
|
|
539
|
+
"value": "$Gray(Tr)-08",
|
|
540
|
+
"type": "color",
|
|
541
|
+
"description": "图标,一级填充色0.65"
|
|
542
|
+
}
|
|
543
|
+
*/
|
|
544
|
+
@color-icon-fill-Tr: @Gray-Tr-08;
|
|
545
|
+
/*
|
|
546
|
+
"color-icon-Secondary": {
|
|
547
|
+
"value": "$Gray-07",
|
|
548
|
+
"type": "color",
|
|
549
|
+
"description": "图标,二级填充色"
|
|
550
|
+
}
|
|
551
|
+
*/
|
|
552
|
+
@color-icon-Secondary: @Gray-07;
|
|
553
|
+
/*
|
|
554
|
+
"color-icon-Secondary(Tr)": {
|
|
555
|
+
"value": "$Gray(Tr)-07",
|
|
556
|
+
"type": "color",
|
|
557
|
+
"description": "图标,二级填充色0.45"
|
|
558
|
+
}
|
|
559
|
+
*/
|
|
560
|
+
@color-icon-Secondary-Tr: @Gray-Tr-07;
|
|
561
|
+
/*
|
|
562
|
+
"color-icon-tertiary": {
|
|
563
|
+
"value": "$Gray-06",
|
|
564
|
+
"type": "color",
|
|
565
|
+
"description": "图标,三级填充色"
|
|
566
|
+
}
|
|
567
|
+
*/
|
|
568
|
+
|
|
569
|
+
@color-icon-tertiary: @Gray-06;
|
|
570
|
+
|
|
571
|
+
/*
|
|
572
|
+
"color-icon-tertiary(Tr)": {
|
|
573
|
+
"value": "$Gray(Tr)-06",
|
|
574
|
+
"type": "color",
|
|
575
|
+
"description": "图标,三级填充色0.25"
|
|
576
|
+
}
|
|
577
|
+
*/
|
|
578
|
+
|
|
579
|
+
@color-icon-tertiary-Tr: @Gray-Tr-06;
|
|
580
|
+
/*
|
|
581
|
+
"color-icon-quaternary": {
|
|
582
|
+
"value": "$Gray-04",
|
|
583
|
+
"type": "color",
|
|
584
|
+
"description": "图标,四级填充色"
|
|
585
|
+
}
|
|
586
|
+
*/
|
|
587
|
+
|
|
588
|
+
@color-icon-quaternary: @Gray-04;
|
|
589
|
+
|
|
590
|
+
/*
|
|
591
|
+
"color-icon-quaternary(Tr)": {
|
|
592
|
+
"value": "$Gray(Tr)-04",
|
|
593
|
+
"type": "color",
|
|
594
|
+
"description": "图标,四级填充色0.06"
|
|
595
|
+
}
|
|
596
|
+
*/
|
|
597
|
+
|
|
598
|
+
@color-icon-quaternary-Tr: @Gray-Tr-04;
|
|
599
|
+
/*
|
|
600
|
+
"color-icon-quinary": {
|
|
601
|
+
"value": "$Gray-02",
|
|
602
|
+
"type": "color",
|
|
603
|
+
"description": "图标,五级填充色"
|
|
604
|
+
}
|
|
605
|
+
*/
|
|
606
|
+
@color-icon-quinary: @Gray-02;
|
|
607
|
+
/*
|
|
608
|
+
"color-icon-quinary(Tr)": {
|
|
609
|
+
"value": "$Gray(Tr)-02",
|
|
610
|
+
"type": "color",
|
|
611
|
+
"description": "图标,五级填充色0.06"
|
|
612
|
+
}
|
|
613
|
+
*/
|
|
614
|
+
|
|
615
|
+
@color-icon-quinary-Tr: @Gray-Tr-02;
|
|
616
|
+
|
|
617
|
+
/*
|
|
618
|
+
"color-icon-senary": {
|
|
619
|
+
"value": "$Gray-01",
|
|
620
|
+
"type": "color",
|
|
621
|
+
"description": "图标,六级填充色"
|
|
622
|
+
}
|
|
623
|
+
*/
|
|
624
|
+
|
|
625
|
+
@color-icon-senary: @Gray-01;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface TitleBarProps {
|
|
3
|
+
title?: React.ReactElement;
|
|
4
|
+
leftIcon?: React.ReactElement;
|
|
5
|
+
subTitle?: React.ReactElement;
|
|
6
|
+
rightContent: () => React.ReactElement;
|
|
7
|
+
wrapClassName?: string;
|
|
8
|
+
rightMaxWidth?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const TitleBar: (props: TitleBarProps) => JSX.Element;
|
|
11
|
+
export default TitleBar;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { useEffect, useRef } from "react";
|
|
4
|
+
// import {render} from "react-dom";
|
|
5
|
+
import { createRoot } from "react-dom";
|
|
6
|
+
import styles from "./index.module.less";
|
|
7
|
+
const TitleBar = (props)=>{
|
|
8
|
+
let { title , leftIcon , subTitle , rightContent , wrapClassName ="" , rightMaxWidth =45 } = props;
|
|
9
|
+
useRef(null);
|
|
10
|
+
const renderRightContent = ()=>{
|
|
11
|
+
const dom = rightContent();
|
|
12
|
+
let div = document.createElement("div");
|
|
13
|
+
let root = createRoot(div);
|
|
14
|
+
root.render(dom);
|
|
15
|
+
console.log("rootroot", root, div.clientWidth);
|
|
16
|
+
return dom;
|
|
17
|
+
};
|
|
18
|
+
useEffect(()=>{}, []);
|
|
19
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
20
|
+
className: `${styles.titleBar} ${wrapClassName}`,
|
|
21
|
+
children: [
|
|
22
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
23
|
+
className: styles.left,
|
|
24
|
+
children: [
|
|
25
|
+
leftIcon && /*#__PURE__*/ _jsx("div", {
|
|
26
|
+
className: styles.leftIcon,
|
|
27
|
+
children: leftIcon
|
|
28
|
+
}),
|
|
29
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
30
|
+
className: styles.leftContent,
|
|
31
|
+
children: [
|
|
32
|
+
/*#__PURE__*/ _jsx("div", {
|
|
33
|
+
className: styles.leftTitle,
|
|
34
|
+
children: title
|
|
35
|
+
}),
|
|
36
|
+
subTitle && /*#__PURE__*/ _jsx("div", {
|
|
37
|
+
className: styles.leftSubTitle,
|
|
38
|
+
children: subTitle
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
})
|
|
42
|
+
]
|
|
43
|
+
}),
|
|
44
|
+
rightContent && /*#__PURE__*/ _jsx("div", {
|
|
45
|
+
className: styles.right,
|
|
46
|
+
children: renderRightContent()
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export default TitleBar;
|