@tendaui/components 1.0.0 → 1.0.2
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/LICENSE +21 -21
- package/README.md +176 -176
- package/alert/Alert.tsx +3 -2
- package/button/_example/base.tsx +10 -0
- package/button/_example/icon.tsx +20 -0
- package/color-picker/ColorPickPanel.tsx +9 -0
- package/color-picker/ColorPicker.tsx +67 -0
- package/color-picker/components/panel/alpha.tsx +32 -0
- package/color-picker/components/panel/format/index.tsx +47 -0
- package/color-picker/components/panel/format/inputs.tsx +119 -0
- package/color-picker/components/panel/header.tsx +37 -0
- package/color-picker/components/panel/hue.tsx +20 -0
- package/color-picker/components/panel/index.tsx +191 -0
- package/color-picker/components/panel/saturation.tsx +81 -0
- package/color-picker/components/panel/slider.tsx +76 -0
- package/color-picker/components/panel/swatches.tsx +84 -0
- package/color-picker/components/trigger.tsx +49 -0
- package/color-picker/defaultProps.ts +7 -0
- package/color-picker/helpers.ts +53 -0
- package/color-picker/hooks/useClassNames.ts +9 -0
- package/color-picker/hooks/useStyles.ts +39 -0
- package/color-picker/index.ts +12 -0
- package/color-picker/style/css.js +1 -0
- package/color-picker/style/index.js +1 -0
- package/color-picker/type.ts +143 -0
- package/color-picker/utils/color-picker/cmyk.ts +89 -0
- package/color-picker/utils/color-picker/color.ts +467 -0
- package/color-picker/utils/color-picker/constants.ts +187 -0
- package/color-picker/utils/color-picker/draggable.ts +100 -0
- package/color-picker/utils/color-picker/format.ts +95 -0
- package/color-picker/utils/color-picker/gradient.ts +243 -0
- package/color-picker/utils/color-picker/index.ts +7 -0
- package/color-picker/utils/color-picker/types.ts +33 -0
- package/common/observe.ts +33 -0
- package/common.ts +20 -0
- package/config-provider/ConfigContext.tsx +4 -1
- package/config-provider/index.ts +1 -1
- package/dialog/DialogCard.tsx +4 -6
- package/dialog/hooks/useDialogPosition.ts +1 -2
- package/dialog/plugin.tsx +3 -2
- package/drawer/Drawer.tsx +264 -0
- package/drawer/defaultProps.ts +19 -0
- package/drawer/hooks/useDrag.ts +98 -0
- package/drawer/hooks/useLockStyle.ts +36 -0
- package/drawer/index.ts +5 -0
- package/drawer/style/css.js +1 -0
- package/drawer/style/index.js +1 -0
- package/drawer/type.ts +193 -0
- package/drawer/utils/index.ts +76 -0
- package/fireworks/Fireworks.tsx +138 -0
- package/fireworks/index.ts +10 -0
- package/fireworks/style/css.js +0 -0
- package/fireworks/style/index.js +0 -0
- package/fireworks/type.ts +72 -0
- package/form/FormItem.tsx +5 -5
- package/form/easing.ts +10 -0
- package/form/scroll.ts +124 -0
- package/form/type.ts +519 -519
- package/global-config/default-config.ts +95 -0
- package/global-config/locale/ar_KW.ts +270 -0
- package/global-config/locale/en_US.ts +280 -0
- package/global-config/locale/it_IT.ts +287 -0
- package/global-config/locale/ja_JP.ts +279 -0
- package/global-config/locale/ko_KR.ts +279 -0
- package/global-config/locale/ru_RU.ts +288 -0
- package/global-config/locale/zh_CN.ts +279 -0
- package/global-config/locale/zh_TW.ts +279 -0
- package/global-config/mobile/default-config.ts +6 -0
- package/global-config/mobile/locale/ar_KW.ts +113 -0
- package/global-config/mobile/locale/en_US.ts +114 -0
- package/global-config/mobile/locale/it_IT.ts +114 -0
- package/global-config/mobile/locale/ja_JP.ts +101 -0
- package/global-config/mobile/locale/ko_KR.ts +101 -0
- package/global-config/mobile/locale/ru_RU.ts +113 -0
- package/global-config/mobile/locale/zh_CN.ts +101 -0
- package/global-config/mobile/locale/zh_TW.ts +101 -0
- package/global-config/t.ts +111 -0
- package/hooks/useControlled.ts +3 -3
- package/hooks/useDeepEffect.ts +32 -0
- package/hooks/useGlobalIcon.ts +10 -3
- package/hooks/useLastest.ts +2 -6
- package/hooks/useResizeObserve.ts +36 -0
- package/index.ts +10 -7
- package/input/Input.tsx +4 -1
- package/input/defaultProps.ts +0 -2
- package/input/type.ts +1 -6
- package/input-number/InputNumber.tsx +124 -0
- package/input-number/defaultProps.ts +17 -0
- package/input-number/index.ts +9 -0
- package/input-number/style/css.js +1 -0
- package/input-number/style/index.js +1 -0
- package/input-number/type.ts +147 -0
- package/input-number/useInputNumber.tsx +270 -0
- package/ip-input/IPInput.tsx +516 -0
- package/ip-input/defaultProps.ts +11 -0
- package/ip-input/index.ts +3 -0
- package/ip-input/style/css.js +1 -0
- package/ip-input/style/index.js +1 -0
- package/ip-input/type.ts +115 -0
- package/ip-input/utils.ts +112 -0
- package/layout/Aside.tsx +38 -0
- package/layout/Layout.tsx +104 -0
- package/layout/defaultProps.ts +9 -0
- package/layout/index.ts +9 -0
- package/layout/style/css.js +1 -0
- package/layout/style/index.js +1 -0
- package/layout/type.ts +43 -0
- package/list/List.tsx +144 -0
- package/list/ListItem.tsx +36 -0
- package/list/ListItemMeta.tsx +40 -0
- package/list/defaultProps.ts +11 -0
- package/list/hooks/useListVirtualScroll.ts +82 -0
- package/list/index.ts +11 -0
- package/list/style/css.js +1 -0
- package/list/style/index.js +1 -0
- package/list/type.ts +93 -0
- package/locale/LocalReceiver.ts +55 -0
- package/locale/ar_KW.ts +7 -0
- package/locale/en_US.ts +7 -0
- package/locale/it_IT.ts +6 -0
- package/locale/ja_JP.ts +6 -0
- package/locale/ko_KR.ts +6 -0
- package/locale/ru_RU.ts +6 -0
- package/locale/zh_CN.ts +5 -0
- package/locale/zh_TW.ts +7 -0
- package/notification/NotifyContainer.tsx +2 -2
- package/notification/NotifyContext.tsx +1 -0
- package/package.json +6 -3
- package/popup/Popup.tsx +34 -10
- package/radio/Radio.tsx +24 -0
- package/radio/RadioGroup.tsx +159 -0
- package/radio/defaultProps.ts +18 -0
- package/radio/index.ts +12 -0
- package/radio/style/css.js +0 -0
- package/radio/style/index.js +1 -0
- package/radio/type.ts +115 -0
- package/radio/useKeyboard.ts +36 -0
- package/select/hooks/useOptions.ts +10 -7
- package/select/hooks/usePanelVirtualScroll.ts +1 -1
- package/select/type.ts +382 -382
- package/select-input/type.ts +280 -280
- package/slider/Slider.tsx +270 -0
- package/slider/SliderHandleButton.tsx +50 -0
- package/slider/defaultProps.ts +15 -0
- package/slider/index.ts +9 -0
- package/slider/style/css.js +1 -0
- package/slider/style/index.js +1 -0
- package/slider/type.ts +77 -0
- package/style/all.js +26 -0
- package/styles/_global.scss +39 -39
- package/styles/_vars.scss +358 -386
- package/styles/components/alert/_index.scss +175 -175
- package/styles/components/alert/_vars.scss +39 -39
- package/styles/components/badge/_index.scss +70 -70
- package/styles/components/badge/_vars.scss +25 -25
- package/styles/components/button/_index.scss +499 -511
- package/styles/components/button/_mixins.scss +39 -39
- package/styles/components/button/_vars.scss +120 -122
- package/styles/components/checkbox/_index.scss +158 -158
- package/styles/components/checkbox/_var.scss +60 -60
- package/styles/components/color-picker/_index.scss +586 -0
- package/styles/components/color-picker/_mixins.scss +0 -0
- package/styles/components/color-picker/_vars.scss +84 -0
- package/styles/components/dialog/_animate.scss +135 -135
- package/styles/components/dialog/_index.scss +311 -311
- package/styles/components/dialog/_vars.scss +59 -59
- package/styles/components/drawer/_index.scss +205 -0
- package/styles/components/drawer/_mixins.scss +1 -0
- package/styles/components/drawer/_var.scss +53 -0
- package/styles/components/fireworks/_index.scss +86 -0
- package/styles/components/fireworks/_vars.scss +4 -0
- package/styles/components/form/_index.scss +174 -174
- package/styles/components/form/_mixins.scss +76 -76
- package/styles/components/form/_vars.scss +100 -100
- package/styles/components/input/_index.scss +349 -349
- package/styles/components/input/_mixins.scss +116 -116
- package/styles/components/input/_vars.scss +134 -134
- package/styles/components/input-number/_index.scss +353 -0
- package/styles/components/input-number/_mixins.scss +0 -0
- package/styles/components/input-number/_vars.scss +65 -0
- package/styles/components/ip-input/_index.scss +280 -0
- package/styles/components/layout/_index.scss +47 -0
- package/styles/components/layout/_mixin.scss +0 -0
- package/styles/components/layout/_vars.scss +18 -0
- package/styles/components/layout/doc.scss +74 -0
- package/styles/components/list/_index.scss +172 -0
- package/styles/components/list/_mixins.scss +0 -0
- package/styles/components/list/_vars.scss +41 -0
- package/styles/components/loading/_index.scss +112 -112
- package/styles/components/loading/_vars.scss +39 -39
- package/styles/components/notification/_index.scss +160 -160
- package/styles/components/notification/_mixins.scss +12 -12
- package/styles/components/notification/_vars.scss +59 -59
- package/styles/components/popup/_index.scss +82 -82
- package/styles/components/popup/_mixin.scss +149 -149
- package/styles/components/popup/_var.scss +31 -31
- package/styles/components/radio/_index.scss +376 -0
- package/styles/components/radio/_mixins.scss +0 -0
- package/styles/components/radio/_var.scss +92 -0
- package/styles/components/select/_index.scss +290 -290
- package/styles/components/select/_var.scss +65 -65
- package/styles/components/select-input/_index.scss +5 -5
- package/styles/components/select-input/_var.scss +3 -3
- package/styles/components/slider/_index.scss +241 -0
- package/styles/components/slider/_mixins.scss +0 -0
- package/styles/components/slider/_vars.scss +50 -0
- package/styles/components/switch/_index.scss +279 -279
- package/styles/components/switch/_vars.scss +61 -61
- package/styles/components/table/_index.scss +193 -0
- package/styles/components/table/_var.scss +52 -0
- package/styles/components/tabs/_index.scss +165 -0
- package/styles/components/tabs/_mixins.scss +11 -0
- package/styles/components/tabs/_vars.scss +71 -0
- package/styles/components/tag/_index.scss +316 -316
- package/styles/components/tag/_var.scss +85 -85
- package/styles/components/tag-input/_index.scss +163 -163
- package/styles/components/tag-input/_vars.scss +16 -16
- package/styles/globals.css +250 -250
- package/styles/mixins/_focus.scss +7 -7
- package/styles/mixins/_layout.scss +32 -32
- package/styles/mixins/_reset.scss +10 -10
- package/styles/mixins/_scrollbar.scss +31 -31
- package/styles/mixins/_text.scss +48 -48
- package/styles/rillple.css +16 -16
- package/styles/scrollbar.css +41 -41
- package/styles/themes/_dark.scss +191 -191
- package/styles/themes/_font.scss +69 -79
- package/styles/themes/_index.scss +5 -5
- package/styles/themes/_light.scss +190 -190
- package/styles/themes/_radius.scss +9 -9
- package/styles/themes/_size.scss +68 -68
- package/styles/themes.css +66 -66
- package/styles/utilities/_animation.scss +57 -57
- package/styles/utilities/_tips.scss +9 -9
- package/tab/TabBar.tsx +85 -0
- package/tab/TabNav.tsx +103 -0
- package/tab/TabNavItem.tsx +80 -0
- package/tab/TabPanel.tsx +42 -0
- package/tab/Tabs.tsx +71 -0
- package/tab/defaultProps.ts +19 -0
- package/tab/index.ts +7 -0
- package/tab/style/index.js +1 -0
- package/tab/type.ts +125 -0
- package/tab/useTabClass.ts +20 -0
- package/table/Cell.tsx +109 -0
- package/table/TBody.tsx +77 -0
- package/table/THead.tsx +63 -0
- package/table/TR.tsx +78 -0
- package/table/Table.tsx +73 -0
- package/table/defaultProps.ts +14 -0
- package/table/hooks/index.ts +4 -0
- package/table/hooks/useTableClassName.ts +63 -0
- package/table/hooks/useTableStyle.ts +93 -0
- package/table/index.ts +7 -0
- package/table/style/css.js +1 -0
- package/table/style/index.js +1 -0
- package/table/type.ts +192 -0
- package/tag/Tag.tsx +1 -1
- package/tag-input/hooks/useTagList.tsx +1 -1
- package/utils/dom.ts +4 -0
- package/utils/forwardRefWithStatics.ts +1 -4
- package/utils/input-number/large-number.ts +423 -0
- package/utils/input-number/number.ts +257 -0
- package/utils/isFragment.ts +6 -6
- package/utils/log/index.ts +3 -0
- package/utils/log/log.ts +30 -0
- package/utils/log/types.ts +12 -0
- package/utils/number.ts +21 -0
- package/utils/scroll.ts +26 -0
- package/utils/style.ts +2 -4
package/styles/mixins/_text.scss
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
// 变量定义
|
|
2
|
-
$tips-text-default: $text-color-placeholder;
|
|
3
|
-
$tips-text-error: $error-color;
|
|
4
|
-
$tips-text-warning: $warning-color;
|
|
5
|
-
$tips-text-success: $success-color;
|
|
6
|
-
|
|
7
|
-
// 建议维护一个 map,方便按状态取值
|
|
8
|
-
$tips-text-colors: (
|
|
9
|
-
default: $tips-text-default,
|
|
10
|
-
error: $tips-text-error,
|
|
11
|
-
warning: $tips-text-warning,
|
|
12
|
-
success: $tips-text-success,
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
// 单行省略
|
|
16
|
-
@mixin text-ellipsis() {
|
|
17
|
-
white-space: nowrap;
|
|
18
|
-
word-wrap: normal;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
text-overflow: ellipsis;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// 多行省略
|
|
24
|
-
@mixin text-ellipsis-multi-line($line: 2) {
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
|
|
27
|
-
/* stylelint-disable-next-line */
|
|
28
|
-
display: -webkit-box;
|
|
29
|
-
-webkit-line-clamp: $line;
|
|
30
|
-
|
|
31
|
-
/* stylelint-disable-next-line */
|
|
32
|
-
-webkit-box-orient: vertical;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// 提示文本状态
|
|
36
|
-
@mixin tips-text-status($status) {
|
|
37
|
-
.#{$prefix}-tips.#{$prefix}-is-#{$status} {
|
|
38
|
-
// color: map-get($tips-text-colors, $status);
|
|
39
|
-
color: #000;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
$tips-text-colors: (
|
|
44
|
-
default: $tips-text-default,
|
|
45
|
-
success: $tips-text-success,
|
|
46
|
-
warning: $tips-text-warning,
|
|
47
|
-
error: $tips-text-error,
|
|
48
|
-
);
|
|
1
|
+
// 变量定义
|
|
2
|
+
$tips-text-default: $text-color-placeholder;
|
|
3
|
+
$tips-text-error: $error-color;
|
|
4
|
+
$tips-text-warning: $warning-color;
|
|
5
|
+
$tips-text-success: $success-color;
|
|
6
|
+
|
|
7
|
+
// 建议维护一个 map,方便按状态取值
|
|
8
|
+
$tips-text-colors: (
|
|
9
|
+
default: $tips-text-default,
|
|
10
|
+
error: $tips-text-error,
|
|
11
|
+
warning: $tips-text-warning,
|
|
12
|
+
success: $tips-text-success,
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
// 单行省略
|
|
16
|
+
@mixin text-ellipsis() {
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
word-wrap: normal;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
text-overflow: ellipsis;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// 多行省略
|
|
24
|
+
@mixin text-ellipsis-multi-line($line: 2) {
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
|
|
27
|
+
/* stylelint-disable-next-line */
|
|
28
|
+
display: -webkit-box;
|
|
29
|
+
-webkit-line-clamp: $line;
|
|
30
|
+
|
|
31
|
+
/* stylelint-disable-next-line */
|
|
32
|
+
-webkit-box-orient: vertical;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 提示文本状态
|
|
36
|
+
@mixin tips-text-status($status) {
|
|
37
|
+
.#{$prefix}-tips.#{$prefix}-is-#{$status} {
|
|
38
|
+
// color: map-get($tips-text-colors, $status);
|
|
39
|
+
color: #000;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
$tips-text-colors: (
|
|
44
|
+
default: $tips-text-default,
|
|
45
|
+
success: $tips-text-success,
|
|
46
|
+
warning: $tips-text-warning,
|
|
47
|
+
error: $tips-text-error,
|
|
48
|
+
);
|
package/styles/rillple.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.ripple {
|
|
2
|
-
position: absolute;
|
|
3
|
-
border-radius: 50%;
|
|
4
|
-
background: rgba(255, 255, 255, 0.4);
|
|
5
|
-
transform: scale(0);
|
|
6
|
-
animation: ripple-animation 600ms linear;
|
|
7
|
-
pointer-events: none;
|
|
8
|
-
z-index: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@keyframes ripple-animation {
|
|
12
|
-
to {
|
|
13
|
-
transform: scale(4);
|
|
14
|
-
opacity: 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
.ripple {
|
|
2
|
+
position: absolute;
|
|
3
|
+
border-radius: 50%;
|
|
4
|
+
background: rgba(255, 255, 255, 0.4);
|
|
5
|
+
transform: scale(0);
|
|
6
|
+
animation: ripple-animation 600ms linear;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
z-index: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes ripple-animation {
|
|
12
|
+
to {
|
|
13
|
+
transform: scale(4);
|
|
14
|
+
opacity: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
package/styles/scrollbar.css
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
/* 自定义滚动条样式 */
|
|
2
|
-
.scrollbar-thin {
|
|
3
|
-
scrollbar-width: auto;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.scrollbar-thin::-webkit-scrollbar {
|
|
7
|
-
width: 6px;
|
|
8
|
-
height: 6px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.scrollbar-thin::-webkit-scrollbar-track {
|
|
12
|
-
background: transparent;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.scrollbar-thin::-webkit-scrollbar-thumb {
|
|
16
|
-
background-color: #d1d5db;
|
|
17
|
-
border-radius: 3px;
|
|
18
|
-
transition: background-color 0.2s ease;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
|
|
22
|
-
background-color: #9ca3af;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* 暗色模式 */
|
|
26
|
-
.dark .scrollbar-thin::-webkit-scrollbar-thumb {
|
|
27
|
-
background-color: #4b5563;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.dark .scrollbar-thin::-webkit-scrollbar-thumb:hover {
|
|
31
|
-
background-color: #6b7280;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* 隐藏滚动条但保持功能 */
|
|
35
|
-
.scrollbar-hide {
|
|
36
|
-
-ms-overflow-style: none;
|
|
37
|
-
scrollbar-width: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.scrollbar-hide::-webkit-scrollbar {
|
|
41
|
-
display: none;
|
|
1
|
+
/* 自定义滚动条样式 */
|
|
2
|
+
.scrollbar-thin {
|
|
3
|
+
scrollbar-width: auto;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.scrollbar-thin::-webkit-scrollbar {
|
|
7
|
+
width: 6px;
|
|
8
|
+
height: 6px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.scrollbar-thin::-webkit-scrollbar-track {
|
|
12
|
+
background: transparent;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.scrollbar-thin::-webkit-scrollbar-thumb {
|
|
16
|
+
background-color: #d1d5db;
|
|
17
|
+
border-radius: 3px;
|
|
18
|
+
transition: background-color 0.2s ease;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
|
|
22
|
+
background-color: #9ca3af;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* 暗色模式 */
|
|
26
|
+
.dark .scrollbar-thin::-webkit-scrollbar-thumb {
|
|
27
|
+
background-color: #4b5563;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dark .scrollbar-thin::-webkit-scrollbar-thumb:hover {
|
|
31
|
+
background-color: #6b7280;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* 隐藏滚动条但保持功能 */
|
|
35
|
+
.scrollbar-hide {
|
|
36
|
+
-ms-overflow-style: none;
|
|
37
|
+
scrollbar-width: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.scrollbar-hide::-webkit-scrollbar {
|
|
41
|
+
display: none;
|
|
42
42
|
}
|
package/styles/themes/_dark.scss
CHANGED
|
@@ -1,191 +1,191 @@
|
|
|
1
|
-
:root[theme-mode='dark'] {
|
|
2
|
-
--td-brand-color-1: #1b2f51;
|
|
3
|
-
--td-brand-color-2: #173463;
|
|
4
|
-
--td-brand-color-3: #143975;
|
|
5
|
-
--td-brand-color-4: #103d88;
|
|
6
|
-
--td-brand-color-5: #0d429a;
|
|
7
|
-
--td-brand-color-6: #054bbe;
|
|
8
|
-
--td-brand-color-7: #2667d4;
|
|
9
|
-
--td-brand-color-8: #4582e6;
|
|
10
|
-
--td-brand-color-9: #699ef5;
|
|
11
|
-
--td-brand-color-10: #96bbf8;
|
|
12
|
-
--td-warning-color-1: #4f2a1d;
|
|
13
|
-
--td-warning-color-2: #582f21;
|
|
14
|
-
--td-warning-color-3: #733c23;
|
|
15
|
-
--td-warning-color-4: #a75d2b;
|
|
16
|
-
--td-warning-color-5: #cf6e2d;
|
|
17
|
-
--td-warning-color-6: #dc7633;
|
|
18
|
-
--td-warning-color-7: #e8935c;
|
|
19
|
-
--td-warning-color-8: #ecbf91;
|
|
20
|
-
--td-warning-color-9: #eed7bf;
|
|
21
|
-
--td-warning-color-10: #f3e9dc;
|
|
22
|
-
--td-error-color-1: #472324;
|
|
23
|
-
--td-error-color-2: #5e2a2d;
|
|
24
|
-
--td-error-color-3: #703439;
|
|
25
|
-
--td-error-color-4: #83383e;
|
|
26
|
-
--td-error-color-5: #a03f46;
|
|
27
|
-
--td-error-color-6: #c64751;
|
|
28
|
-
--td-error-color-7: #de6670;
|
|
29
|
-
--td-error-color-8: #ec888e;
|
|
30
|
-
--td-error-color-9: #edb1b6;
|
|
31
|
-
--td-error-color-10: #eeced0;
|
|
32
|
-
--td-success-color-1: #193a2a;
|
|
33
|
-
--td-success-color-2: #1a4230;
|
|
34
|
-
--td-success-color-3: #17533d;
|
|
35
|
-
--td-success-color-4: #0d7a55;
|
|
36
|
-
--td-success-color-5: #059465;
|
|
37
|
-
--td-success-color-6: #43af8a;
|
|
38
|
-
--td-success-color-7: #46bf96;
|
|
39
|
-
--td-success-color-8: #80d2b6;
|
|
40
|
-
--td-success-color-9: #b4e1d3;
|
|
41
|
-
--td-success-color-10: #deede8;
|
|
42
|
-
--td-gray-color-1: #f3f3f3;
|
|
43
|
-
--td-gray-color-2: #eee;
|
|
44
|
-
--td-gray-color-3: #e8e8e8;
|
|
45
|
-
--td-gray-color-4: #ddd;
|
|
46
|
-
--td-gray-color-5: #c6c6c6;
|
|
47
|
-
--td-gray-color-6: #a6a6a6;
|
|
48
|
-
--td-gray-color-7: #8b8b8b;
|
|
49
|
-
--td-gray-color-8: #777;
|
|
50
|
-
--td-gray-color-9: #5e5e5e;
|
|
51
|
-
--td-gray-color-10: #4b4b4b;
|
|
52
|
-
--td-gray-color-11: #393939;
|
|
53
|
-
--td-gray-color-12: #2c2c2c;
|
|
54
|
-
--td-gray-color-13: #242424;
|
|
55
|
-
--td-gray-color-14: #181818;
|
|
56
|
-
|
|
57
|
-
// 文字 & 图标 颜色
|
|
58
|
-
--td-font-white-1: rgba(255, 255, 255, 90%);
|
|
59
|
-
--td-font-white-2: rgba(255, 255, 255, 55%);
|
|
60
|
-
--td-font-white-3: rgba(255, 255, 255, 35%);
|
|
61
|
-
--td-font-white-4: rgba(255, 255, 255, 22%);
|
|
62
|
-
--td-font-gray-1: rgba(0, 0, 0, 90%);
|
|
63
|
-
--td-font-gray-2: rgba(0, 0, 0, 60%);
|
|
64
|
-
--td-font-gray-3: rgba(0, 0, 0, 40%);
|
|
65
|
-
--td-font-gray-4: rgba(0, 0, 0, 26%);
|
|
66
|
-
|
|
67
|
-
// 基础颜色
|
|
68
|
-
--td-brand-color: var(--td-brand-color-8); // 色彩-品牌-可操作
|
|
69
|
-
--td-warning-color: var(--td-warning-color-5); // 色彩-功能-警告
|
|
70
|
-
--td-error-color: var(--td-error-color-6); // 色彩-功能-失败
|
|
71
|
-
--td-success-color: var(--td-success-color-5); // 色彩-功能-成功
|
|
72
|
-
|
|
73
|
-
// 基础颜色的扩展 用于 hover / 聚焦 / 禁用 / 点击 等状态
|
|
74
|
-
--td-brand-color-hover: var(--td-brand-color-7); // hover态
|
|
75
|
-
--td-brand-color-focus: var(--td-brand-color-2); // focus态,包括鼠标和键盘
|
|
76
|
-
--td-brand-color-active: var(--td-brand-color-9); // 点击态
|
|
77
|
-
--td-brand-color-disabled: var(--td-brand-color-3); // 禁用态
|
|
78
|
-
--td-brand-color-light: var(--td-brand-color-1); // 浅色的选中态
|
|
79
|
-
--td-brand-color-light-hover: var(--td-brand-color-2);
|
|
80
|
-
|
|
81
|
-
// 警告色扩展
|
|
82
|
-
--td-warning-color-hover: var(--td-warning-color-4);
|
|
83
|
-
--td-warning-color-focus: var(--td-warning-color-2);
|
|
84
|
-
--td-warning-color-active: var(--td-warning-color-6);
|
|
85
|
-
--td-warning-color-disabled: var(--td-warning-color-3);
|
|
86
|
-
--td-warning-color-light: var(--td-warning-color-1);
|
|
87
|
-
--td-warning-color-light-hover: var(--td-warning-color-2);
|
|
88
|
-
|
|
89
|
-
// 失败/错误色扩展
|
|
90
|
-
--td-error-color-hover: var(--td-error-color-5);
|
|
91
|
-
--td-error-color-focus: var(--td-error-color-2);
|
|
92
|
-
--td-error-color-active: var(--td-error-color-7);
|
|
93
|
-
--td-error-color-disabled: var(--td-error-color-3);
|
|
94
|
-
--td-error-color-light: var(--td-error-color-1);
|
|
95
|
-
--td-error-color-light-hover: var(--td-error-color-2);
|
|
96
|
-
|
|
97
|
-
// 成功色扩展
|
|
98
|
-
--td-success-color-hover: var(--td-success-color-4);
|
|
99
|
-
--td-success-color-focus: var(--td-success-color-2);
|
|
100
|
-
--td-success-color-active: var(--td-success-color-6);
|
|
101
|
-
--td-success-color-disabled: var(--td-success-color-3);
|
|
102
|
-
--td-success-color-light: var(--td-success-color-1);
|
|
103
|
-
--td-success-color-light-hover: var(--td-success-color-2);
|
|
104
|
-
|
|
105
|
-
// 遮罩
|
|
106
|
-
--td-mask-active: rgba(0, 0, 0, 40%); // 遮罩-弹出
|
|
107
|
-
--td-mask-disabled: rgba(0, 0, 0, 60%); // 遮罩-禁用
|
|
108
|
-
--td-mask-background: rgba(36, 36, 36, 96%); // 二维码遮罩
|
|
109
|
-
|
|
110
|
-
// 背景色
|
|
111
|
-
--td-bg-color-page: var(--td-gray-color-14); // 色彩 - page
|
|
112
|
-
--td-bg-color-container: var(--td-gray-color-13); // 色彩 - 容器
|
|
113
|
-
--td-bg-color-container-hover: var(--td-gray-color-12); // 色彩 - 容器 - hover
|
|
114
|
-
--td-bg-color-container-active: var(
|
|
115
|
-
--td-gray-color-10
|
|
116
|
-
); // 色彩 - 容器 - active
|
|
117
|
-
--td-bg-color-container-select: var(
|
|
118
|
-
--td-gray-color-9
|
|
119
|
-
); // 色彩 - 容器 - select
|
|
120
|
-
--td-bg-color-secondarycontainer: var(--td-gray-color-12); // 色彩 - 次级容器
|
|
121
|
-
--td-bg-color-secondarycontainer-hover: var(
|
|
122
|
-
--td-gray-color-11
|
|
123
|
-
); // 色彩 - 次级容器 - hover
|
|
124
|
-
--td-bg-color-secondarycontainer-active: var(
|
|
125
|
-
--td-gray-color-9
|
|
126
|
-
); // 色彩 - 次级容器 - active
|
|
127
|
-
--td-bg-color-component: var(--td-gray-color-11); // 色彩 - 组件
|
|
128
|
-
--td-bg-color-component-hover: var(--td-gray-color-10); // 色彩 - 组件 - hover
|
|
129
|
-
--td-bg-color-component-active: var(
|
|
130
|
-
--td-gray-color-9
|
|
131
|
-
); // 色彩 - 组件 - active
|
|
132
|
-
--td-bg-color-secondarycomponent: var(--td-gray-color-10); // 色彩 - 次级组件
|
|
133
|
-
--td-bg-color-secondarycomponent-hover: var(
|
|
134
|
-
--td-gray-color-9
|
|
135
|
-
); // 色彩 - 次级组件 - hover
|
|
136
|
-
--td-bg-color-secondarycomponent-active: var(
|
|
137
|
-
--td-gray-color-8
|
|
138
|
-
); // 色彩 - 次级组件 - active
|
|
139
|
-
--td-bg-color-component-disabled: var(
|
|
140
|
-
--td-gray-color-12
|
|
141
|
-
); // 色彩 - 组件 - disabled
|
|
142
|
-
|
|
143
|
-
// 特殊组件背景色,目前只用于 button、input 组件多主题场景,浅色主题下固定为白色,深色主题下为 transparent 适配背景颜色
|
|
144
|
-
--td-bg-color-specialcomponent: transparent;
|
|
145
|
-
|
|
146
|
-
// 文本颜色
|
|
147
|
-
--td-text-color-primary: var(--td-font-white-1); // 色彩-文字-主要
|
|
148
|
-
--td-text-color-secondary: var(--td-font-white-2); // 色彩-文字-次要
|
|
149
|
-
--td-text-color-placeholder: var(--td-font-white-3); // 色彩-文字-占位符/说明
|
|
150
|
-
--td-text-color-disabled: var(--td-font-white-4); // 色彩-文字-禁用
|
|
151
|
-
--td-text-color-anti: #fff; // 色彩-文字-反色
|
|
152
|
-
--td-text-color-brand: var(--td-brand-color-8); // 色彩-文字-品牌
|
|
153
|
-
--td-text-color-link: var(--td-brand-color-8); // 色彩-文字-链接
|
|
154
|
-
--td-text-color-watermark: rgba(255, 255, 255, 10%); // 色彩-文字-水印颜色
|
|
155
|
-
|
|
156
|
-
// 分割线
|
|
157
|
-
--td-border-level-1-color: var(--td-gray-color-11);
|
|
158
|
-
--td-component-stroke: var(--td-gray-color-11);
|
|
159
|
-
// 边框
|
|
160
|
-
--td-border-level-2-color: var(--td-gray-color-9);
|
|
161
|
-
--td-component-border: var(--td-gray-color-9);
|
|
162
|
-
|
|
163
|
-
// 基础/下层 投影 hover 使用的组件包括:表格 /
|
|
164
|
-
--td-shadow-1:
|
|
165
|
-
0 4px 6px rgba(0, 0, 0, 6%), 0 1px 10px rgba(0, 0, 0, 8%),
|
|
166
|
-
0 2px 4px rgba(0, 0, 0, 12%);
|
|
167
|
-
// 中层投影 下拉 使用的组件包括:下拉菜单 / 气泡确认框 / 选择器 /
|
|
168
|
-
--td-shadow-2:
|
|
169
|
-
0 8px 10px rgba(0, 0, 0, 12%), 0 3px 14px rgba(0, 0, 0, 10%),
|
|
170
|
-
0 5px 5px rgba(0, 0, 0, 16%);
|
|
171
|
-
// 上层投影(警示/弹窗)使用的组件包括:全局提示 / 消息通知
|
|
172
|
-
--td-shadow-3:
|
|
173
|
-
0 16px 24px rgba(0, 0, 0, 14%), 0 6px 30px rgba(0, 0, 0, 12%),
|
|
174
|
-
0 8px 10px rgba(0, 0, 0, 20%);
|
|
175
|
-
// 内投影 用于弹窗类组件(气泡确认框 / 全局提示 / 消息通知)的内描边
|
|
176
|
-
|
|
177
|
-
--td-shadow-inset-top: inset 0 0.5px 0 #5e5e5e;
|
|
178
|
-
--td-shadow-inset-right: inset 0.5px 0 0 #5e5e5e;
|
|
179
|
-
--td-shadow-inset-bottom: inset 0 -0.5px 0 #5e5e5e;
|
|
180
|
-
--td-shadow-inset-left: inset -0.5px 0 0 #5e5e5e;
|
|
181
|
-
|
|
182
|
-
// table 特定阴影
|
|
183
|
-
--td-table-shadow-color: rgba(0, 0, 0, 55%);
|
|
184
|
-
|
|
185
|
-
// 滚动条颜色
|
|
186
|
-
--td-scrollbar-color: rgba(255, 255, 255, 10%);
|
|
187
|
-
// 滚动条悬浮颜色( hover )
|
|
188
|
-
--td-scrollbar-hover-color: rgba(255, 255, 255, 30%);
|
|
189
|
-
// 滚动条轨道颜色,不能是带透明度,否则纵向滚动时,横向滚动条会穿透
|
|
190
|
-
--td-scroll-track-color: #333;
|
|
191
|
-
}
|
|
1
|
+
:root[theme-mode='dark'] {
|
|
2
|
+
--td-brand-color-1: #1b2f51;
|
|
3
|
+
--td-brand-color-2: #173463;
|
|
4
|
+
--td-brand-color-3: #143975;
|
|
5
|
+
--td-brand-color-4: #103d88;
|
|
6
|
+
--td-brand-color-5: #0d429a;
|
|
7
|
+
--td-brand-color-6: #054bbe;
|
|
8
|
+
--td-brand-color-7: #2667d4;
|
|
9
|
+
--td-brand-color-8: #4582e6;
|
|
10
|
+
--td-brand-color-9: #699ef5;
|
|
11
|
+
--td-brand-color-10: #96bbf8;
|
|
12
|
+
--td-warning-color-1: #4f2a1d;
|
|
13
|
+
--td-warning-color-2: #582f21;
|
|
14
|
+
--td-warning-color-3: #733c23;
|
|
15
|
+
--td-warning-color-4: #a75d2b;
|
|
16
|
+
--td-warning-color-5: #cf6e2d;
|
|
17
|
+
--td-warning-color-6: #dc7633;
|
|
18
|
+
--td-warning-color-7: #e8935c;
|
|
19
|
+
--td-warning-color-8: #ecbf91;
|
|
20
|
+
--td-warning-color-9: #eed7bf;
|
|
21
|
+
--td-warning-color-10: #f3e9dc;
|
|
22
|
+
--td-error-color-1: #472324;
|
|
23
|
+
--td-error-color-2: #5e2a2d;
|
|
24
|
+
--td-error-color-3: #703439;
|
|
25
|
+
--td-error-color-4: #83383e;
|
|
26
|
+
--td-error-color-5: #a03f46;
|
|
27
|
+
--td-error-color-6: #c64751;
|
|
28
|
+
--td-error-color-7: #de6670;
|
|
29
|
+
--td-error-color-8: #ec888e;
|
|
30
|
+
--td-error-color-9: #edb1b6;
|
|
31
|
+
--td-error-color-10: #eeced0;
|
|
32
|
+
--td-success-color-1: #193a2a;
|
|
33
|
+
--td-success-color-2: #1a4230;
|
|
34
|
+
--td-success-color-3: #17533d;
|
|
35
|
+
--td-success-color-4: #0d7a55;
|
|
36
|
+
--td-success-color-5: #059465;
|
|
37
|
+
--td-success-color-6: #43af8a;
|
|
38
|
+
--td-success-color-7: #46bf96;
|
|
39
|
+
--td-success-color-8: #80d2b6;
|
|
40
|
+
--td-success-color-9: #b4e1d3;
|
|
41
|
+
--td-success-color-10: #deede8;
|
|
42
|
+
--td-gray-color-1: #f3f3f3;
|
|
43
|
+
--td-gray-color-2: #eee;
|
|
44
|
+
--td-gray-color-3: #e8e8e8;
|
|
45
|
+
--td-gray-color-4: #ddd;
|
|
46
|
+
--td-gray-color-5: #c6c6c6;
|
|
47
|
+
--td-gray-color-6: #a6a6a6;
|
|
48
|
+
--td-gray-color-7: #8b8b8b;
|
|
49
|
+
--td-gray-color-8: #777;
|
|
50
|
+
--td-gray-color-9: #5e5e5e;
|
|
51
|
+
--td-gray-color-10: #4b4b4b;
|
|
52
|
+
--td-gray-color-11: #393939;
|
|
53
|
+
--td-gray-color-12: #2c2c2c;
|
|
54
|
+
--td-gray-color-13: #242424;
|
|
55
|
+
--td-gray-color-14: #181818;
|
|
56
|
+
|
|
57
|
+
// 文字 & 图标 颜色
|
|
58
|
+
--td-font-white-1: rgba(255, 255, 255, 90%);
|
|
59
|
+
--td-font-white-2: rgba(255, 255, 255, 55%);
|
|
60
|
+
--td-font-white-3: rgba(255, 255, 255, 35%);
|
|
61
|
+
--td-font-white-4: rgba(255, 255, 255, 22%);
|
|
62
|
+
--td-font-gray-1: rgba(0, 0, 0, 90%);
|
|
63
|
+
--td-font-gray-2: rgba(0, 0, 0, 60%);
|
|
64
|
+
--td-font-gray-3: rgba(0, 0, 0, 40%);
|
|
65
|
+
--td-font-gray-4: rgba(0, 0, 0, 26%);
|
|
66
|
+
|
|
67
|
+
// 基础颜色
|
|
68
|
+
--td-brand-color: var(--td-brand-color-8); // 色彩-品牌-可操作
|
|
69
|
+
--td-warning-color: var(--td-warning-color-5); // 色彩-功能-警告
|
|
70
|
+
--td-error-color: var(--td-error-color-6); // 色彩-功能-失败
|
|
71
|
+
--td-success-color: var(--td-success-color-5); // 色彩-功能-成功
|
|
72
|
+
|
|
73
|
+
// 基础颜色的扩展 用于 hover / 聚焦 / 禁用 / 点击 等状态
|
|
74
|
+
--td-brand-color-hover: var(--td-brand-color-7); // hover态
|
|
75
|
+
--td-brand-color-focus: var(--td-brand-color-2); // focus态,包括鼠标和键盘
|
|
76
|
+
--td-brand-color-active: var(--td-brand-color-9); // 点击态
|
|
77
|
+
--td-brand-color-disabled: var(--td-brand-color-3); // 禁用态
|
|
78
|
+
--td-brand-color-light: var(--td-brand-color-1); // 浅色的选中态
|
|
79
|
+
--td-brand-color-light-hover: var(--td-brand-color-2);
|
|
80
|
+
|
|
81
|
+
// 警告色扩展
|
|
82
|
+
--td-warning-color-hover: var(--td-warning-color-4);
|
|
83
|
+
--td-warning-color-focus: var(--td-warning-color-2);
|
|
84
|
+
--td-warning-color-active: var(--td-warning-color-6);
|
|
85
|
+
--td-warning-color-disabled: var(--td-warning-color-3);
|
|
86
|
+
--td-warning-color-light: var(--td-warning-color-1);
|
|
87
|
+
--td-warning-color-light-hover: var(--td-warning-color-2);
|
|
88
|
+
|
|
89
|
+
// 失败/错误色扩展
|
|
90
|
+
--td-error-color-hover: var(--td-error-color-5);
|
|
91
|
+
--td-error-color-focus: var(--td-error-color-2);
|
|
92
|
+
--td-error-color-active: var(--td-error-color-7);
|
|
93
|
+
--td-error-color-disabled: var(--td-error-color-3);
|
|
94
|
+
--td-error-color-light: var(--td-error-color-1);
|
|
95
|
+
--td-error-color-light-hover: var(--td-error-color-2);
|
|
96
|
+
|
|
97
|
+
// 成功色扩展
|
|
98
|
+
--td-success-color-hover: var(--td-success-color-4);
|
|
99
|
+
--td-success-color-focus: var(--td-success-color-2);
|
|
100
|
+
--td-success-color-active: var(--td-success-color-6);
|
|
101
|
+
--td-success-color-disabled: var(--td-success-color-3);
|
|
102
|
+
--td-success-color-light: var(--td-success-color-1);
|
|
103
|
+
--td-success-color-light-hover: var(--td-success-color-2);
|
|
104
|
+
|
|
105
|
+
// 遮罩
|
|
106
|
+
--td-mask-active: rgba(0, 0, 0, 40%); // 遮罩-弹出
|
|
107
|
+
--td-mask-disabled: rgba(0, 0, 0, 60%); // 遮罩-禁用
|
|
108
|
+
--td-mask-background: rgba(36, 36, 36, 96%); // 二维码遮罩
|
|
109
|
+
|
|
110
|
+
// 背景色
|
|
111
|
+
--td-bg-color-page: var(--td-gray-color-14); // 色彩 - page
|
|
112
|
+
--td-bg-color-container: var(--td-gray-color-13); // 色彩 - 容器
|
|
113
|
+
--td-bg-color-container-hover: var(--td-gray-color-12); // 色彩 - 容器 - hover
|
|
114
|
+
--td-bg-color-container-active: var(
|
|
115
|
+
--td-gray-color-10
|
|
116
|
+
); // 色彩 - 容器 - active
|
|
117
|
+
--td-bg-color-container-select: var(
|
|
118
|
+
--td-gray-color-9
|
|
119
|
+
); // 色彩 - 容器 - select
|
|
120
|
+
--td-bg-color-secondarycontainer: var(--td-gray-color-12); // 色彩 - 次级容器
|
|
121
|
+
--td-bg-color-secondarycontainer-hover: var(
|
|
122
|
+
--td-gray-color-11
|
|
123
|
+
); // 色彩 - 次级容器 - hover
|
|
124
|
+
--td-bg-color-secondarycontainer-active: var(
|
|
125
|
+
--td-gray-color-9
|
|
126
|
+
); // 色彩 - 次级容器 - active
|
|
127
|
+
--td-bg-color-component: var(--td-gray-color-11); // 色彩 - 组件
|
|
128
|
+
--td-bg-color-component-hover: var(--td-gray-color-10); // 色彩 - 组件 - hover
|
|
129
|
+
--td-bg-color-component-active: var(
|
|
130
|
+
--td-gray-color-9
|
|
131
|
+
); // 色彩 - 组件 - active
|
|
132
|
+
--td-bg-color-secondarycomponent: var(--td-gray-color-10); // 色彩 - 次级组件
|
|
133
|
+
--td-bg-color-secondarycomponent-hover: var(
|
|
134
|
+
--td-gray-color-9
|
|
135
|
+
); // 色彩 - 次级组件 - hover
|
|
136
|
+
--td-bg-color-secondarycomponent-active: var(
|
|
137
|
+
--td-gray-color-8
|
|
138
|
+
); // 色彩 - 次级组件 - active
|
|
139
|
+
--td-bg-color-component-disabled: var(
|
|
140
|
+
--td-gray-color-12
|
|
141
|
+
); // 色彩 - 组件 - disabled
|
|
142
|
+
|
|
143
|
+
// 特殊组件背景色,目前只用于 button、input 组件多主题场景,浅色主题下固定为白色,深色主题下为 transparent 适配背景颜色
|
|
144
|
+
--td-bg-color-specialcomponent: transparent;
|
|
145
|
+
|
|
146
|
+
// 文本颜色
|
|
147
|
+
--td-text-color-primary: var(--td-font-white-1); // 色彩-文字-主要
|
|
148
|
+
--td-text-color-secondary: var(--td-font-white-2); // 色彩-文字-次要
|
|
149
|
+
--td-text-color-placeholder: var(--td-font-white-3); // 色彩-文字-占位符/说明
|
|
150
|
+
--td-text-color-disabled: var(--td-font-white-4); // 色彩-文字-禁用
|
|
151
|
+
--td-text-color-anti: #fff; // 色彩-文字-反色
|
|
152
|
+
--td-text-color-brand: var(--td-brand-color-8); // 色彩-文字-品牌
|
|
153
|
+
--td-text-color-link: var(--td-brand-color-8); // 色彩-文字-链接
|
|
154
|
+
--td-text-color-watermark: rgba(255, 255, 255, 10%); // 色彩-文字-水印颜色
|
|
155
|
+
|
|
156
|
+
// 分割线
|
|
157
|
+
--td-border-level-1-color: var(--td-gray-color-11);
|
|
158
|
+
--td-component-stroke: var(--td-gray-color-11);
|
|
159
|
+
// 边框
|
|
160
|
+
--td-border-level-2-color: var(--td-gray-color-9);
|
|
161
|
+
--td-component-border: var(--td-gray-color-9);
|
|
162
|
+
|
|
163
|
+
// 基础/下层 投影 hover 使用的组件包括:表格 /
|
|
164
|
+
--td-shadow-1:
|
|
165
|
+
0 4px 6px rgba(0, 0, 0, 6%), 0 1px 10px rgba(0, 0, 0, 8%),
|
|
166
|
+
0 2px 4px rgba(0, 0, 0, 12%);
|
|
167
|
+
// 中层投影 下拉 使用的组件包括:下拉菜单 / 气泡确认框 / 选择器 /
|
|
168
|
+
--td-shadow-2:
|
|
169
|
+
0 8px 10px rgba(0, 0, 0, 12%), 0 3px 14px rgba(0, 0, 0, 10%),
|
|
170
|
+
0 5px 5px rgba(0, 0, 0, 16%);
|
|
171
|
+
// 上层投影(警示/弹窗)使用的组件包括:全局提示 / 消息通知
|
|
172
|
+
--td-shadow-3:
|
|
173
|
+
0 16px 24px rgba(0, 0, 0, 14%), 0 6px 30px rgba(0, 0, 0, 12%),
|
|
174
|
+
0 8px 10px rgba(0, 0, 0, 20%);
|
|
175
|
+
// 内投影 用于弹窗类组件(气泡确认框 / 全局提示 / 消息通知)的内描边
|
|
176
|
+
|
|
177
|
+
--td-shadow-inset-top: inset 0 0.5px 0 #5e5e5e;
|
|
178
|
+
--td-shadow-inset-right: inset 0.5px 0 0 #5e5e5e;
|
|
179
|
+
--td-shadow-inset-bottom: inset 0 -0.5px 0 #5e5e5e;
|
|
180
|
+
--td-shadow-inset-left: inset -0.5px 0 0 #5e5e5e;
|
|
181
|
+
|
|
182
|
+
// table 特定阴影
|
|
183
|
+
--td-table-shadow-color: rgba(0, 0, 0, 55%);
|
|
184
|
+
|
|
185
|
+
// 滚动条颜色
|
|
186
|
+
--td-scrollbar-color: rgba(255, 255, 255, 10%);
|
|
187
|
+
// 滚动条悬浮颜色( hover )
|
|
188
|
+
--td-scrollbar-hover-color: rgba(255, 255, 255, 30%);
|
|
189
|
+
// 滚动条轨道颜色,不能是带透明度,否则纵向滚动时,横向滚动条会穿透
|
|
190
|
+
--td-scroll-track-color: #333;
|
|
191
|
+
}
|