@tendaui/components 1.3.0 → 1.3.1
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/button/_example/ghost.tsx +2 -5
- package/color-picker/utils/color-picker/cmyk.ts +89 -89
- package/color-picker/utils/color-picker/color.ts +467 -467
- package/color-picker/utils/color-picker/constants.ts +187 -187
- package/color-picker/utils/color-picker/draggable.ts +99 -99
- package/color-picker/utils/color-picker/format.ts +90 -90
- package/color-picker/utils/color-picker/gradient.ts +237 -237
- package/color-picker/utils/color-picker/index.ts +7 -7
- package/color-picker/utils/color-picker/types.ts +33 -33
- package/dialog/hooks/useDialogPosition.ts +35 -35
- package/form/type.ts +519 -519
- package/global-config/default-config.ts +95 -95
- package/global-config/locale/ar_KW.ts +259 -259
- package/global-config/locale/en_US.ts +265 -265
- package/global-config/locale/it_IT.ts +264 -264
- package/global-config/locale/ja_JP.ts +264 -264
- package/global-config/locale/ko_KR.ts +264 -264
- package/global-config/locale/ru_RU.ts +277 -277
- package/global-config/locale/zh_CN.ts +265 -265
- package/global-config/locale/zh_TW.ts +265 -265
- package/global-config/mobile/default-config.ts +6 -6
- package/global-config/mobile/locale/ar_KW.ts +112 -112
- package/global-config/mobile/locale/en_US.ts +113 -113
- package/global-config/mobile/locale/it_IT.ts +113 -113
- package/global-config/mobile/locale/ja_JP.ts +100 -100
- package/global-config/mobile/locale/ko_KR.ts +100 -100
- package/global-config/mobile/locale/ru_RU.ts +112 -112
- package/global-config/mobile/locale/zh_CN.ts +100 -100
- package/global-config/mobile/locale/zh_TW.ts +100 -100
- package/global-config/t.ts +111 -111
- package/input-number/InputNumber.tsx +124 -124
- package/input-number/defaultProps.ts +17 -17
- package/input-number/index.ts +9 -9
- package/input-number/style/css.js +1 -1
- package/input-number/style/index.js +1 -1
- package/input-number/useInputNumber.tsx +270 -270
- package/list/ListItem.tsx +36 -36
- package/list/ListItemMeta.tsx +40 -40
- package/list/defaultProps.ts +11 -11
- package/list/hooks/useListVirtualScroll.ts +82 -82
- package/list/style/css.js +1 -1
- package/list/style/index.js +1 -1
- package/locale/LocalReceiver.ts +55 -55
- package/locale/ar_KW.ts +7 -7
- package/locale/en_US.ts +7 -7
- package/locale/it_IT.ts +6 -6
- package/locale/ja_JP.ts +6 -6
- package/locale/ko_KR.ts +6 -6
- package/locale/ru_RU.ts +6 -6
- package/locale/zh_CN.ts +5 -5
- package/locale/zh_TW.ts +7 -7
- package/package.json +2 -2
- package/radio/_example/default.tsx +2 -2
- package/select/type.ts +382 -382
- package/select-input/type.ts +280 -280
- package/slider/SliderHandleButton.tsx +50 -50
- package/slider/defaultProps.ts +15 -15
- package/slider/style/css.js +1 -1
- package/slider/style/index.js +1 -1
- package/styles/_global.scss +40 -40
- package/styles/_vars.scss +374 -374
- package/styles/components/alert/_index.scss +175 -175
- package/styles/components/alert/_vars.scss +41 -41
- package/styles/components/badge/_index.scss +71 -71
- package/styles/components/badge/_vars.scss +26 -26
- package/styles/components/button/_index.scss +499 -499
- package/styles/components/button/_mixins.scss +40 -40
- package/styles/components/button/_vars.scss +121 -121
- package/styles/components/checkbox/_index.scss +158 -158
- package/styles/components/checkbox/_var.scss +59 -59
- package/styles/components/color-picker/_index.scss +586 -586
- package/styles/components/color-picker/_vars.scss +79 -79
- package/styles/components/dialog/_animate.scss +133 -133
- package/styles/components/dialog/_index.scss +310 -310
- package/styles/components/dialog/_vars.scss +60 -60
- package/styles/components/drawer/_index.scss +206 -206
- package/styles/components/drawer/_var.scss +55 -55
- package/styles/components/fireworks/_index.scss +86 -86
- package/styles/components/fireworks/_vars.scss +5 -5
- package/styles/components/form/_index.scss +175 -175
- package/styles/components/form/_mixins.scss +74 -74
- package/styles/components/form/_vars.scss +101 -101
- package/styles/components/input/_index.scss +350 -350
- package/styles/components/input/_mixins.scss +120 -120
- package/styles/components/input/_vars.scss +130 -130
- package/styles/components/input-number/_index.scss +327 -327
- package/styles/components/input-number/_vars.scss +56 -56
- package/styles/components/ip-input/_index.scss +277 -277
- package/styles/components/layout/_index.scss +47 -47
- package/styles/components/layout/_vars.scss +19 -19
- package/styles/components/layout/doc.scss +74 -74
- package/styles/components/list/_index.scss +172 -172
- package/styles/components/list/_vars.scss +42 -42
- package/styles/components/loading/_index.scss +113 -113
- package/styles/components/loading/_vars.scss +40 -40
- package/styles/components/notification/_index.scss +140 -140
- package/styles/components/notification/_mixins.scss +13 -13
- package/styles/components/notification/_vars.scss +60 -60
- package/styles/components/popup/_index.scss +78 -78
- package/styles/components/popup/_mixin.scss +149 -149
- package/styles/components/popup/_vars.scss +33 -33
- package/styles/components/radio/_index.scss +376 -376
- package/styles/components/radio/_vars.scss +89 -89
- package/styles/components/select/_index.scss +291 -291
- package/styles/components/select/_var.scss +64 -64
- package/styles/components/select-input/_index.scss +5 -5
- package/styles/components/select-input/_var.scss +4 -4
- package/styles/components/slider/_index.scss +241 -241
- package/styles/components/slider/_vars.scss +51 -51
- package/styles/components/switch/_index.scss +175 -175
- package/styles/components/switch/_vars.scss +63 -63
- package/styles/components/table/_index.scss +194 -194
- package/styles/components/table/_var.scss +52 -52
- package/styles/components/tabs/_index.scss +165 -165
- package/styles/components/tabs/_mixins.scss +11 -11
- package/styles/components/tabs/_vars.scss +72 -72
- package/styles/components/tag/_index.scss +317 -317
- package/styles/components/tag/_var.scss +86 -86
- package/styles/components/tag-input/_index.scss +164 -164
- package/styles/components/tag-input/_vars.scss +17 -17
- package/styles/mixins/_focus.scss +8 -8
- package/styles/mixins/_layout.scss +32 -32
- package/styles/mixins/_reset.scss +11 -11
- package/styles/mixins/_scrollbar.scss +32 -32
- package/styles/mixins/_text.scss +50 -50
- package/styles/themes/_dark.scss +169 -169
- package/styles/themes/_font.scss +69 -69
- package/styles/themes/_index.scss +5 -5
- package/styles/themes/_light.scss +170 -170
- package/styles/themes/_radius.scss +9 -9
- package/styles/themes/_size.scss +68 -68
- package/styles/utilities/_animation.scss +58 -58
- package/styles/utilities/_tips.scss +10 -10
- package/switch/_example/with-label.tsx +1 -1
- package/utils/input-number/large-number.ts +423 -423
- package/utils/input-number/number.ts +257 -257
- package/utils/log/index.ts +3 -3
- package/utils/log/log.ts +29 -29
- package/utils/log/types.ts +9 -9
- package/utils/style.ts +58 -58
|
@@ -1,194 +1,194 @@
|
|
|
1
|
-
@use "../../_vars.scss" as *;
|
|
2
|
-
@use "../../vars.scss" as *;
|
|
3
|
-
@use "../../mixins/_reset.scss" as *;
|
|
4
|
-
@use "./_var.scss" as *;
|
|
5
|
-
|
|
6
|
-
// 表格基础样式
|
|
7
|
-
.#{$prefix}-table {
|
|
8
|
-
@include reset;
|
|
9
|
-
|
|
10
|
-
width: 100%;
|
|
11
|
-
font: $table-font;
|
|
12
|
-
color: $table-text-color;
|
|
13
|
-
background-color: $table-bg;
|
|
14
|
-
position: relative;
|
|
15
|
-
|
|
16
|
-
&__content {
|
|
17
|
-
position: relative;
|
|
18
|
-
overflow: auto;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&__table {
|
|
22
|
-
width: 100%;
|
|
23
|
-
border-spacing: 0;
|
|
24
|
-
border-collapse: collapse;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// 表头
|
|
28
|
-
&__header {
|
|
29
|
-
th {
|
|
30
|
-
color: $table-head-text-color;
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// 表体
|
|
36
|
-
&__body {
|
|
37
|
-
tr {
|
|
38
|
-
background-color: $table-bg;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// 单元格基础样式
|
|
43
|
-
th,
|
|
44
|
-
td {
|
|
45
|
-
position: relative;
|
|
46
|
-
padding: $table-padding-normal;
|
|
47
|
-
border-bottom: 1px solid $table-border-color;
|
|
48
|
-
line-height: $table-line-height;
|
|
49
|
-
font-weight: normal;
|
|
50
|
-
overflow-wrap: break-word;
|
|
51
|
-
background-color: inherit;
|
|
52
|
-
box-sizing: border-box;
|
|
53
|
-
text-align: start;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// 对齐方式
|
|
57
|
-
.#{$prefix}-align-left {
|
|
58
|
-
text-align: start;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.#{$prefix}-align-center {
|
|
62
|
-
text-align: center;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.#{$prefix}-align-right {
|
|
66
|
-
text-align: end;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// 文本省略
|
|
70
|
-
&__ellipsis {
|
|
71
|
-
white-space: nowrap;
|
|
72
|
-
overflow: hidden;
|
|
73
|
-
text-overflow: ellipsis;
|
|
74
|
-
width: 100%;
|
|
75
|
-
max-width: 100%;
|
|
76
|
-
display: block;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// 当单元格启用省略时
|
|
80
|
-
&__cell--ellipsis {
|
|
81
|
-
overflow: hidden;
|
|
82
|
-
position: relative;
|
|
83
|
-
max-width: 100%;
|
|
84
|
-
|
|
85
|
-
// 确保内部内容不会超出
|
|
86
|
-
& > div {
|
|
87
|
-
width: 100%;
|
|
88
|
-
max-width: 100%;
|
|
89
|
-
box-sizing: border-box;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// 边框模式
|
|
94
|
-
&--bordered {
|
|
95
|
-
td,
|
|
96
|
-
th {
|
|
97
|
-
border-inline-start: 1px solid $table-border-color;
|
|
98
|
-
|
|
99
|
-
&:first-child {
|
|
100
|
-
border-inline-start-width: 0;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&__content {
|
|
105
|
-
border: 1px solid $table-border-color;
|
|
106
|
-
border-radius: var(--td-border-radius-default, 4px);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// 斑马纹
|
|
111
|
-
&--stripe {
|
|
112
|
-
tbody tr:nth-of-type(odd) {
|
|
113
|
-
background-color: $table-highlight-bg-color;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// 悬浮效果
|
|
118
|
-
&--hover {
|
|
119
|
-
tbody tr {
|
|
120
|
-
transition: background-color 0.2s linear;
|
|
121
|
-
|
|
122
|
-
&:hover {
|
|
123
|
-
background-color: $table-highlight-bg-color-hover;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// 尺寸
|
|
129
|
-
&--size-small {
|
|
130
|
-
th,
|
|
131
|
-
td {
|
|
132
|
-
padding: $table-padding-small;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
&--size-medium {
|
|
137
|
-
th,
|
|
138
|
-
td {
|
|
139
|
-
padding: $table-padding-normal;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&--size-large {
|
|
144
|
-
th,
|
|
145
|
-
td {
|
|
146
|
-
padding: $table-padding-large;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
// 布局方式
|
|
151
|
-
&--layout-fixed {
|
|
152
|
-
table-layout: fixed;
|
|
153
|
-
|
|
154
|
-
// 固定布局下,省略文本需要特殊处理
|
|
155
|
-
td.#{$prefix}-table__cell--ellipsis,
|
|
156
|
-
th.#{$prefix}-table__cell--ellipsis {
|
|
157
|
-
overflow: hidden;
|
|
158
|
-
position: relative;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&--layout-auto {
|
|
163
|
-
table-layout: auto;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// 垂直对齐
|
|
167
|
-
&--vertical-align-top {
|
|
168
|
-
tbody td {
|
|
169
|
-
vertical-align: top;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&--vertical-align-bottom {
|
|
174
|
-
tbody td {
|
|
175
|
-
vertical-align: bottom;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// 空行
|
|
180
|
-
&__empty-row {
|
|
181
|
-
td {
|
|
182
|
-
padding: 0;
|
|
183
|
-
border: 0;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&__empty {
|
|
187
|
-
display: flex;
|
|
188
|
-
align-items: center;
|
|
189
|
-
justify-content: center;
|
|
190
|
-
min-height: $table-empty-min-height;
|
|
191
|
-
color: $table-color-empty;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
1
|
+
@use "../../_vars.scss" as *;
|
|
2
|
+
@use "../../vars.scss" as *;
|
|
3
|
+
@use "../../mixins/_reset.scss" as *;
|
|
4
|
+
@use "./_var.scss" as *;
|
|
5
|
+
|
|
6
|
+
// 表格基础样式
|
|
7
|
+
.#{$prefix}-table {
|
|
8
|
+
@include reset;
|
|
9
|
+
|
|
10
|
+
width: 100%;
|
|
11
|
+
font: $table-font;
|
|
12
|
+
color: $table-text-color;
|
|
13
|
+
background-color: $table-bg;
|
|
14
|
+
position: relative;
|
|
15
|
+
|
|
16
|
+
&__content {
|
|
17
|
+
position: relative;
|
|
18
|
+
overflow: auto;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__table {
|
|
22
|
+
width: 100%;
|
|
23
|
+
border-spacing: 0;
|
|
24
|
+
border-collapse: collapse;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 表头
|
|
28
|
+
&__header {
|
|
29
|
+
th {
|
|
30
|
+
color: $table-head-text-color;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 表体
|
|
36
|
+
&__body {
|
|
37
|
+
tr {
|
|
38
|
+
background-color: $table-bg;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// 单元格基础样式
|
|
43
|
+
th,
|
|
44
|
+
td {
|
|
45
|
+
position: relative;
|
|
46
|
+
padding: $table-padding-normal;
|
|
47
|
+
border-bottom: 1px solid $table-border-color;
|
|
48
|
+
line-height: $table-line-height;
|
|
49
|
+
font-weight: normal;
|
|
50
|
+
overflow-wrap: break-word;
|
|
51
|
+
background-color: inherit;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
text-align: start;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// 对齐方式
|
|
57
|
+
.#{$prefix}-align-left {
|
|
58
|
+
text-align: start;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.#{$prefix}-align-center {
|
|
62
|
+
text-align: center;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.#{$prefix}-align-right {
|
|
66
|
+
text-align: end;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// 文本省略
|
|
70
|
+
&__ellipsis {
|
|
71
|
+
white-space: nowrap;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
width: 100%;
|
|
75
|
+
max-width: 100%;
|
|
76
|
+
display: block;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// 当单元格启用省略时
|
|
80
|
+
&__cell--ellipsis {
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
position: relative;
|
|
83
|
+
max-width: 100%;
|
|
84
|
+
|
|
85
|
+
// 确保内部内容不会超出
|
|
86
|
+
& > div {
|
|
87
|
+
width: 100%;
|
|
88
|
+
max-width: 100%;
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// 边框模式
|
|
94
|
+
&--bordered {
|
|
95
|
+
td,
|
|
96
|
+
th {
|
|
97
|
+
border-inline-start: 1px solid $table-border-color;
|
|
98
|
+
|
|
99
|
+
&:first-child {
|
|
100
|
+
border-inline-start-width: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__content {
|
|
105
|
+
border: 1px solid $table-border-color;
|
|
106
|
+
border-radius: var(--td-border-radius-default, 4px);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// 斑马纹
|
|
111
|
+
&--stripe {
|
|
112
|
+
tbody tr:nth-of-type(odd) {
|
|
113
|
+
background-color: $table-highlight-bg-color;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// 悬浮效果
|
|
118
|
+
&--hover {
|
|
119
|
+
tbody tr {
|
|
120
|
+
transition: background-color 0.2s linear;
|
|
121
|
+
|
|
122
|
+
&:hover {
|
|
123
|
+
background-color: $table-highlight-bg-color-hover;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// 尺寸
|
|
129
|
+
&--size-small {
|
|
130
|
+
th,
|
|
131
|
+
td {
|
|
132
|
+
padding: $table-padding-small;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&--size-medium {
|
|
137
|
+
th,
|
|
138
|
+
td {
|
|
139
|
+
padding: $table-padding-normal;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&--size-large {
|
|
144
|
+
th,
|
|
145
|
+
td {
|
|
146
|
+
padding: $table-padding-large;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// 布局方式
|
|
151
|
+
&--layout-fixed {
|
|
152
|
+
table-layout: fixed;
|
|
153
|
+
|
|
154
|
+
// 固定布局下,省略文本需要特殊处理
|
|
155
|
+
td.#{$prefix}-table__cell--ellipsis,
|
|
156
|
+
th.#{$prefix}-table__cell--ellipsis {
|
|
157
|
+
overflow: hidden;
|
|
158
|
+
position: relative;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&--layout-auto {
|
|
163
|
+
table-layout: auto;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// 垂直对齐
|
|
167
|
+
&--vertical-align-top {
|
|
168
|
+
tbody td {
|
|
169
|
+
vertical-align: top;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&--vertical-align-bottom {
|
|
174
|
+
tbody td {
|
|
175
|
+
vertical-align: bottom;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// 空行
|
|
180
|
+
&__empty-row {
|
|
181
|
+
td {
|
|
182
|
+
padding: 0;
|
|
183
|
+
border: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&__empty {
|
|
187
|
+
display: flex;
|
|
188
|
+
align-items: center;
|
|
189
|
+
justify-content: center;
|
|
190
|
+
min-height: $table-empty-min-height;
|
|
191
|
+
color: $table-color-empty;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
@use "../../_vars.scss" as *;
|
|
2
|
-
// 表格变量
|
|
3
|
-
|
|
4
|
-
// Color
|
|
5
|
-
$table-bg: $bg-color-container;
|
|
6
|
-
$table-text-color: $text-color-primary;
|
|
7
|
-
$table-head-text-color: $text-color-placeholder;
|
|
8
|
-
$table-border-color: $component-border;
|
|
9
|
-
$table-link-text-color: $text-color-link;
|
|
10
|
-
$table-action-bg-color: $bg-color-container-hover;
|
|
11
|
-
$table-highlight-bg-color: $bg-color-secondarycontainer;
|
|
12
|
-
$table-highlight-bg-color-hover: $bg-color-secondarycontainer-hover;
|
|
13
|
-
$table-highlight-dark-bg-color: $bg-color-container-hover;
|
|
14
|
-
$table-row-disabled-color: $text-color-disabled;
|
|
15
|
-
$table-icon-default-color: $text-color-placeholder;
|
|
16
|
-
$table-icon-active-color: $brand-color;
|
|
17
|
-
$table-filter-icon-default-color: $text-color-primary;
|
|
18
|
-
$table-color-empty: $text-color-disabled;
|
|
19
|
-
$table-fixed-cell-border-color: $component-border;
|
|
20
|
-
$table-sort-bg-color: $bg-color-secondarycontainer;
|
|
21
|
-
|
|
22
|
-
// Size
|
|
23
|
-
$table-line-height: $text-line-height-base;
|
|
24
|
-
$table-line-height-half: calc(#{$font-size-base} + 2px);
|
|
25
|
-
$table-font: $font-body-medium;
|
|
26
|
-
$table-icon-size: $font-size-l;
|
|
27
|
-
$table-loading-size: $table-icon-size;
|
|
28
|
-
|
|
29
|
-
$table-padding-horizontal: $comp-paddingLR-l;
|
|
30
|
-
$table-padding-small: $comp-paddingTB-s $comp-paddingLR-s;
|
|
31
|
-
$table-padding-normal: $comp-paddingTB-m $comp-paddingLR-l;
|
|
32
|
-
$table-padding-large: $comp-paddingTB-l $comp-paddingLR-xl;
|
|
33
|
-
$table-td-padding-vertical-top: 13px;
|
|
34
|
-
$table-td-padding-vertical-bottom: 11px;
|
|
35
|
-
$table-td-padding-vertical: $comp-paddingTB-m;
|
|
36
|
-
$table-td-padding-horizontal: $comp-paddingLR-l;
|
|
37
|
-
$table-td-editable-icon-margin: $comp-margin-s;
|
|
38
|
-
$table-pagination-padding-normal: $comp-paddingTB-l $comp-paddingLR-l;
|
|
39
|
-
$table-controller-trigger-padding: $comp-paddingTB-l 0;
|
|
40
|
-
$table-default-pagination-padding: $comp-paddingTB-l $comp-paddingLR-l;
|
|
41
|
-
|
|
42
|
-
$table-fixed-cell-box-shadow-spread-radius: -10px;
|
|
43
|
-
$table-fixed-cell-border-width: 4px;
|
|
44
|
-
$table-fixed-cell-border-width-light: 2px;
|
|
45
|
-
$table-fixed-cell-border: #{$table-fixed-cell-border-width} solid $table-fixed-cell-border-color;
|
|
46
|
-
$table-fixed-cell-border-light: #{$table-fixed-cell-border-width-light} solid $table-fixed-cell-border-color;
|
|
47
|
-
|
|
48
|
-
// Other
|
|
49
|
-
$table-double-sort-icon-space: $comp-margin-xxs;
|
|
50
|
-
$table-filter-icon-margin-left: $comp-margin-s;
|
|
51
|
-
$table-controller-item-margin: $comp-margin-l;
|
|
52
|
-
$table-empty-min-height: 120px;
|
|
1
|
+
@use "../../_vars.scss" as *;
|
|
2
|
+
// 表格变量
|
|
3
|
+
|
|
4
|
+
// Color
|
|
5
|
+
$table-bg: $bg-color-container;
|
|
6
|
+
$table-text-color: $text-color-primary;
|
|
7
|
+
$table-head-text-color: $text-color-placeholder;
|
|
8
|
+
$table-border-color: $component-border;
|
|
9
|
+
$table-link-text-color: $text-color-link;
|
|
10
|
+
$table-action-bg-color: $bg-color-container-hover;
|
|
11
|
+
$table-highlight-bg-color: $bg-color-secondarycontainer;
|
|
12
|
+
$table-highlight-bg-color-hover: $bg-color-secondarycontainer-hover;
|
|
13
|
+
$table-highlight-dark-bg-color: $bg-color-container-hover;
|
|
14
|
+
$table-row-disabled-color: $text-color-disabled;
|
|
15
|
+
$table-icon-default-color: $text-color-placeholder;
|
|
16
|
+
$table-icon-active-color: $brand-color;
|
|
17
|
+
$table-filter-icon-default-color: $text-color-primary;
|
|
18
|
+
$table-color-empty: $text-color-disabled;
|
|
19
|
+
$table-fixed-cell-border-color: $component-border;
|
|
20
|
+
$table-sort-bg-color: $bg-color-secondarycontainer;
|
|
21
|
+
|
|
22
|
+
// Size
|
|
23
|
+
$table-line-height: $text-line-height-base;
|
|
24
|
+
$table-line-height-half: calc(#{$font-size-base} + 2px);
|
|
25
|
+
$table-font: $font-body-medium;
|
|
26
|
+
$table-icon-size: $font-size-l;
|
|
27
|
+
$table-loading-size: $table-icon-size;
|
|
28
|
+
|
|
29
|
+
$table-padding-horizontal: $comp-paddingLR-l;
|
|
30
|
+
$table-padding-small: $comp-paddingTB-s $comp-paddingLR-s;
|
|
31
|
+
$table-padding-normal: $comp-paddingTB-m $comp-paddingLR-l;
|
|
32
|
+
$table-padding-large: $comp-paddingTB-l $comp-paddingLR-xl;
|
|
33
|
+
$table-td-padding-vertical-top: 13px;
|
|
34
|
+
$table-td-padding-vertical-bottom: 11px;
|
|
35
|
+
$table-td-padding-vertical: $comp-paddingTB-m;
|
|
36
|
+
$table-td-padding-horizontal: $comp-paddingLR-l;
|
|
37
|
+
$table-td-editable-icon-margin: $comp-margin-s;
|
|
38
|
+
$table-pagination-padding-normal: $comp-paddingTB-l $comp-paddingLR-l;
|
|
39
|
+
$table-controller-trigger-padding: $comp-paddingTB-l 0;
|
|
40
|
+
$table-default-pagination-padding: $comp-paddingTB-l $comp-paddingLR-l;
|
|
41
|
+
|
|
42
|
+
$table-fixed-cell-box-shadow-spread-radius: -10px;
|
|
43
|
+
$table-fixed-cell-border-width: 4px;
|
|
44
|
+
$table-fixed-cell-border-width-light: 2px;
|
|
45
|
+
$table-fixed-cell-border: #{$table-fixed-cell-border-width} solid $table-fixed-cell-border-color;
|
|
46
|
+
$table-fixed-cell-border-light: #{$table-fixed-cell-border-width-light} solid $table-fixed-cell-border-color;
|
|
47
|
+
|
|
48
|
+
// Other
|
|
49
|
+
$table-double-sort-icon-space: $comp-margin-xxs;
|
|
50
|
+
$table-filter-icon-margin-left: $comp-margin-s;
|
|
51
|
+
$table-controller-item-margin: $comp-margin-l;
|
|
52
|
+
$table-empty-min-height: 120px;
|