@trionesdev/antd-mobile-react 0.0.2-beta.16 → 0.0.2-beta.17

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.
Files changed (118) hide show
  1. package/LICENSE +21 -21
  2. package/dist/ActionSheet/style.scss +52 -52
  3. package/dist/Avatar/demo/base.js +2 -2
  4. package/dist/Avatar/demo/style.scss +6 -6
  5. package/dist/Badge/demo/base.js +2 -2
  6. package/dist/Badge/demo/base.scss +6 -6
  7. package/dist/Button/button.d.ts +2 -1
  8. package/dist/Button/button.js +1 -1
  9. package/dist/Button/demo/base.js +2 -2
  10. package/dist/Button/style.scss +234 -234
  11. package/dist/Calendar/style.scss +85 -85
  12. package/dist/Calendar/touchable-calendar-grid.js +9 -9
  13. package/dist/CalendarDatetimePicker/style.scss +54 -54
  14. package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.d.ts +5 -4
  15. package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.js +7 -6
  16. package/dist/CalendarDatetimePickerCell/demo/base.js +2 -3
  17. package/dist/CalendarDatetimePickerCell/index.d.ts +1 -1
  18. package/dist/CalendarDatetimePickerCell/index.js +1 -1
  19. package/dist/CalendarDatetimePickerCell/style.scss +10 -10
  20. package/dist/CalendarPicker/style.scss +31 -31
  21. package/dist/CalendarPickerCell/CalendarPickerCell.d.ts +2 -2
  22. package/dist/CalendarPickerCell/CalendarPickerCell.js +3 -3
  23. package/dist/CalendarPickerCell/CalendarRangePickerCell.d.ts +2 -2
  24. package/dist/CalendarPickerCell/CalendarRangePickerCell.js +3 -3
  25. package/dist/CalendarPickerCell/demo/base.js +2 -4
  26. package/dist/Card/demo/base.js +2 -2
  27. package/dist/Card/demo/base.scss +18 -18
  28. package/dist/CascaderPicker/style.scss +45 -45
  29. package/dist/CascaderPickerCell/CascaderPickerCell.d.ts +2 -2
  30. package/dist/CascaderPickerCell/CascaderPickerCell.js +3 -3
  31. package/dist/CascaderPickerCell/demo/base.js +1 -2
  32. package/dist/CascaderPickerCell/style.scss +24 -24
  33. package/dist/Cell/demo/base.js +1 -1
  34. package/dist/Checkbox/demo/base.js +2 -2
  35. package/dist/ConfigProvider/demo/base.js +2 -2
  36. package/dist/DemoBlock/index.scss +20 -20
  37. package/dist/DemoDescription/index.scss +3 -3
  38. package/dist/Divider/demo/base.js +2 -2
  39. package/dist/Ellipsis/demo/base.js +2 -2
  40. package/dist/Empty/demo/base.js +2 -2
  41. package/dist/ErrorBlock/demo/base.js +2 -2
  42. package/dist/FloatButton/style.scss +123 -123
  43. package/dist/Footer/demo/base.js +2 -2
  44. package/dist/Form/FormItem/{form-item-input.d.ts → form-item-content.d.ts} +3 -1
  45. package/dist/Form/FormItem/{form-item-input.js → form-item-content.js} +1 -1
  46. package/dist/Form/FormItem/form-item-label.d.ts +3 -3
  47. package/dist/Form/FormItem/form-item-label.js +10 -8
  48. package/dist/Form/FormItem/form-item.d.ts +33 -4
  49. package/dist/Form/FormItem/form-item.js +22 -21
  50. package/dist/Form/demo/input.js +6 -2
  51. package/dist/Form/demo/vertical.js +45 -0
  52. package/dist/Form/index.d.ts +2 -2
  53. package/dist/Form/style.scss +106 -67
  54. package/dist/FormCell/index.d.ts +3 -0
  55. package/dist/FormCell/index.js +2 -0
  56. package/dist/Grid/demo/base.js +2 -2
  57. package/dist/Grid/demo/base.scss +7 -7
  58. package/dist/Icon/demo/base.js +2 -2
  59. package/dist/Image/demo/base.js +2 -2
  60. package/dist/Image/demo/base.scss +4 -4
  61. package/dist/Image/style.scss +30 -30
  62. package/dist/ImagesPreview/style.scss +34 -34
  63. package/dist/ImagesWall/style.scss +70 -70
  64. package/dist/Input/demo/base.js +28 -2
  65. package/dist/Input/index.scss +240 -223
  66. package/dist/Input/input-affix-wrapper.d.ts +3 -1
  67. package/dist/Input/input-affix-wrapper.js +4 -4
  68. package/dist/Input/input.d.ts +3 -1
  69. package/dist/Input/input.js +5 -2
  70. package/dist/Loading/DotLoading.d.ts +1 -0
  71. package/dist/Loading/DotLoading.js +1 -0
  72. package/dist/Loading/SpinLoading.d.ts +1 -0
  73. package/dist/Loading/SpinLoading.js +1 -0
  74. package/dist/Loading/demo/base.d.ts +3 -0
  75. package/dist/{SpinLoading → Loading}/demo/base.js +8 -2
  76. package/dist/Loading/demo/dot-loading.d.ts +3 -0
  77. package/dist/Loading/demo/dot-loading.js +25 -0
  78. package/dist/Loading/index.d.ts +5 -0
  79. package/dist/Loading/index.js +3 -0
  80. package/dist/NavBar/demo/base.scss +5 -5
  81. package/dist/NoticeBar/demo/base.js +2 -2
  82. package/dist/Overlay/style.scss +20 -20
  83. package/dist/PageIndicator/demo/base.js +2 -2
  84. package/dist/Picker/style.scss +44 -44
  85. package/dist/PickerView/style.scss +72 -72
  86. package/dist/Popup/demo/base.js +2 -2
  87. package/dist/Popup/style.scss +129 -129
  88. package/dist/Radio/demo/base.scss +4 -4
  89. package/dist/Result/demo/base.js +2 -2
  90. package/dist/SafeArea/demo/base.scss +18 -18
  91. package/dist/ScrollView/style.scss +19 -19
  92. package/dist/SideBar/side-bar.js +6 -6
  93. package/dist/SideBar/style.scss +85 -85
  94. package/dist/Skeleton/demo/base.d.ts +3 -0
  95. package/dist/Skeleton/demo/base.js +8 -0
  96. package/dist/Skeleton/index.d.ts +3 -0
  97. package/dist/Skeleton/index.js +2 -0
  98. package/dist/Space/demo/base.js +2 -2
  99. package/dist/Swiper/style.scss +54 -54
  100. package/dist/Switch/demo/base.js +2 -2
  101. package/dist/TabBar/demo/base.js +2 -2
  102. package/dist/Tag/demo/base.js +2 -2
  103. package/dist/Tag/demo/style.scss +8 -8
  104. package/dist/Toast/style.scss +63 -63
  105. package/dist/VerificationCodeInput/style.scss +20 -20
  106. package/dist/WaterMark/demo/demo1.js +2 -2
  107. package/dist/WaterMark/demo/demo1.scss +6 -6
  108. package/dist/WaterMark/demo/demo2.js +2 -2
  109. package/dist/index.d.ts +20 -18
  110. package/dist/index.js +2 -1
  111. package/dist/style/variable.scss +1 -1
  112. package/dist/utils/type.js +36 -36
  113. package/dist/utils/with-default-props.js +4 -4
  114. package/package.json +9 -13
  115. package/readme.md +43 -43
  116. package/dist/SpinLoading/index.d.ts +0 -3
  117. package/dist/SpinLoading/index.js +0 -2
  118. /package/dist/{SpinLoading/demo/base.d.ts → Form/demo/vertical.d.ts} +0 -0
@@ -1,234 +1,234 @@
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
- &-middle {
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
+ @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,85 +1,85 @@
1
- @use "../style/variable" as variable;
2
-
3
- $calendarCls: 'triones-antm-calendar';
4
-
5
- .#{$calendarCls}-grid {
6
- //display: flex;
7
- //flex-wrap: wrap;
8
- display: grid;
9
- grid-template-columns: repeat(7, 1fr);
10
- }
11
-
12
- .#{$calendarCls}-cell {
13
- aspect-ratio: 1;
14
- display: flex;
15
- justify-content: center;
16
- align-items: center;
17
- border-radius: variable.$trionesBorderRadius;
18
- cursor: default;
19
- flex-direction: column;
20
-
21
- &-date {
22
- display: flex;
23
- width: 100%;
24
- justify-content: center;
25
- align-items: center;
26
- }
27
-
28
- &-mouth {
29
- display: flex;
30
- width: 100%;
31
- justify-content: center;
32
- align-items: center;
33
- font-size: 8Px;
34
- }
35
-
36
- &.#{$calendarCls}-cell {
37
- &-disabled {
38
- color: #999999;
39
- }
40
-
41
- &-selected {
42
- background-color: variable.$trionesColorPrimary;
43
- color: white;
44
- }
45
-
46
- &-selected-range {
47
- border-radius: 0;
48
- background-color: variable.$trionesColorPrimaryBg;
49
- color: black;
50
- }
51
- }
52
- }
53
-
54
- .#{$calendarCls} {
55
- &-header {
56
- display: flex;
57
- justify-content: space-between;
58
- align-items: center;
59
-
60
- &-title {
61
- font-size: 16Px;
62
- padding: 8Px;
63
- text-align: center;
64
- }
65
-
66
- &-button {
67
- padding-left: 12Px;
68
- padding-right: 12Px;
69
- cursor: pointer;
70
- }
71
- }
72
-
73
- &-week {
74
- display: grid;
75
- grid-template-columns: repeat(7, 1fr);
76
-
77
- &-cell {
78
- display: flex;
79
- justify-content: center;
80
- align-items: center;
81
- padding-top: 8Px;
82
- padding-bottom: 8Px;
83
- }
84
- }
85
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $calendarCls: 'triones-antm-calendar';
4
+
5
+ .#{$calendarCls}-grid {
6
+ //display: flex;
7
+ //flex-wrap: wrap;
8
+ display: grid;
9
+ grid-template-columns: repeat(7, 1fr);
10
+ }
11
+
12
+ .#{$calendarCls}-cell {
13
+ aspect-ratio: 1;
14
+ display: flex;
15
+ justify-content: center;
16
+ align-items: center;
17
+ border-radius: variable.$trionesBorderRadius;
18
+ cursor: default;
19
+ flex-direction: column;
20
+
21
+ &-date {
22
+ display: flex;
23
+ width: 100%;
24
+ justify-content: center;
25
+ align-items: center;
26
+ }
27
+
28
+ &-mouth {
29
+ display: flex;
30
+ width: 100%;
31
+ justify-content: center;
32
+ align-items: center;
33
+ font-size: 8Px;
34
+ }
35
+
36
+ &.#{$calendarCls}-cell {
37
+ &-disabled {
38
+ color: #999999;
39
+ }
40
+
41
+ &-selected {
42
+ background-color: variable.$trionesColorPrimary;
43
+ color: white;
44
+ }
45
+
46
+ &-selected-range {
47
+ border-radius: 0;
48
+ background-color: variable.$trionesColorPrimaryBg;
49
+ color: black;
50
+ }
51
+ }
52
+ }
53
+
54
+ .#{$calendarCls} {
55
+ &-header {
56
+ display: flex;
57
+ justify-content: space-between;
58
+ align-items: center;
59
+
60
+ &-title {
61
+ font-size: 16Px;
62
+ padding: 8Px;
63
+ text-align: center;
64
+ }
65
+
66
+ &-button {
67
+ padding-left: 12Px;
68
+ padding-right: 12Px;
69
+ cursor: pointer;
70
+ }
71
+ }
72
+
73
+ &-week {
74
+ display: grid;
75
+ grid-template-columns: repeat(7, 1fr);
76
+
77
+ &-cell {
78
+ display: flex;
79
+ justify-content: center;
80
+ align-items: center;
81
+ padding-top: 8Px;
82
+ padding-bottom: 8Px;
83
+ }
84
+ }
85
+ }
@@ -18,8 +18,8 @@ import { RandomUtils } from "../utils/random-utils";
18
18
  import classNames from "classnames";
19
19
  import dayjs from "dayjs";
20
20
  var monthLines = 6;
21
- /**
22
- * 可以手势滑动的日历组件
21
+ /**
22
+ * 可以手势滑动的日历组件
23
23
  */
24
24
  export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
25
25
  var _wrapperRef$current3;
@@ -62,8 +62,8 @@ export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
62
62
  months = _useState10[0],
63
63
  setMonths = _useState10[1];
64
64
 
65
- /**
66
- * 计算出每个格子的大小
65
+ /**
66
+ * 计算出每个格子的大小
67
67
  */
68
68
  var cellSize = /*#__PURE__*/function () {
69
69
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
@@ -82,8 +82,8 @@ export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
82
82
  return _ref2.apply(this, arguments);
83
83
  };
84
84
  }();
85
- /**
86
- * 计算出最大的translateY,默认为wrapperRef.current?.clientHeight
85
+ /**
86
+ * 计算出最大的translateY,默认为wrapperRef.current?.clientHeight
87
87
  */
88
88
  var minTranslateY = /*#__PURE__*/function () {
89
89
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
@@ -103,9 +103,9 @@ export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
103
103
  };
104
104
  }();
105
105
 
106
- /**
107
- * 计算出该月的行数
108
- * @param mouth
106
+ /**
107
+ * 计算出该月的行数
108
+ * @param mouth
109
109
  */
110
110
  // const mouthLines = (mouth: Date) => {
111
111
  // const firstDate = new Date(mouth.getFullYear(), mouth.getMonth(), 1);