@trionesdev/antd-mobile-base-react 0.0.2-beta.0 → 0.0.2-beta.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 +23 -23
- package/dist/ActionSheet/style.scss +51 -51
- package/dist/Alert/style.scss +69 -69
- package/dist/Avatar/style.scss +16 -16
- package/dist/Badge/style.scss +100 -100
- package/dist/Card/style.scss +35 -35
- package/dist/CascaderPicker/cascader-picker.js +1 -1
- package/dist/CascaderPicker/style.scss +42 -42
- package/dist/CascaderView/cascader-view.js +1 -1
- package/dist/CascaderView/style.scss +22 -22
- package/dist/Cell/styles.scss +52 -52
- package/dist/Checkbox/index.scss +151 -151
- package/dist/DemoBlock/index.scss +20 -20
- package/dist/DemoDescription/index.scss +3 -3
- package/dist/Descriptions/style.scss +65 -65
- package/dist/Divider/style.scss +62 -62
- package/dist/Ellipsis/style.scss +13 -13
- package/dist/Empty/style.scss +29 -29
- package/dist/ErrorBlock/demo/base.js +2 -2
- package/dist/ErrorBlock/style.scss +62 -62
- package/dist/Footer/style.scss +55 -55
- package/dist/Form/FormItem/form-item-input.js +1 -1
- package/dist/Form/FormItem/form-item-label.js +1 -1
- package/dist/Form/style.scss +45 -45
- package/dist/Grid/style.scss +17 -17
- package/dist/Icon/demo/base.js +3 -3
- package/dist/Input/index.scss +173 -173
- package/dist/InputNumber/style.scss +43 -43
- package/dist/Mask/style.scss +20 -20
- package/dist/NavBar/style.scss +61 -61
- package/dist/NoticeBar/style.scss +130 -130
- package/dist/PageIndicator/style.scss +59 -59
- package/dist/Picker/picker.js +1 -1
- package/dist/Picker/style.scss +41 -41
- package/dist/PickerView/picker-view-column.js +1 -1
- package/dist/PickerView/picker-view.js +1 -1
- package/dist/PickerView/style.scss +72 -72
- package/dist/Popup/style.scss +53 -53
- package/dist/Radio/style.scss +138 -138
- package/dist/Rate/style.scss +37 -37
- package/dist/Result/demo/base.js +2 -2
- package/dist/Result/style.scss +73 -73
- package/dist/SafeArea/style.scss +18 -18
- package/dist/Scaffold/style.scss +16 -16
- package/dist/ScrollView/style.scss +19 -19
- package/dist/SideBar/side-bar.js +6 -6
- package/dist/SideBar/style.scss +85 -85
- package/dist/Space/style.scss +77 -77
- package/dist/SpinLoading/spin-loading.scss +40 -40
- package/dist/Steps/style.scss +146 -146
- package/dist/Switch/style.scss +128 -128
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/TabBar/index.scss +36 -36
- package/dist/TabBar/tab-bar.d.ts +1 -1
- package/dist/TabBar/tab-bar.js +3 -2
- package/dist/Tabs/style.scss +108 -108
- package/dist/Tabs/tabs.js +1 -1
- package/dist/Tag/demo/base.js +2 -2
- package/dist/Tag/demo/style.scss +8 -8
- package/dist/Tag/style.scss +86 -86
- package/dist/Toast/style.scss +63 -63
- package/dist/VerificationCodeInput/style.scss +20 -20
- package/dist/WaterMark/style.scss +17 -17
- package/dist/style/style.scss +52 -52
- package/dist/style/theme-dark.scss +24 -24
- package/dist/style/theme-default.scss +54 -54
- package/dist/style/variable.scss +168 -168
- package/dist/utils/type.js +36 -36
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +5 -6
package/dist/Steps/style.scss
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
$clsPrefixSteps: 'triones-antm-steps';
|
|
2
|
-
$clsPrefixStep: 'triones-antm-step';
|
|
3
|
-
|
|
4
|
-
.#{$clsPrefixSteps} {
|
|
5
|
-
&-horizontal {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: row;
|
|
8
|
-
|
|
9
|
-
.#{$clsPrefixStep} {
|
|
10
|
-
//flex: 1 auto;
|
|
11
|
-
&-indicator {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: row;
|
|
14
|
-
|
|
15
|
-
&-icon-before {
|
|
16
|
-
flex: 1 auto;
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
min-width: 16Px;
|
|
20
|
-
|
|
21
|
-
&-line {
|
|
22
|
-
height: 1Px;
|
|
23
|
-
width: 100%;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-icon {
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
min-height: 24Px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-icon-after {
|
|
35
|
-
flex: 1 auto;
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
min-width: 16Px;
|
|
39
|
-
|
|
40
|
-
&-line {
|
|
41
|
-
height: 1Px;
|
|
42
|
-
width: 100%;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&-content {
|
|
48
|
-
text-align: center;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&:first-child {
|
|
52
|
-
.#{$clsPrefixStep} {
|
|
53
|
-
&-indicator {
|
|
54
|
-
&-icon-before {
|
|
55
|
-
&-line {
|
|
56
|
-
display: none;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&:last-child {
|
|
64
|
-
.#{$clsPrefixStep} {
|
|
65
|
-
&-indicator {
|
|
66
|
-
&-icon-after {
|
|
67
|
-
&-line {
|
|
68
|
-
display: none;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&-vertical {
|
|
78
|
-
.#{$clsPrefixStep} {
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-direction: row;
|
|
81
|
-
|
|
82
|
-
&-indicator {
|
|
83
|
-
display: flex;
|
|
84
|
-
flex-direction: column;
|
|
85
|
-
padding-inline: 4Px;
|
|
86
|
-
|
|
87
|
-
&-icon-before {
|
|
88
|
-
display: flex;
|
|
89
|
-
justify-content: center;
|
|
90
|
-
min-height: 8Px;
|
|
91
|
-
|
|
92
|
-
&-line {
|
|
93
|
-
width: 1Px;
|
|
94
|
-
height: 100%;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&-icon {
|
|
99
|
-
display: flex;
|
|
100
|
-
align-items: center;
|
|
101
|
-
justify-content: center;
|
|
102
|
-
min-width: 24Px;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&-icon-after {
|
|
106
|
-
flex: 1 auto;
|
|
107
|
-
display: flex;
|
|
108
|
-
justify-content: center;
|
|
109
|
-
|
|
110
|
-
&-line {
|
|
111
|
-
width: 1Px;
|
|
112
|
-
height: 100%;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&-content {
|
|
118
|
-
padding: 4Px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&:first-child {
|
|
122
|
-
.#{$clsPrefixStep} {
|
|
123
|
-
&-indicator {
|
|
124
|
-
&-icon-before {
|
|
125
|
-
&-line {
|
|
126
|
-
display: none;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&:last-child {
|
|
134
|
-
.#{$clsPrefixStep} {
|
|
135
|
-
&-indicator {
|
|
136
|
-
&-icon-after {
|
|
137
|
-
&-line {
|
|
138
|
-
display: none;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
1
|
+
$clsPrefixSteps: 'triones-antm-steps';
|
|
2
|
+
$clsPrefixStep: 'triones-antm-step';
|
|
3
|
+
|
|
4
|
+
.#{$clsPrefixSteps} {
|
|
5
|
+
&-horizontal {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
|
|
9
|
+
.#{$clsPrefixStep} {
|
|
10
|
+
//flex: 1 auto;
|
|
11
|
+
&-indicator {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
|
|
15
|
+
&-icon-before {
|
|
16
|
+
flex: 1 auto;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
min-width: 16Px;
|
|
20
|
+
|
|
21
|
+
&-line {
|
|
22
|
+
height: 1Px;
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-icon {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
min-height: 24Px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-icon-after {
|
|
35
|
+
flex: 1 auto;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
min-width: 16Px;
|
|
39
|
+
|
|
40
|
+
&-line {
|
|
41
|
+
height: 1Px;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-content {
|
|
48
|
+
text-align: center;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:first-child {
|
|
52
|
+
.#{$clsPrefixStep} {
|
|
53
|
+
&-indicator {
|
|
54
|
+
&-icon-before {
|
|
55
|
+
&-line {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:last-child {
|
|
64
|
+
.#{$clsPrefixStep} {
|
|
65
|
+
&-indicator {
|
|
66
|
+
&-icon-after {
|
|
67
|
+
&-line {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-vertical {
|
|
78
|
+
.#{$clsPrefixStep} {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: row;
|
|
81
|
+
|
|
82
|
+
&-indicator {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
padding-inline: 4Px;
|
|
86
|
+
|
|
87
|
+
&-icon-before {
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
min-height: 8Px;
|
|
91
|
+
|
|
92
|
+
&-line {
|
|
93
|
+
width: 1Px;
|
|
94
|
+
height: 100%;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&-icon {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
min-width: 24Px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&-icon-after {
|
|
106
|
+
flex: 1 auto;
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
|
|
110
|
+
&-line {
|
|
111
|
+
width: 1Px;
|
|
112
|
+
height: 100%;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-content {
|
|
118
|
+
padding: 4Px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:first-child {
|
|
122
|
+
.#{$clsPrefixStep} {
|
|
123
|
+
&-indicator {
|
|
124
|
+
&-icon-before {
|
|
125
|
+
&-line {
|
|
126
|
+
display: none;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&:last-child {
|
|
134
|
+
.#{$clsPrefixStep} {
|
|
135
|
+
&-indicator {
|
|
136
|
+
&-icon-after {
|
|
137
|
+
&-line {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
package/dist/Switch/style.scss
CHANGED
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
$class-prefix-switch: 'triones-antm-switch';
|
|
4
|
-
|
|
5
|
-
@keyframes loading-rotate {
|
|
6
|
-
100% {
|
|
7
|
-
transform: rotate(1turn);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/* prettier-ignore */
|
|
12
|
-
.#{$class-prefix-switch} {
|
|
13
|
-
--height: 24PX;
|
|
14
|
-
--width: 42PX;
|
|
15
|
-
--border-width: 2PX;
|
|
16
|
-
|
|
17
|
-
display: inline-block;
|
|
18
|
-
vertical-align: middle;
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
position: relative;
|
|
21
|
-
align-self: center;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
|
|
24
|
-
input {
|
|
25
|
-
display: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&-checkbox {
|
|
29
|
-
min-width: var(--width);
|
|
30
|
-
height: var(--height);
|
|
31
|
-
box-sizing: border-box;
|
|
32
|
-
border-radius: 31PX;
|
|
33
|
-
background: $trionesBorderColor;
|
|
34
|
-
z-index: 0;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
line-height: var(--height);
|
|
37
|
-
|
|
38
|
-
&:before {
|
|
39
|
-
content: ' ';
|
|
40
|
-
position: absolute;
|
|
41
|
-
left: var(--border-width);
|
|
42
|
-
top: var(--border-width);
|
|
43
|
-
width: calc(100% - 2 * var(--border-width));
|
|
44
|
-
height: calc(var(--height) - 2 * var(--border-width));
|
|
45
|
-
border-radius: calc(var(--height) - 2 * var(--border-width));
|
|
46
|
-
box-sizing: border-box;
|
|
47
|
-
background: var(--triones-antm-color-background);
|
|
48
|
-
z-index: 1;
|
|
49
|
-
transition: all 200ms;
|
|
50
|
-
transform: scale(1);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&-handle {
|
|
55
|
-
display: flex;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
align-items: center;
|
|
58
|
-
width: calc(var(--height) - 2 * var(--border-width));
|
|
59
|
-
height: calc(var(--height) - 2 * var(--border-width));
|
|
60
|
-
border-radius: calc(var(--height) - 2 * var(--border-width));
|
|
61
|
-
background: $trionesColorTextLightSolid;
|
|
62
|
-
position: absolute;
|
|
63
|
-
z-index: 2;
|
|
64
|
-
top: var(--border-width);
|
|
65
|
-
left: var(--border-width);
|
|
66
|
-
transition: all 200ms;
|
|
67
|
-
box-shadow: 0 0 2PX 0 rgba(0, 0, 0, 0.2),
|
|
68
|
-
0 2PX 11.5PX 0 rgba(0, 0, 0, 0.08),
|
|
69
|
-
-1PX 2PX 2PX 0 rgba(0, 0, 0, 0.1);
|
|
70
|
-
|
|
71
|
-
&-loading {
|
|
72
|
-
color: var(--color,$trionesColorPrimary);
|
|
73
|
-
display: inline-block;
|
|
74
|
-
height: 100%;
|
|
75
|
-
width: 100%;
|
|
76
|
-
background: currentColor;
|
|
77
|
-
mask-image: var(--maskImage);
|
|
78
|
-
-webkit-mask-image: var(--maskImage);
|
|
79
|
-
animation: adm-spin-loading-rotate 2s infinite linear;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&-inner {
|
|
84
|
-
position: relative;
|
|
85
|
-
z-index: 1;
|
|
86
|
-
display: flex;
|
|
87
|
-
justify-content: center;
|
|
88
|
-
align-items: center;
|
|
89
|
-
margin: 0 8PX 0 calc(var(--height) - var(--border-width) + 5PX);
|
|
90
|
-
height: 100%;
|
|
91
|
-
color: var(--triones-antm-color-weak);
|
|
92
|
-
transition: margin 200ms;
|
|
93
|
-
font-size: var(--triones-antm-font-size-7);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/* 选中状态 */
|
|
97
|
-
&.#{$class-prefix-switch}-checked {
|
|
98
|
-
.#{$class-prefix-switch}-checkbox {
|
|
99
|
-
background: var(--checked-color, $trionesColorPrimary);
|
|
100
|
-
|
|
101
|
-
&:before {
|
|
102
|
-
transform: scale(0);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.#{$class-prefix-switch}-handle {
|
|
107
|
-
left: calc(100% - (var(--height) - var(--border-width)));
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.#{$class-prefix-switch}-inner {
|
|
111
|
-
margin: 0 calc(var(--height) - var(--border-width) + 5PX) 0 8PX;
|
|
112
|
-
color: $trionesColorTextLightSolid;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* 禁用状态 */
|
|
117
|
-
&.#{$class-prefix-switch}-disabled {
|
|
118
|
-
cursor: not-allowed;
|
|
119
|
-
opacity: 0.4;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/* loading图标 */
|
|
123
|
-
&-spin-icon {
|
|
124
|
-
width: 14PX;
|
|
125
|
-
height: 14PX;
|
|
126
|
-
animation: loading-rotate 1s linear infinite;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
1
|
+
@use "../style/variable" as *;
|
|
2
|
+
|
|
3
|
+
$class-prefix-switch: 'triones-antm-switch';
|
|
4
|
+
|
|
5
|
+
@keyframes loading-rotate {
|
|
6
|
+
100% {
|
|
7
|
+
transform: rotate(1turn);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* prettier-ignore */
|
|
12
|
+
.#{$class-prefix-switch} {
|
|
13
|
+
--height: 24PX;
|
|
14
|
+
--width: 42PX;
|
|
15
|
+
--border-width: 2PX;
|
|
16
|
+
|
|
17
|
+
display: inline-block;
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
position: relative;
|
|
21
|
+
align-self: center;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
|
|
24
|
+
input {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-checkbox {
|
|
29
|
+
min-width: var(--width);
|
|
30
|
+
height: var(--height);
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
border-radius: 31PX;
|
|
33
|
+
background: $trionesBorderColor;
|
|
34
|
+
z-index: 0;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
line-height: var(--height);
|
|
37
|
+
|
|
38
|
+
&:before {
|
|
39
|
+
content: ' ';
|
|
40
|
+
position: absolute;
|
|
41
|
+
left: var(--border-width);
|
|
42
|
+
top: var(--border-width);
|
|
43
|
+
width: calc(100% - 2 * var(--border-width));
|
|
44
|
+
height: calc(var(--height) - 2 * var(--border-width));
|
|
45
|
+
border-radius: calc(var(--height) - 2 * var(--border-width));
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
background: var(--triones-antm-color-background);
|
|
48
|
+
z-index: 1;
|
|
49
|
+
transition: all 200ms;
|
|
50
|
+
transform: scale(1);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-handle {
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
58
|
+
width: calc(var(--height) - 2 * var(--border-width));
|
|
59
|
+
height: calc(var(--height) - 2 * var(--border-width));
|
|
60
|
+
border-radius: calc(var(--height) - 2 * var(--border-width));
|
|
61
|
+
background: $trionesColorTextLightSolid;
|
|
62
|
+
position: absolute;
|
|
63
|
+
z-index: 2;
|
|
64
|
+
top: var(--border-width);
|
|
65
|
+
left: var(--border-width);
|
|
66
|
+
transition: all 200ms;
|
|
67
|
+
box-shadow: 0 0 2PX 0 rgba(0, 0, 0, 0.2),
|
|
68
|
+
0 2PX 11.5PX 0 rgba(0, 0, 0, 0.08),
|
|
69
|
+
-1PX 2PX 2PX 0 rgba(0, 0, 0, 0.1);
|
|
70
|
+
|
|
71
|
+
&-loading {
|
|
72
|
+
color: var(--color,$trionesColorPrimary);
|
|
73
|
+
display: inline-block;
|
|
74
|
+
height: 100%;
|
|
75
|
+
width: 100%;
|
|
76
|
+
background: currentColor;
|
|
77
|
+
mask-image: var(--maskImage);
|
|
78
|
+
-webkit-mask-image: var(--maskImage);
|
|
79
|
+
animation: adm-spin-loading-rotate 2s infinite linear;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&-inner {
|
|
84
|
+
position: relative;
|
|
85
|
+
z-index: 1;
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
align-items: center;
|
|
89
|
+
margin: 0 8PX 0 calc(var(--height) - var(--border-width) + 5PX);
|
|
90
|
+
height: 100%;
|
|
91
|
+
color: var(--triones-antm-color-weak);
|
|
92
|
+
transition: margin 200ms;
|
|
93
|
+
font-size: var(--triones-antm-font-size-7);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* 选中状态 */
|
|
97
|
+
&.#{$class-prefix-switch}-checked {
|
|
98
|
+
.#{$class-prefix-switch}-checkbox {
|
|
99
|
+
background: var(--checked-color, $trionesColorPrimary);
|
|
100
|
+
|
|
101
|
+
&:before {
|
|
102
|
+
transform: scale(0);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.#{$class-prefix-switch}-handle {
|
|
107
|
+
left: calc(100% - (var(--height) - var(--border-width)));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.#{$class-prefix-switch}-inner {
|
|
111
|
+
margin: 0 calc(var(--height) - var(--border-width) + 5PX) 0 8PX;
|
|
112
|
+
color: $trionesColorTextLightSolid;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* 禁用状态 */
|
|
117
|
+
&.#{$class-prefix-switch}-disabled {
|
|
118
|
+
cursor: not-allowed;
|
|
119
|
+
opacity: 0.4;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* loading图标 */
|
|
123
|
+
&-spin-icon {
|
|
124
|
+
width: 14PX;
|
|
125
|
+
height: 14PX;
|
|
126
|
+
animation: loading-rotate 1s linear infinite;
|
|
127
|
+
}
|
|
128
|
+
}
|
package/dist/TabBar/demo/base.js
CHANGED
package/dist/TabBar/index.scss
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
$trionesTabBarActiveColor: $trionesColorPrimary !default;
|
|
4
|
-
|
|
5
|
-
$tabBarCls: 'triones-tab-bar';
|
|
6
|
-
.#{$tabBarCls} {
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
padding-top: 4Px;
|
|
9
|
-
&-wrap {
|
|
10
|
-
display: flex;
|
|
11
|
-
background-color: #ffffff;
|
|
12
|
-
width: 100%;
|
|
13
|
-
justify-content: space-around;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&-item {
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
gap: 4Px;
|
|
21
|
-
cursor: default;
|
|
22
|
-
flex: 1 auto;
|
|
23
|
-
|
|
24
|
-
&-active {
|
|
25
|
-
color: $trionesTabBarActiveColor;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&-icon {
|
|
29
|
-
flex-grow: 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-label {
|
|
33
|
-
font-size: 12Px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
@use "../style/variable" as *;
|
|
2
|
+
|
|
3
|
+
$trionesTabBarActiveColor: $trionesColorPrimary !default;
|
|
4
|
+
|
|
5
|
+
$tabBarCls: 'triones-tab-bar';
|
|
6
|
+
.#{$tabBarCls} {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
padding-top: 4Px;
|
|
9
|
+
&-wrap {
|
|
10
|
+
display: flex;
|
|
11
|
+
background-color: #ffffff;
|
|
12
|
+
width: 100%;
|
|
13
|
+
justify-content: space-around;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-item {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: 4Px;
|
|
21
|
+
cursor: default;
|
|
22
|
+
flex: 1 auto;
|
|
23
|
+
|
|
24
|
+
&-active {
|
|
25
|
+
color: $trionesTabBarActiveColor;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-icon {
|
|
29
|
+
flex-grow: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-label {
|
|
33
|
+
font-size: 12Px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
package/dist/TabBar/tab-bar.d.ts
CHANGED
package/dist/TabBar/tab-bar.js
CHANGED
|
@@ -16,7 +16,7 @@ import "./index.scss";
|
|
|
16
16
|
import React, { useContext, useEffect } from "react";
|
|
17
17
|
import classNames from "classnames";
|
|
18
18
|
import { TabBarContext } from "./TabBarContext";
|
|
19
|
-
import { isEmpty } from "lodash";
|
|
19
|
+
import { isEmpty } from "lodash-es";
|
|
20
20
|
var tabBarCls = 'triones-tab-bar';
|
|
21
21
|
export var TabBarItem = function TabBarItem(_ref) {
|
|
22
22
|
var className = _ref.className,
|
|
@@ -55,7 +55,8 @@ export var TabBar = function TabBar(_ref2) {
|
|
|
55
55
|
style = _ref2.style,
|
|
56
56
|
activeKey = _ref2.activeKey,
|
|
57
57
|
defaultActiveKey = _ref2.defaultActiveKey,
|
|
58
|
-
items = _ref2.items,
|
|
58
|
+
_ref2$items = _ref2.items,
|
|
59
|
+
items = _ref2$items === void 0 ? [] : _ref2$items,
|
|
59
60
|
children = _ref2.children,
|
|
60
61
|
onClick = _ref2.onClick;
|
|
61
62
|
var _React$useState = React.useState(activeKey !== null && activeKey !== void 0 ? activeKey : defaultActiveKey),
|