@trionesdev/antd-mobile-react 0.0.2-beta.2 → 0.0.2-beta.20
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/dist/ActionSheet/ActionSheet.d.ts +25 -0
- package/dist/ActionSheet/ActionSheet.js +77 -0
- package/dist/ActionSheet/index.d.ts +1 -1
- package/dist/ActionSheet/index.js +1 -1
- package/dist/ActionSheet/style.scss +52 -0
- package/dist/Avatar/demo/base.js +2 -2
- package/dist/Avatar/demo/style.scss +6 -6
- package/dist/Badge/demo/base.js +2 -2
- package/dist/Badge/demo/base.scss +6 -6
- package/dist/Button/button.d.ts +2 -1
- package/dist/Button/button.js +1 -1
- package/dist/Button/demo/base.js +2 -2
- package/dist/Button/style.scss +234 -232
- package/dist/Calendar/calendar-grid.d.ts +10 -9
- package/dist/Calendar/calendar-grid.js +41 -64
- package/dist/Calendar/calendar-header.d.ts +3 -2
- package/dist/Calendar/calendar-header.js +6 -6
- package/dist/Calendar/calendar-range.d.ts +4 -3
- package/dist/Calendar/calendar-range.js +12 -11
- package/dist/Calendar/calendar.d.ts +5 -4
- package/dist/Calendar/calendar.js +23 -14
- package/dist/Calendar/style.scss +85 -85
- package/dist/Calendar/touchable-calendar-grid.d.ts +6 -5
- package/dist/Calendar/touchable-calendar-grid.js +67 -59
- package/dist/CalendarDatetimePicker/CalendarDatetimePicker.d.ts +3 -2
- package/dist/CalendarDatetimePicker/CalendarDatetimePicker.js +14 -28
- package/dist/CalendarDatetimePicker/DateTimeSwitch.d.ts +3 -2
- package/dist/CalendarDatetimePicker/DateTimeSwitch.js +4 -3
- package/dist/CalendarDatetimePicker/demo/base.js +1 -1
- package/dist/CalendarDatetimePicker/style.scss +54 -54
- package/dist/CalendarDatetimePicker/types.d.ts +1 -1
- package/dist/CalendarDatetimePicker/types.js +1 -1
- package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.d.ts +11 -0
- package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.js +61 -0
- package/dist/{Mask → CalendarDatetimePickerCell}/demo/base.js +9 -15
- package/dist/CalendarDatetimePickerCell/index.d.ts +3 -0
- package/dist/CalendarDatetimePickerCell/index.js +2 -0
- package/dist/CalendarDatetimePickerCell/style.scss +10 -0
- package/dist/CalendarDatetimePickerCell/types.d.ts +1 -0
- package/dist/CalendarDatetimePickerCell/types.js +1 -0
- package/dist/CalendarPicker/calendar-picker.js +2 -2
- package/dist/CalendarPicker/calendar-range-picker.d.ts +4 -4
- package/dist/CalendarPicker/calendar-range-picker.js +11 -9
- package/dist/CalendarPicker/demo/base.js +6 -6
- package/dist/CalendarPicker/index.d.ts +2 -2
- package/dist/CalendarPicker/index.js +3 -3
- package/dist/CalendarPicker/style.scss +31 -31
- package/dist/CalendarPicker/types.d.ts +8 -7
- package/dist/CalendarPickerCell/CalendarPickerCell.d.ts +11 -0
- package/dist/CalendarPickerCell/CalendarPickerCell.js +54 -0
- package/dist/CalendarPickerCell/CalendarRangePickerCell.d.ts +11 -0
- package/dist/CalendarPickerCell/CalendarRangePickerCell.js +56 -0
- package/dist/CalendarPickerCell/demo/base.d.ts +3 -0
- package/dist/CalendarPickerCell/demo/base.js +31 -0
- package/dist/CalendarPickerCell/index.d.ts +8 -0
- package/dist/CalendarPickerCell/index.js +5 -0
- package/dist/Card/demo/base.js +2 -2
- package/dist/Card/demo/base.scss +18 -18
- package/dist/CascaderPicker/cascader-picker.d.ts +27 -0
- package/dist/CascaderPicker/cascader-picker.js +90 -0
- package/dist/CascaderPicker/demo/base.js +1 -4
- package/dist/CascaderPicker/index.d.ts +1 -1
- package/dist/CascaderPicker/index.js +1 -1
- package/dist/CascaderPicker/style.scss +45 -0
- package/dist/CascaderPickerCell/CascaderPickerCell.d.ts +21 -0
- package/dist/CascaderPickerCell/CascaderPickerCell.js +70 -0
- package/dist/CascaderPickerCell/demo/base.js +71 -0
- package/dist/CascaderPickerCell/index.d.ts +3 -0
- package/dist/CascaderPickerCell/index.js +2 -0
- package/dist/CascaderPickerCell/style.scss +24 -0
- package/dist/Cell/demo/base.js +41 -2
- package/dist/Checkbox/demo/base.js +11 -6
- package/dist/Checkbox/demo/disabled.js +2 -1
- package/dist/ConfigProvider/demo/base.js +2 -2
- package/dist/DemoBlock/index.d.ts +6 -0
- package/dist/DemoBlock/index.js +9 -2
- package/dist/DemoBlock/index.scss +20 -20
- package/dist/DemoDescription/index.scss +3 -3
- package/dist/Divider/demo/base.js +2 -2
- package/dist/Ellipsis/demo/base.js +2 -2
- package/dist/Empty/demo/base.js +2 -2
- package/dist/ErrorBlock/demo/base.js +2 -2
- package/dist/FetchPicker/FetchPicker.d.ts +113 -0
- package/dist/FetchPicker/FetchPicker.js +319 -0
- package/dist/FetchPicker/index.d.ts +4 -0
- package/dist/FetchPicker/index.js +3 -0
- package/dist/FetchPicker/styles.scss +118 -0
- package/dist/FloatButton/FloatButton.d.ts +21 -0
- package/dist/FloatButton/FloatButton.js +66 -0
- package/dist/FloatButton/FloatButtonGroup.d.ts +21 -0
- package/dist/FloatButton/FloatButtonGroup.js +120 -0
- package/dist/FloatButton/context.d.ts +13 -0
- package/dist/FloatButton/context.js +2 -0
- package/dist/FloatButton/demo/base.d.ts +3 -0
- package/dist/FloatButton/demo/base.js +10 -0
- package/dist/FloatButton/demo/group.d.ts +3 -0
- package/dist/FloatButton/demo/group.js +20 -0
- package/dist/FloatButton/demo/square.d.ts +3 -0
- package/dist/FloatButton/demo/square.js +12 -0
- package/dist/FloatButton/index.d.ts +10 -0
- package/dist/FloatButton/index.js +5 -0
- package/dist/FloatButton/style.scss +123 -0
- package/dist/Footer/demo/base.js +2 -2
- package/dist/Form/FormItem/form-item-content.d.ts +17 -0
- package/dist/Form/FormItem/form-item-content.js +39 -0
- package/dist/Form/FormItem/form-item-label.d.ts +13 -0
- package/dist/Form/FormItem/form-item-label.js +29 -0
- package/dist/Form/FormItem/form-item.d.ts +51 -0
- package/dist/Form/FormItem/form-item.js +74 -0
- package/dist/Form/FormItem/index.d.ts +5 -0
- package/dist/Form/FormItem/index.js +3 -0
- package/dist/Form/demo/input.js +7 -3
- package/dist/Form/demo/vertical.d.ts +3 -0
- package/dist/Form/demo/vertical.js +45 -0
- package/dist/Form/index.d.ts +9 -2
- package/dist/Form/index.js +5 -1
- package/dist/Form/style.scss +106 -0
- package/dist/FormCell/index.d.ts +3 -0
- package/dist/FormCell/index.js +2 -0
- package/dist/Grid/demo/base.js +2 -2
- package/dist/Grid/demo/base.scss +7 -7
- package/dist/Icon/demo/base.js +2 -2
- package/dist/Image/demo/base.js +2 -2
- package/dist/Image/demo/base.scss +4 -4
- package/dist/Image/style.scss +30 -30
- package/dist/ImagesPreview/ImagesPreview.js +2 -2
- package/dist/ImagesPreview/style.scss +34 -34
- package/dist/ImagesWall/CameraModal.js +2 -2
- package/dist/ImagesWall/style.scss +70 -70
- package/dist/Input/base-input.d.ts +13 -0
- package/dist/Input/base-input.js +41 -0
- package/dist/Input/demo/base.js +115 -13
- package/dist/Input/index.d.ts +14 -2
- package/dist/Input/index.js +11 -1
- package/dist/Input/index.scss +240 -0
- package/dist/Input/input-affix-wrapper.d.ts +13 -0
- package/dist/Input/input-affix-wrapper.js +37 -0
- package/dist/Input/input-opt.d.ts +16 -0
- package/dist/Input/input-opt.js +87 -0
- package/dist/Input/input-password.d.ts +7 -0
- package/dist/Input/input-password.js +48 -0
- package/dist/Input/input.d.ts +20 -0
- package/dist/Input/input.js +66 -0
- package/dist/Input/textarea.d.ts +15 -0
- package/dist/Input/textarea.js +51 -0
- package/dist/Input/types.d.ts +3 -0
- package/dist/Input/types.js +2 -0
- package/dist/Loading/DotLoading.d.ts +1 -0
- package/dist/Loading/DotLoading.js +1 -0
- package/dist/Loading/SpinLoading.d.ts +1 -0
- package/dist/Loading/SpinLoading.js +1 -0
- package/dist/Loading/demo/base.d.ts +3 -0
- package/dist/{SpinLoading → Loading}/demo/base.js +8 -2
- package/dist/Loading/demo/dot-loading.d.ts +3 -0
- package/dist/Loading/demo/dot-loading.js +25 -0
- package/dist/Loading/index.d.ts +5 -0
- package/dist/Loading/index.js +3 -0
- package/dist/NavBar/demo/base.scss +5 -5
- package/dist/NoticeBar/demo/base.js +2 -2
- package/dist/Overlay/Overlay.d.ts +16 -0
- package/dist/Overlay/Overlay.js +117 -0
- package/dist/Overlay/demo/base.d.ts +3 -0
- package/dist/Overlay/demo/base.js +27 -0
- package/dist/Overlay/index.d.ts +4 -0
- package/dist/Overlay/index.js +3 -0
- package/dist/Overlay/style.scss +20 -0
- package/dist/PageIndicator/demo/base.js +2 -2
- package/dist/Picker/index.d.ts +1 -1
- package/dist/Picker/index.js +1 -1
- package/dist/Picker/picker.d.ts +20 -0
- package/dist/Picker/picker.js +94 -0
- package/dist/Picker/style.scss +44 -0
- package/dist/PickerView/index.d.ts +2 -1
- package/dist/PickerView/index.js +1 -1
- package/dist/PickerView/picker-view-column-item.d.ts +7 -0
- package/dist/PickerView/picker-view-column-item.js +11 -0
- package/dist/PickerView/picker-view-column.d.ts +10 -0
- package/dist/PickerView/picker-view-column.js +117 -0
- package/dist/PickerView/picker-view.d.ts +12 -0
- package/dist/PickerView/picker-view.js +60 -0
- package/dist/PickerView/style.scss +72 -0
- package/dist/PickerView/types.d.ts +4 -0
- package/dist/PickerView/types.js +1 -0
- package/dist/Popup/demo/base.js +109 -27
- package/dist/Popup/index.d.ts +2 -1
- package/dist/Popup/index.js +2 -1
- package/dist/Popup/popup.d.ts +31 -0
- package/dist/Popup/popup.js +87 -0
- package/dist/Popup/style.scss +129 -0
- package/dist/Progress/index.d.ts +1 -1
- package/dist/Progress/index.js +1 -1
- package/dist/Radio/demo/base.js +2 -2
- package/dist/Radio/demo/base.scss +4 -4
- package/dist/Result/demo/base.js +2 -2
- package/dist/SafeArea/demo/base.scss +18 -18
- package/dist/ScrollView/index.d.ts +2 -1
- package/dist/ScrollView/index.js +1 -1
- package/dist/ScrollView/scroll-view.d.ts +4 -0
- package/dist/ScrollView/scroll-view.js +55 -0
- package/dist/ScrollView/style.scss +19 -0
- package/dist/ScrollView/types.d.ts +26 -0
- package/dist/ScrollView/types.js +1 -0
- package/dist/Segmented/demo/base.d.ts +3 -0
- package/dist/Segmented/demo/base.js +33 -0
- package/dist/Segmented/index.d.ts +3 -0
- package/dist/Segmented/index.js +2 -0
- package/dist/SideBar/index.d.ts +1 -1
- package/dist/SideBar/side-bar.js +6 -6
- package/dist/SideBar/style.scss +85 -85
- package/dist/Skeleton/demo/base.d.ts +3 -0
- package/dist/Skeleton/demo/base.js +8 -0
- package/dist/Skeleton/index.d.ts +3 -0
- package/dist/Skeleton/index.js +2 -0
- package/dist/Space/demo/base.js +2 -2
- package/dist/Stepper/demo/base.d.ts +3 -0
- package/dist/Stepper/demo/base.js +23 -0
- package/dist/Stepper/index.d.ts +3 -0
- package/dist/Stepper/index.js +2 -0
- package/dist/Swiper/style.scss +54 -54
- package/dist/Switch/demo/base.js +2 -2
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/Tag/demo/base.js +2 -2
- package/dist/Tag/demo/style.scss +8 -8
- package/dist/Toast/style.scss +63 -63
- package/dist/Toast/toast-modal.js +4 -4
- package/dist/VerificationCodeInput/demo/base.js +2 -2
- package/dist/VerificationCodeInput/index.d.ts +2 -2
- package/dist/VerificationCodeInput/index.js +1 -1
- package/dist/VerificationCodeInput/style.scss +20 -0
- package/dist/VerificationCodeInput/verification-code-input.d.ts +24 -0
- package/dist/VerificationCodeInput/verification-code-input.js +99 -0
- package/dist/WaterMark/demo/demo1.js +2 -2
- package/dist/WaterMark/demo/demo1.scss +6 -6
- package/dist/WaterMark/demo/demo2.js +2 -2
- package/dist/index.d.ts +33 -19
- package/dist/index.js +9 -2
- package/dist/style/variable.scss +1 -1
- package/dist/types.d.ts +0 -8
- package/dist/types.js +0 -1
- package/dist/utils/dayjs.d.ts +4 -0
- package/dist/utils/dayjs.js +42 -0
- package/dist/utils/type.js +36 -36
- package/dist/utils/use-isomorphic-update-layout-effect.d.ts +1 -1
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +11 -16
- package/readme.md +43 -43
- package/dist/Mask/index.d.ts +0 -3
- package/dist/Mask/index.js +0 -2
- package/dist/Progress/Progress.d.ts +0 -37
- package/dist/Progress/Progress.js +0 -52
- package/dist/Progress/ProgressCircle.d.ts +0 -17
- package/dist/Progress/ProgressCircle.js +0 -148
- package/dist/Progress/ProgressLine.d.ts +0 -15
- package/dist/Progress/ProgressLine.js +0 -87
- package/dist/Progress/style.scss +0 -33
- package/dist/Progress/types.d.ts +0 -4
- package/dist/Progress/types.js +0 -2
- package/dist/SpinLoading/index.d.ts +0 -3
- package/dist/SpinLoading/index.js +0 -2
- /package/dist/{Mask → CalendarDatetimePickerCell}/demo/base.d.ts +0 -0
- /package/dist/{SpinLoading → CascaderPickerCell}/demo/base.d.ts +0 -0
package/dist/Button/style.scss
CHANGED
|
@@ -1,232 +1,234 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
2
|
-
|
|
3
|
-
$trionesButtonPendingInlineSm: 7Px;
|
|
4
|
-
$trionesButtonHeightSm: 24Px;
|
|
5
|
-
|
|
6
|
-
$trionesButtonPendingInline: 15Px;
|
|
7
|
-
$trionesButtonHeight: 32Px;
|
|
8
|
-
|
|
9
|
-
$trionesButtonContentFontSizeLg:
|
|
10
|
-
$trionesButtonPendingInlineLg: 15Px;
|
|
11
|
-
$trionesButtonHeightLg: 40Px;
|
|
12
|
-
|
|
13
|
-
// 定义常用颜色变量以提高可维护性
|
|
14
|
-
$buttonBackgroundColor: #ffffff;
|
|
15
|
-
$
|
|
16
|
-
$
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
justify-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$trionesButtonPendingInlineSm: 7Px;
|
|
4
|
+
$trionesButtonHeightSm: 24Px;
|
|
5
|
+
|
|
6
|
+
$trionesButtonPendingInline: 15Px;
|
|
7
|
+
$trionesButtonHeight: 32Px;
|
|
8
|
+
|
|
9
|
+
$trionesButtonContentFontSizeLg: variable.$trionesFontSizeLg;
|
|
10
|
+
$trionesButtonPendingInlineLg: 15Px;
|
|
11
|
+
$trionesButtonHeightLg: 40Px;
|
|
12
|
+
|
|
13
|
+
// 定义常用颜色变量以提高可维护性
|
|
14
|
+
$buttonBackgroundColor: #ffffff;
|
|
15
|
+
$buttonColorPrimary: variable.$trionesColorPrimary!default;
|
|
16
|
+
$buttonColorError: variable.$trionesColorError!default;
|
|
17
|
+
$buttonDarkColor: rgba(0, 0, 0, 0.75);
|
|
18
|
+
$buttonLightColor: rgba(0, 0, 0, 0.06);
|
|
19
|
+
|
|
20
|
+
button::after {
|
|
21
|
+
content: none;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
$buttonCls: 'triones-antm-button';
|
|
26
|
+
.#{$buttonCls} {
|
|
27
|
+
width: auto;
|
|
28
|
+
position: relative;
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
justify-self: center;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
height: auto;
|
|
35
|
+
line-height: normal;
|
|
36
|
+
border-radius: 4Px;
|
|
37
|
+
border: 1Px none;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
font-size: 14Px;
|
|
40
|
+
z-index: 2;
|
|
41
|
+
margin-top: 0;
|
|
42
|
+
|
|
43
|
+
&:active {
|
|
44
|
+
filter: brightness(92%);
|
|
45
|
+
}
|
|
46
|
+
&::after{
|
|
47
|
+
content: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&[disabled] {
|
|
51
|
+
opacity: 0.4;
|
|
52
|
+
|
|
53
|
+
&:active {
|
|
54
|
+
filter: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&-color {
|
|
59
|
+
&-default {
|
|
60
|
+
background-color: $buttonBackgroundColor;
|
|
61
|
+
|
|
62
|
+
&.#{$buttonCls} {
|
|
63
|
+
&-variant {
|
|
64
|
+
&-solid {
|
|
65
|
+
color: $buttonBackgroundColor;
|
|
66
|
+
background-color: $buttonDarkColor;
|
|
67
|
+
box-shadow: inset 0 0 0 1px $buttonDarkColor;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-outlined {
|
|
71
|
+
color: $buttonDarkColor;
|
|
72
|
+
border: 1px solid $buttonDarkColor;
|
|
73
|
+
background-color: $buttonBackgroundColor;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-dashed {
|
|
77
|
+
color: $buttonDarkColor;
|
|
78
|
+
border: 1px dashed $buttonDarkColor;
|
|
79
|
+
background-color: $buttonBackgroundColor;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-filled {
|
|
83
|
+
color: $buttonDarkColor;
|
|
84
|
+
background-color: $buttonLightColor;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-text {
|
|
88
|
+
color: $buttonDarkColor;
|
|
89
|
+
background-color: $buttonBackgroundColor;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-link {
|
|
93
|
+
color: $buttonDarkColor;
|
|
94
|
+
background-color: $buttonBackgroundColor;
|
|
95
|
+
|
|
96
|
+
&:active {
|
|
97
|
+
filter: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-primary {
|
|
105
|
+
&.#{$buttonCls} {
|
|
106
|
+
&-variant {
|
|
107
|
+
&-solid {
|
|
108
|
+
color: $buttonBackgroundColor;
|
|
109
|
+
background-color: $buttonColorPrimary;
|
|
110
|
+
box-shadow: inset 0 0 0 1px $buttonColorPrimary;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&-outlined {
|
|
114
|
+
color: $buttonColorPrimary;
|
|
115
|
+
background-color: $buttonBackgroundColor;
|
|
116
|
+
border: 1px solid $buttonColorPrimary;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&-dashed {
|
|
120
|
+
color: $buttonColorPrimary;
|
|
121
|
+
border: 1px dashed $buttonColorPrimary;
|
|
122
|
+
background-color: $buttonBackgroundColor;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&-filled {
|
|
126
|
+
color: $buttonColorPrimary;
|
|
127
|
+
background-color: variable.$trionesColorPrimaryBg;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&-text {
|
|
131
|
+
color: $buttonColorPrimary;
|
|
132
|
+
background-color: $buttonBackgroundColor;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&-link {
|
|
136
|
+
color: $buttonColorPrimary;
|
|
137
|
+
background-color: $buttonBackgroundColor;
|
|
138
|
+
|
|
139
|
+
&:active {
|
|
140
|
+
filter: none;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&-danger {
|
|
148
|
+
&.#{$buttonCls} {
|
|
149
|
+
&-variant {
|
|
150
|
+
&-solid {
|
|
151
|
+
color: $buttonBackgroundColor;
|
|
152
|
+
background-color: $buttonColorError;
|
|
153
|
+
box-shadow: inset 0 0 0 1px $buttonColorError;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&-outlined {
|
|
157
|
+
color: $buttonColorError;
|
|
158
|
+
background-color: $buttonBackgroundColor;
|
|
159
|
+
border: 1px solid $buttonColorError;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&-dashed {
|
|
163
|
+
color: $buttonColorError;
|
|
164
|
+
border: 1px dashed $buttonColorError;
|
|
165
|
+
background-color: $buttonBackgroundColor;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&-filled {
|
|
169
|
+
color: $buttonColorError;
|
|
170
|
+
background-color: #ffdfdc;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&-text {
|
|
174
|
+
color: $buttonColorError;
|
|
175
|
+
background-color: $buttonBackgroundColor;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&-link {
|
|
179
|
+
color: $buttonColorError;
|
|
180
|
+
background-color: $buttonBackgroundColor;
|
|
181
|
+
|
|
182
|
+
&:active {
|
|
183
|
+
filter: none;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&-variant {
|
|
192
|
+
&-outlined {
|
|
193
|
+
background-color: $buttonBackgroundColor;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&-dashed {
|
|
197
|
+
border: 1px dashed #d9d9d9;
|
|
198
|
+
background-color: $buttonBackgroundColor;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&-text {
|
|
202
|
+
background-color: $buttonBackgroundColor;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&-link {
|
|
206
|
+
background-color: $buttonBackgroundColor;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&-block {
|
|
211
|
+
display: flex;
|
|
212
|
+
width: 100%;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&-small {
|
|
216
|
+
font-size: variable.$trionesFontSizeSm;
|
|
217
|
+
padding-inline: $trionesButtonPendingInlineSm;
|
|
218
|
+
height: $trionesButtonHeightSm;
|
|
219
|
+
border-radius: variable.$trionesBorderRadiusSm;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&-medium {
|
|
223
|
+
padding-inline: $trionesButtonPendingInline;
|
|
224
|
+
height: $trionesButtonHeight;
|
|
225
|
+
border-radius: variable.$trionesBorderRadius;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&-large {
|
|
229
|
+
font-size: $trionesButtonContentFontSizeLg;
|
|
230
|
+
padding-inline: $trionesButtonPendingInlineLg;
|
|
231
|
+
height: $trionesButtonHeightLg;
|
|
232
|
+
border-radius: variable.$trionesBorderRadiusLg;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import './style.scss';
|
|
3
|
+
import dayjs from "dayjs";
|
|
3
4
|
export type CalendarGridProps = {
|
|
4
|
-
|
|
5
|
+
month?: dayjs.Dayjs;
|
|
5
6
|
/**
|
|
6
7
|
* @description 值,如果是区间模式,则 0,1 索引的值有效,0是开始时间,1是结束时间
|
|
7
8
|
*/
|
|
8
|
-
value?: Date[];
|
|
9
|
+
value?: (dayjs.Dayjs | Date)[];
|
|
9
10
|
/**
|
|
10
11
|
* @description 默认值,如果是区间模式,则 0,1 索引的值有效,0是开始时间,1是结束时间
|
|
11
12
|
*/
|
|
12
|
-
defaultValue?: Date[];
|
|
13
|
-
onChange?: (value:
|
|
13
|
+
defaultValue?: (dayjs.Dayjs | Date)[];
|
|
14
|
+
onChange?: (value: dayjs.Dayjs[]) => void;
|
|
14
15
|
/**
|
|
15
16
|
* @description 是否为范围选择
|
|
16
17
|
*/
|
|
17
18
|
range?: boolean;
|
|
18
|
-
onSelect?: (date:
|
|
19
|
+
onSelect?: (date: dayjs.Dayjs) => void;
|
|
19
20
|
};
|
|
20
21
|
export type CalendarCellProps = {
|
|
21
|
-
|
|
22
|
-
date?:
|
|
23
|
-
value?:
|
|
22
|
+
month?: dayjs.Dayjs;
|
|
23
|
+
date?: dayjs.Dayjs;
|
|
24
|
+
value?: dayjs.Dayjs[];
|
|
24
25
|
range?: boolean;
|
|
25
|
-
onSelect?: (date:
|
|
26
|
+
onSelect?: (date: dayjs.Dayjs) => void;
|
|
26
27
|
};
|
|
27
28
|
export declare const CalendarGrid: FC<CalendarGridProps>;
|