@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/NavBar/style.scss
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
@
|
|
2
|
-
$trionesNavBarColorBg:$trionesColorBorderBg !default;
|
|
3
|
-
$trionesNavBarColorText:$trionesColorTextBase !default;
|
|
4
|
-
|
|
5
|
-
$class-prefix-nav-bar: 'triones-antm-nav-bar';
|
|
6
|
-
/* prettier-ignore */
|
|
7
|
-
.#{$class-prefix-nav-bar} {
|
|
8
|
-
--height: 45PX;
|
|
9
|
-
--border-bottom: none;
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
height: var(--height);
|
|
13
|
-
border-bottom: var(--border-bottom);
|
|
14
|
-
padding: 0 12PX;
|
|
15
|
-
white-space: nowrap;
|
|
16
|
-
color: $trionesNavBarColorText;
|
|
17
|
-
background-color: $trionesNavBarColorBg;
|
|
18
|
-
|
|
19
|
-
&-left,
|
|
20
|
-
&-right {
|
|
21
|
-
flex: 1;
|
|
22
|
-
}
|
|
23
|
-
&-title {
|
|
24
|
-
flex: auto;
|
|
25
|
-
text-align: center;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
text-overflow: ellipsis;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&-back {
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
margin-right: 16PX;
|
|
34
|
-
padding: 6PX 0;
|
|
35
|
-
cursor: pointer;
|
|
36
|
-
&-arrow {
|
|
37
|
-
font-size: 20PX;
|
|
38
|
-
margin-right: 5PX;
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-left {
|
|
45
|
-
font-size: var(--triones-antm-font-size-7);
|
|
46
|
-
display: flex;
|
|
47
|
-
justify-content: flex-start;
|
|
48
|
-
align-items: center;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-title {
|
|
52
|
-
justify-content: center;
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
font-size: var(--triones-antm-font-size-10);
|
|
55
|
-
padding: 0 12PX;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&-right {
|
|
59
|
-
text-align: right;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
@use "../style/variable" as *;
|
|
2
|
+
$trionesNavBarColorBg:$trionesColorBorderBg !default;
|
|
3
|
+
$trionesNavBarColorText:$trionesColorTextBase !default;
|
|
4
|
+
|
|
5
|
+
$class-prefix-nav-bar: 'triones-antm-nav-bar';
|
|
6
|
+
/* prettier-ignore */
|
|
7
|
+
.#{$class-prefix-nav-bar} {
|
|
8
|
+
--height: 45PX;
|
|
9
|
+
--border-bottom: none;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
height: var(--height);
|
|
13
|
+
border-bottom: var(--border-bottom);
|
|
14
|
+
padding: 0 12PX;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
color: $trionesNavBarColorText;
|
|
17
|
+
background-color: $trionesNavBarColorBg;
|
|
18
|
+
|
|
19
|
+
&-left,
|
|
20
|
+
&-right {
|
|
21
|
+
flex: 1;
|
|
22
|
+
}
|
|
23
|
+
&-title {
|
|
24
|
+
flex: auto;
|
|
25
|
+
text-align: center;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-back {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
margin-right: 16PX;
|
|
34
|
+
padding: 6PX 0;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
&-arrow {
|
|
37
|
+
font-size: 20PX;
|
|
38
|
+
margin-right: 5PX;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-left {
|
|
45
|
+
font-size: var(--triones-antm-font-size-7);
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: flex-start;
|
|
48
|
+
align-items: center;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-title {
|
|
52
|
+
justify-content: center;
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
font-size: var(--triones-antm-font-size-10);
|
|
55
|
+
padding: 0 12PX;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&-right {
|
|
59
|
+
text-align: right;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
$class-prefix-notice-bar: 'triones-antm-notice-bar';
|
|
2
|
-
/* prettier-ignore */
|
|
3
|
-
.#{$class-prefix-notice-bar} {
|
|
4
|
-
--background-color: var(--triones-antm-color-weak);
|
|
5
|
-
--border-color: var(--triones-antm-color-weak);
|
|
6
|
-
--text-color: var(--triones-antm-color-text-light-solid);
|
|
7
|
-
--font-size: var(--triones-antm-font-size-7);
|
|
8
|
-
--icon-font-size: var(--triones-antm-font-size-10);
|
|
9
|
-
--height: 40PX;
|
|
10
|
-
--triones-antm-notice-bar-border-radius: 4PX;
|
|
11
|
-
--triones-antm-notice-bar-border-width: 1PX;
|
|
12
|
-
|
|
13
|
-
flex: 1 auto;
|
|
14
|
-
height: var(--height);
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
font-size: var(--font-size);
|
|
17
|
-
padding: 0 12PX;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: space-between;
|
|
21
|
-
|
|
22
|
-
border: solid var(--triones-antm-notice-bar-border-width) var(--border-color);
|
|
23
|
-
border-left-width: 0;
|
|
24
|
-
border-right-width: 0;
|
|
25
|
-
background-color: var(--background-color);
|
|
26
|
-
color: var(--text-color);
|
|
27
|
-
& > span[role='img'] {
|
|
28
|
-
color: var(--text-color);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.#{$class-prefix-notice-bar}-alert {
|
|
32
|
-
--background-color: #fff9ed;
|
|
33
|
-
--border-color: #fff3e9;
|
|
34
|
-
--text-color: var(--triones-antm-color-orange);
|
|
35
|
-
}
|
|
36
|
-
&.#{$class-prefix-notice-bar}-error {
|
|
37
|
-
--background-color: #d9281e;
|
|
38
|
-
--border-color: #d9281e;
|
|
39
|
-
--text-color: #fff;
|
|
40
|
-
}
|
|
41
|
-
&.#{$class-prefix-notice-bar}-info {
|
|
42
|
-
--background-color: #d0e4ff;
|
|
43
|
-
--border-color: #bcd8ff;
|
|
44
|
-
--text-color: var(--triones-antm-color-primary);
|
|
45
|
-
}
|
|
46
|
-
&.#{$class-prefix-notice-bar}-success {
|
|
47
|
-
--background-color: #d1fff0;
|
|
48
|
-
--border-color: #a8f0d8;
|
|
49
|
-
--text-color: var(--triones-antm-color-success);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
& .#{$class-prefix-notice-bar}-left {
|
|
53
|
-
flex-shrink: 0;
|
|
54
|
-
margin-right: 8PX;
|
|
55
|
-
font-size: var(--icon-font-size);
|
|
56
|
-
}
|
|
57
|
-
& .#{$class-prefix-notice-bar}-content {
|
|
58
|
-
flex: 1;
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
position: relative;
|
|
61
|
-
height: 100%;
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
|
|
65
|
-
& .#{$class-prefix-notice-bar}-content-inner {
|
|
66
|
-
width: auto;
|
|
67
|
-
transition-timing-function: linear;
|
|
68
|
-
white-space: nowrap;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
& .#{$class-prefix-notice-bar}-right {
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: center;
|
|
75
|
-
flex-shrink: 0;
|
|
76
|
-
margin-left: 12PX;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&-close {
|
|
80
|
-
width: 24PX;
|
|
81
|
-
height: 24PX;
|
|
82
|
-
margin-right: -3PX;
|
|
83
|
-
display: flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
font-size: var(--triones-antm-font-size-10);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&-wrap {
|
|
90
|
-
height: auto;
|
|
91
|
-
align-items: flex-start;
|
|
92
|
-
padding-top: 8PX;
|
|
93
|
-
padding-bottom: 8PX;
|
|
94
|
-
line-height: 22PX;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&-neutral {
|
|
98
|
-
border-radius: var(--triones-antm-notice-bar-border-radius);
|
|
99
|
-
-webkit-border-radius: var(--triones-antm-notice-bar-border-radius);
|
|
100
|
-
-moz-border-radius: var(--triones-antm-notice-bar-border-radius);
|
|
101
|
-
-ms-border-radius: var(--triones-antm-notice-bar-border-radius);
|
|
102
|
-
-o-border-radius: var(--triones-antm-notice-bar-border-radius);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&-rounded {
|
|
106
|
-
border-radius: 1000PX;
|
|
107
|
-
-webkit-border-radius: 1000PX;
|
|
108
|
-
-moz-border-radius: 1000PX;
|
|
109
|
-
-ms-border-radius: 1000PX;
|
|
110
|
-
-o-border-radius: 1000PX;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&-bordered {
|
|
114
|
-
border-left-width: var(--triones-antm-notice-bar-border-width);
|
|
115
|
-
border-right-width: var(--triones-antm-notice-bar-border-width);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&-without-border {
|
|
119
|
-
border-top-width: 0;
|
|
120
|
-
border-bottom-width: 0;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.#{$class-prefix-notice-bar}.#{$class-prefix-notice-bar}-wrap {
|
|
125
|
-
.#{$class-prefix-notice-bar}-content {
|
|
126
|
-
.#{$class-prefix-notice-bar}-content-inner {
|
|
127
|
-
white-space: normal;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
1
|
+
$class-prefix-notice-bar: 'triones-antm-notice-bar';
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
.#{$class-prefix-notice-bar} {
|
|
4
|
+
--background-color: var(--triones-antm-color-weak);
|
|
5
|
+
--border-color: var(--triones-antm-color-weak);
|
|
6
|
+
--text-color: var(--triones-antm-color-text-light-solid);
|
|
7
|
+
--font-size: var(--triones-antm-font-size-7);
|
|
8
|
+
--icon-font-size: var(--triones-antm-font-size-10);
|
|
9
|
+
--height: 40PX;
|
|
10
|
+
--triones-antm-notice-bar-border-radius: 4PX;
|
|
11
|
+
--triones-antm-notice-bar-border-width: 1PX;
|
|
12
|
+
|
|
13
|
+
flex: 1 auto;
|
|
14
|
+
height: var(--height);
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
font-size: var(--font-size);
|
|
17
|
+
padding: 0 12PX;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
|
|
22
|
+
border: solid var(--triones-antm-notice-bar-border-width) var(--border-color);
|
|
23
|
+
border-left-width: 0;
|
|
24
|
+
border-right-width: 0;
|
|
25
|
+
background-color: var(--background-color);
|
|
26
|
+
color: var(--text-color);
|
|
27
|
+
& > span[role='img'] {
|
|
28
|
+
color: var(--text-color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.#{$class-prefix-notice-bar}-alert {
|
|
32
|
+
--background-color: #fff9ed;
|
|
33
|
+
--border-color: #fff3e9;
|
|
34
|
+
--text-color: var(--triones-antm-color-orange);
|
|
35
|
+
}
|
|
36
|
+
&.#{$class-prefix-notice-bar}-error {
|
|
37
|
+
--background-color: #d9281e;
|
|
38
|
+
--border-color: #d9281e;
|
|
39
|
+
--text-color: #fff;
|
|
40
|
+
}
|
|
41
|
+
&.#{$class-prefix-notice-bar}-info {
|
|
42
|
+
--background-color: #d0e4ff;
|
|
43
|
+
--border-color: #bcd8ff;
|
|
44
|
+
--text-color: var(--triones-antm-color-primary);
|
|
45
|
+
}
|
|
46
|
+
&.#{$class-prefix-notice-bar}-success {
|
|
47
|
+
--background-color: #d1fff0;
|
|
48
|
+
--border-color: #a8f0d8;
|
|
49
|
+
--text-color: var(--triones-antm-color-success);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
& .#{$class-prefix-notice-bar}-left {
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
margin-right: 8PX;
|
|
55
|
+
font-size: var(--icon-font-size);
|
|
56
|
+
}
|
|
57
|
+
& .#{$class-prefix-notice-bar}-content {
|
|
58
|
+
flex: 1;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
position: relative;
|
|
61
|
+
height: 100%;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
|
|
65
|
+
& .#{$class-prefix-notice-bar}-content-inner {
|
|
66
|
+
width: auto;
|
|
67
|
+
transition-timing-function: linear;
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
& .#{$class-prefix-notice-bar}-right {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
margin-left: 12PX;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&-close {
|
|
80
|
+
width: 24PX;
|
|
81
|
+
height: 24PX;
|
|
82
|
+
margin-right: -3PX;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
font-size: var(--triones-antm-font-size-10);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&-wrap {
|
|
90
|
+
height: auto;
|
|
91
|
+
align-items: flex-start;
|
|
92
|
+
padding-top: 8PX;
|
|
93
|
+
padding-bottom: 8PX;
|
|
94
|
+
line-height: 22PX;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&-neutral {
|
|
98
|
+
border-radius: var(--triones-antm-notice-bar-border-radius);
|
|
99
|
+
-webkit-border-radius: var(--triones-antm-notice-bar-border-radius);
|
|
100
|
+
-moz-border-radius: var(--triones-antm-notice-bar-border-radius);
|
|
101
|
+
-ms-border-radius: var(--triones-antm-notice-bar-border-radius);
|
|
102
|
+
-o-border-radius: var(--triones-antm-notice-bar-border-radius);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&-rounded {
|
|
106
|
+
border-radius: 1000PX;
|
|
107
|
+
-webkit-border-radius: 1000PX;
|
|
108
|
+
-moz-border-radius: 1000PX;
|
|
109
|
+
-ms-border-radius: 1000PX;
|
|
110
|
+
-o-border-radius: 1000PX;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&-bordered {
|
|
114
|
+
border-left-width: var(--triones-antm-notice-bar-border-width);
|
|
115
|
+
border-right-width: var(--triones-antm-notice-bar-border-width);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&-without-border {
|
|
119
|
+
border-top-width: 0;
|
|
120
|
+
border-bottom-width: 0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.#{$class-prefix-notice-bar}.#{$class-prefix-notice-bar}-wrap {
|
|
125
|
+
.#{$class-prefix-notice-bar}-content {
|
|
126
|
+
.#{$class-prefix-notice-bar}-content-inner {
|
|
127
|
+
white-space: normal;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
/* prettier-ignore */
|
|
2
|
-
.triones-antm-page-indicator {
|
|
3
|
-
display: flex;
|
|
4
|
-
width: auto;
|
|
5
|
-
|
|
6
|
-
--dot-color: #ccc;
|
|
7
|
-
--active-dot-color: #1677ff;
|
|
8
|
-
--dot-size: 3PX;
|
|
9
|
-
--active-dot-size: 13PX;
|
|
10
|
-
--dot-border-radius: 1PX;
|
|
11
|
-
--active-dot-border-radius: var(--dot-border-radius);
|
|
12
|
-
--dot-spacing: 3PX;
|
|
13
|
-
|
|
14
|
-
&-dot {
|
|
15
|
-
display: block;
|
|
16
|
-
width: var(--dot-size);
|
|
17
|
-
height: var(--dot-size);
|
|
18
|
-
border-radius: var(--dot-border-radius);
|
|
19
|
-
background: var(--dot-color);
|
|
20
|
-
|
|
21
|
-
&:last-child {
|
|
22
|
-
margin-right: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-active {
|
|
26
|
-
border-radius: var(--active-dot-border-radius);
|
|
27
|
-
background: var(--active-dot-color);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&-color-white {
|
|
32
|
-
--dot-color: rgba(255, 255, 255, 50%);
|
|
33
|
-
--active-dot-color: #fff;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&-horizontal {
|
|
37
|
-
flex-direction: row;
|
|
38
|
-
|
|
39
|
-
.triones-antm-page-indicator-dot {
|
|
40
|
-
margin-right: var(--dot-spacing);
|
|
41
|
-
|
|
42
|
-
&-active {
|
|
43
|
-
width: var(--active-dot-size);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&-vertical {
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
|
|
51
|
-
.triones-antm-page-indicator-dot {
|
|
52
|
-
margin-bottom: var(--dot-spacing);
|
|
53
|
-
|
|
54
|
-
&-active {
|
|
55
|
-
height: var(--active-dot-size);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
/* prettier-ignore */
|
|
2
|
+
.triones-antm-page-indicator {
|
|
3
|
+
display: flex;
|
|
4
|
+
width: auto;
|
|
5
|
+
|
|
6
|
+
--dot-color: #ccc;
|
|
7
|
+
--active-dot-color: #1677ff;
|
|
8
|
+
--dot-size: 3PX;
|
|
9
|
+
--active-dot-size: 13PX;
|
|
10
|
+
--dot-border-radius: 1PX;
|
|
11
|
+
--active-dot-border-radius: var(--dot-border-radius);
|
|
12
|
+
--dot-spacing: 3PX;
|
|
13
|
+
|
|
14
|
+
&-dot {
|
|
15
|
+
display: block;
|
|
16
|
+
width: var(--dot-size);
|
|
17
|
+
height: var(--dot-size);
|
|
18
|
+
border-radius: var(--dot-border-radius);
|
|
19
|
+
background: var(--dot-color);
|
|
20
|
+
|
|
21
|
+
&:last-child {
|
|
22
|
+
margin-right: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-active {
|
|
26
|
+
border-radius: var(--active-dot-border-radius);
|
|
27
|
+
background: var(--active-dot-color);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-color-white {
|
|
32
|
+
--dot-color: rgba(255, 255, 255, 50%);
|
|
33
|
+
--active-dot-color: #fff;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-horizontal {
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
|
|
39
|
+
.triones-antm-page-indicator-dot {
|
|
40
|
+
margin-right: var(--dot-spacing);
|
|
41
|
+
|
|
42
|
+
&-active {
|
|
43
|
+
width: var(--active-dot-size);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-vertical {
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
|
|
51
|
+
.triones-antm-page-indicator-dot {
|
|
52
|
+
margin-bottom: var(--dot-spacing);
|
|
53
|
+
|
|
54
|
+
&-active {
|
|
55
|
+
height: var(--active-dot-size);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
package/dist/Picker/picker.js
CHANGED
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import classNames from 'classnames';
|
|
8
|
-
import { size } from 'lodash';
|
|
8
|
+
import { size } from 'lodash-es';
|
|
9
9
|
import React, { useEffect, useState } from 'react';
|
|
10
10
|
import ConfigProvider from "../ConfigProvider";
|
|
11
11
|
import PickerView from "../PickerView";
|
package/dist/Picker/style.scss
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
@
|
|
2
|
-
$pickerCls: 'triones-antm-picker';
|
|
3
|
-
|
|
4
|
-
.#{$pickerCls} {
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 300Px;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
position: relative;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
|
|
12
|
-
&-header {
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
align-items: center;
|
|
16
|
-
border-bottom: 1Px solid #eee;
|
|
17
|
-
padding: 4Px;
|
|
18
|
-
|
|
19
|
-
&-button {
|
|
20
|
-
padding: 8Px;
|
|
21
|
-
font-size: 12Px;
|
|
22
|
-
&-ok{
|
|
23
|
-
color: $trionesColorPrimary;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-title {
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&-body {
|
|
32
|
-
flex: 1 1;
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
pointer-events: unset;
|
|
36
|
-
}
|
|
37
|
-
&-view{
|
|
38
|
-
--height: 100%;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
}
|
|
1
|
+
@use "../style/variable" as *;
|
|
2
|
+
$pickerCls: 'triones-antm-picker';
|
|
3
|
+
|
|
4
|
+
.#{$pickerCls} {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 300Px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
|
|
12
|
+
&-header {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: center;
|
|
16
|
+
border-bottom: 1Px solid #eee;
|
|
17
|
+
padding: 4Px;
|
|
18
|
+
|
|
19
|
+
&-button {
|
|
20
|
+
padding: 8Px;
|
|
21
|
+
font-size: 12Px;
|
|
22
|
+
&-ok{
|
|
23
|
+
color: $trionesColorPrimary;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-title {
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-body {
|
|
32
|
+
flex: 1 1;
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
pointer-events: unset;
|
|
36
|
+
}
|
|
37
|
+
&-view{
|
|
38
|
+
--height: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
@@ -7,7 +7,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
7
7
|
import React, { useEffect, useState } from "react";
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
import { PickerViewColumnItem } from "./picker-view-column-item";
|
|
10
|
-
import { findIndex, isEmpty, size } from "lodash";
|
|
10
|
+
import { findIndex, isEmpty, size } from "lodash-es";
|
|
11
11
|
var pickerViewCls = "triones-antm-picker-view";
|
|
12
12
|
export var PickerViewColumn = /*#__PURE__*/React.memo(function (_ref) {
|
|
13
13
|
var options = _ref.options,
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import classNames from "classnames";
|
|
8
|
-
import { isEmpty, size } from "lodash";
|
|
8
|
+
import { isEmpty, size } from "lodash-es";
|
|
9
9
|
import { PickerViewColumn } from "./picker-view-column";
|
|
10
10
|
import React, { useEffect, useState } from "react";
|
|
11
11
|
import "./style.scss";
|