@nutui/nutui-react 3.0.11 → 3.0.13-beta.0
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/CHANGELOG.md +19 -7
- package/dist/cjs/packages/address/style/address.scss +114 -0
- package/dist/cjs/packages/address/style/style.css +103 -0
- package/dist/cjs/packages/address/style-jmapp/address.scss +114 -0
- package/dist/cjs/packages/address/style-jmapp/style.css +103 -0
- package/dist/cjs/packages/address/style-jrkf/address.scss +114 -0
- package/dist/cjs/packages/address/style-jrkf/style.css +103 -0
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/elevator/style/css.js +0 -2
- package/dist/cjs/packages/elevator/style/elevator.scss +116 -95
- package/dist/cjs/packages/elevator/style/index.js +0 -2
- package/dist/cjs/packages/elevator/style/style.css +98 -83
- package/dist/cjs/packages/elevator/style-jmapp/css.js +0 -2
- package/dist/cjs/packages/elevator/style-jmapp/elevator.scss +116 -95
- package/dist/cjs/packages/elevator/style-jmapp/index.js +0 -2
- package/dist/cjs/packages/elevator/style-jmapp/style.css +98 -83
- package/dist/cjs/packages/elevator/style-jrkf/css.js +0 -2
- package/dist/cjs/packages/elevator/style-jrkf/elevator.scss +116 -95
- package/dist/cjs/packages/elevator/style-jrkf/index.js +0 -2
- package/dist/cjs/packages/elevator/style-jrkf/style.css +98 -83
- package/dist/cjs/packages/input/input.js +3 -0
- package/dist/cjs/packages/progress/progress.js +38 -17
- package/dist/cjs/packages/progress/style/progress.scss +5 -21
- package/dist/cjs/packages/progress/style/style.css +5 -19
- package/dist/cjs/packages/progress/style-jmapp/progress.scss +5 -21
- package/dist/cjs/packages/progress/style-jmapp/style.css +4 -18
- package/dist/cjs/packages/progress/style-jrkf/progress.scss +5 -21
- package/dist/cjs/packages/progress/style-jrkf/style.css +4 -18
- package/dist/cjs/packages/range/range.js +5 -11
- package/dist/cjs/packages/range/style/range.scss +6 -2
- package/dist/cjs/packages/range/style/style.css +3 -1
- package/dist/cjs/packages/range/style-jmapp/range.scss +6 -2
- package/dist/cjs/packages/range/style-jmapp/style.css +3 -1
- package/dist/cjs/packages/range/style-jrkf/range.scss +6 -2
- package/dist/cjs/packages/range/style-jrkf/style.css +3 -1
- package/dist/cjs/packages/range/utils.d.ts +3 -0
- package/dist/cjs/packages/range/utils.js +24 -0
- package/dist/cjs/packages/searchbar/searchbar.js +162 -87
- package/dist/cjs/packages/searchbar/style/searchbar.scss +99 -25
- package/dist/cjs/packages/searchbar/style/style.css +102 -38
- package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +99 -25
- package/dist/cjs/packages/searchbar/style-jmapp/style.css +85 -21
- package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +99 -25
- package/dist/cjs/packages/searchbar/style-jrkf/style.css +85 -21
- package/dist/cjs/packages/step/step.js +74 -33
- package/dist/cjs/packages/step/style/step.scss +104 -195
- package/dist/cjs/packages/step/style/style.css +85 -159
- package/dist/cjs/packages/step/style-jmapp/step.scss +104 -195
- package/dist/cjs/packages/step/style-jmapp/style.css +88 -162
- package/dist/cjs/packages/step/style-jrkf/step.scss +104 -195
- package/dist/cjs/packages/step/style-jrkf/style.css +88 -162
- package/dist/cjs/packages/steps/steps.js +23 -8
- package/dist/cjs/packages/steps/style/steps.scss +328 -4
- package/dist/cjs/packages/steps/style/style.css +219 -2
- package/dist/cjs/packages/steps/style-jmapp/steps.scss +328 -4
- package/dist/cjs/packages/steps/style-jmapp/style.css +219 -2
- package/dist/cjs/packages/steps/style-jrkf/steps.scss +328 -4
- package/dist/cjs/packages/steps/style-jrkf/style.css +219 -2
- package/dist/cjs/packages/swiper/swiper.js +52 -43
- package/dist/cjs/packages/textarea/textarea.d.ts +2 -2
- package/dist/cjs/packages/textarea/textarea.js +25 -8
- package/dist/cjs/packages/uploader/uploader.js +20 -9
- package/dist/cjs/types/spec/lottie/taro.d.ts +1 -0
- package/dist/cjs/types/spec/progress/base.d.ts +6 -0
- package/dist/cjs/types/spec/progress/taro.d.ts +4 -0
- package/dist/cjs/types/spec/searchbar/base.d.ts +3 -0
- package/dist/cjs/types/spec/steps/base.d.ts +11 -2
- package/dist/cjs/types/spec/swiper/base.d.ts +4 -0
- package/dist/cjs/types/spec/swiper/taro.d.ts +4 -0
- package/dist/es/packages/address/style/address.scss +114 -0
- package/dist/es/packages/address/style/style.css +103 -0
- package/dist/es/packages/address/style-jmapp/address.scss +114 -0
- package/dist/es/packages/address/style-jmapp/style.css +103 -0
- package/dist/es/packages/address/style-jrkf/address.scss +114 -0
- package/dist/es/packages/address/style-jrkf/style.css +103 -0
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/elevator/style/css.js +0 -2
- package/dist/es/packages/elevator/style/elevator.scss +116 -95
- package/dist/es/packages/elevator/style/index.js +0 -2
- package/dist/es/packages/elevator/style/style.css +98 -83
- package/dist/es/packages/elevator/style-jmapp/css.js +0 -2
- package/dist/es/packages/elevator/style-jmapp/elevator.scss +116 -95
- package/dist/es/packages/elevator/style-jmapp/index.js +0 -2
- package/dist/es/packages/elevator/style-jmapp/style.css +98 -83
- package/dist/es/packages/elevator/style-jrkf/css.js +0 -2
- package/dist/es/packages/elevator/style-jrkf/elevator.scss +116 -95
- package/dist/es/packages/elevator/style-jrkf/index.js +0 -2
- package/dist/es/packages/elevator/style-jrkf/style.css +98 -83
- package/dist/es/packages/input/input.js +3 -0
- package/dist/es/packages/progress/progress.js +38 -17
- package/dist/es/packages/progress/style/progress.scss +5 -21
- package/dist/es/packages/progress/style/style.css +5 -19
- package/dist/es/packages/progress/style-jmapp/progress.scss +5 -21
- package/dist/es/packages/progress/style-jmapp/style.css +4 -18
- package/dist/es/packages/progress/style-jrkf/progress.scss +5 -21
- package/dist/es/packages/progress/style-jrkf/style.css +4 -18
- package/dist/es/packages/range/range.js +5 -11
- package/dist/es/packages/range/style/range.scss +6 -2
- package/dist/es/packages/range/style/style.css +3 -1
- package/dist/es/packages/range/style-jmapp/range.scss +6 -2
- package/dist/es/packages/range/style-jmapp/style.css +3 -1
- package/dist/es/packages/range/style-jrkf/range.scss +6 -2
- package/dist/es/packages/range/style-jrkf/style.css +3 -1
- package/dist/es/packages/range/utils.d.ts +3 -0
- package/dist/es/packages/range/utils.js +6 -0
- package/dist/es/packages/searchbar/searchbar.js +163 -89
- package/dist/es/packages/searchbar/style/searchbar.scss +99 -25
- package/dist/es/packages/searchbar/style/style.css +102 -38
- package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +99 -25
- package/dist/es/packages/searchbar/style-jmapp/style.css +85 -21
- package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +99 -25
- package/dist/es/packages/searchbar/style-jrkf/style.css +85 -21
- package/dist/es/packages/step/step.js +75 -34
- package/dist/es/packages/step/style/step.scss +104 -195
- package/dist/es/packages/step/style/style.css +85 -159
- package/dist/es/packages/step/style-jmapp/step.scss +104 -195
- package/dist/es/packages/step/style-jmapp/style.css +88 -162
- package/dist/es/packages/step/style-jrkf/step.scss +104 -195
- package/dist/es/packages/step/style-jrkf/style.css +88 -162
- package/dist/es/packages/steps/steps.js +23 -8
- package/dist/es/packages/steps/style/steps.scss +328 -4
- package/dist/es/packages/steps/style/style.css +219 -2
- package/dist/es/packages/steps/style-jmapp/steps.scss +328 -4
- package/dist/es/packages/steps/style-jmapp/style.css +219 -2
- package/dist/es/packages/steps/style-jrkf/steps.scss +328 -4
- package/dist/es/packages/steps/style-jrkf/style.css +219 -2
- package/dist/es/packages/swiper/swiper.js +53 -44
- package/dist/es/packages/textarea/textarea.d.ts +2 -2
- package/dist/es/packages/textarea/textarea.js +26 -9
- package/dist/es/packages/uploader/uploader.js +20 -9
- package/dist/es/types/spec/lottie/taro.d.ts +1 -0
- package/dist/es/types/spec/progress/base.d.ts +24 -0
- package/dist/es/types/spec/progress/taro.d.ts +4 -0
- package/dist/es/types/spec/searchbar/base.d.ts +10 -1
- package/dist/es/types/spec/steps/base.d.ts +26 -5
- package/dist/es/types/spec/swiper/base.d.ts +5 -1
- package/dist/es/types/spec/swiper/taro.d.ts +4 -0
- package/dist/nutui.react.umd.js +399 -223
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +44 -44
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +37 -37
- package/dist/style.css +1 -1
- package/dist/style.scss +37 -37
- package/dist/styles/variables-jmapp.scss +133 -79
- package/dist/styles/variables-jrkf.scss +134 -80
- package/dist/styles/variables.scss +148 -89
- package/package.json +1 -1
|
@@ -5,8 +5,225 @@
|
|
|
5
5
|
.nut-steps {
|
|
6
6
|
display: flex;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
.nut-steps-horizontal {
|
|
9
|
+
flex-flow: row;
|
|
10
|
+
}
|
|
11
|
+
.nut-steps-horizontal .nut-step-head {
|
|
12
|
+
background-color: var(--nutui-steps-background-color, #ffffff);
|
|
13
|
+
}
|
|
14
|
+
.nut-steps-horizontal .nut-step-head-icon .nut-icon {
|
|
15
|
+
height: 10px;
|
|
16
|
+
width: 10px;
|
|
17
|
+
}
|
|
18
|
+
.nut-steps-horizontal .nut-step-head-icon .nut-image {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
background-color: var(--nutui-steps-background-color, #ffffff);
|
|
22
|
+
}
|
|
23
|
+
.nut-steps-horizontal .nut-step-head-icon .nut-image img {
|
|
24
|
+
vertical-align: top;
|
|
25
|
+
}
|
|
26
|
+
.nut-steps-horizontal .nut-step.nut-step-process .nut-step-title {
|
|
27
|
+
color: var(--nutui-steps-process-title-color, var(--nutui-color-primary, #ff6666));
|
|
28
|
+
}
|
|
29
|
+
.nut-steps-horizontal .nut-step.nut-step-process .nut-step-description {
|
|
30
|
+
color: var(--nutui-steps-process-description-color, var(--nutui-color-primary, #ff6666));
|
|
31
|
+
}
|
|
32
|
+
.nut-steps-horizontal .nut-step.nut-step-wait .nut-step-title {
|
|
33
|
+
color: var(--nutui-steps-wait-title-color, var(--nutui-color-title));
|
|
34
|
+
}
|
|
35
|
+
.nut-steps-horizontal .nut-step.nut-step-wait .nut-step-description {
|
|
36
|
+
color: var(--nutui-steps-wait-description-color, var(--nutui-color-text));
|
|
37
|
+
}
|
|
38
|
+
.nut-steps-horizontal-single .nut-step {
|
|
39
|
+
padding-right: var(--nutui-steps-horizontal-item-padding-right, 28px);
|
|
40
|
+
}
|
|
41
|
+
.nut-steps-horizontal-single .nut-step-last {
|
|
42
|
+
padding-right: 0 !important;
|
|
43
|
+
}
|
|
44
|
+
.nut-steps-horizontal-single .nut-step-line {
|
|
45
|
+
top: 0;
|
|
46
|
+
right: 0;
|
|
47
|
+
height: var(--nutui-steps-base-head-height, 14px);
|
|
48
|
+
width: var(--nutui-steps-horizontal-item-padding-right, 28px);
|
|
49
|
+
padding: var(--nutui-steps-horizontal-item-line-padding, 0 8px);
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
}
|
|
52
|
+
.nut-steps-horizontal-single .nut-step-title, .nut-steps-horizontal-single .nut-step-description {
|
|
53
|
+
padding-left: 4px;
|
|
54
|
+
}
|
|
55
|
+
.nut-steps-horizontal-single .nut-step-special {
|
|
56
|
+
padding-right: var(--nutui-steps-horizontal-item-special-padding-right, 22px);
|
|
57
|
+
}
|
|
58
|
+
.nut-steps-horizontal-single .nut-step-special .nut-step-line {
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
.nut-steps-horizontal-single .nut-step-special .nut-step-title {
|
|
62
|
+
padding-right: 8px;
|
|
63
|
+
width: fit-content;
|
|
64
|
+
}
|
|
65
|
+
.nut-steps-horizontal-single.nut-steps-horizontal-count-3 .nut-step-special {
|
|
66
|
+
padding-right: var(--nutui-steps-horizontal-item-special-3-padding-right, 9px);
|
|
67
|
+
}
|
|
68
|
+
.nut-steps-horizontal-double {
|
|
69
|
+
width: 100%;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
}
|
|
72
|
+
.nut-steps-horizontal-double .nut-step {
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
align-items: center;
|
|
75
|
+
flex: 1;
|
|
76
|
+
}
|
|
77
|
+
.nut-steps-horizontal-double .nut-step-line {
|
|
78
|
+
top: 0;
|
|
79
|
+
right: -50%;
|
|
80
|
+
height: var(--nutui-steps-base-head-height, 14px);
|
|
81
|
+
width: 100%;
|
|
82
|
+
}
|
|
83
|
+
.nut-steps-horizontal-double .nut-step-line-inner {
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
height: var(--nutui-steps-base-line-height, 1px);
|
|
86
|
+
width: 100%;
|
|
87
|
+
background: var(--nutui-steps-base-line-background, var(--nutui-color-border));
|
|
88
|
+
}
|
|
89
|
+
.nut-steps-horizontal-double .nut-step-head {
|
|
90
|
+
justify-content: center;
|
|
91
|
+
margin-bottom: 6px;
|
|
92
|
+
}
|
|
93
|
+
.nut-steps-horizontal-double .nut-step-head-dot-wrap, .nut-steps-horizontal-double .nut-step-head-icon-wrap, .nut-steps-horizontal-double .nut-step-head-text-wrap {
|
|
94
|
+
background-color: var(--nutui-steps-background-color, #ffffff);
|
|
95
|
+
padding: var(--nutui-steps-horizontal-item-line-padding, 0 8px);
|
|
96
|
+
}
|
|
97
|
+
.nut-steps-horizontal-double .nut-step-head-icon {
|
|
98
|
+
height: var(--nutui-steps-base-head-icon-size-right, 20px);
|
|
99
|
+
width: var(--nutui-steps-base-head-icon-size-right, 20px);
|
|
100
|
+
}
|
|
101
|
+
.nut-steps-horizontal-double .nut-step-head-icon .nut-icon {
|
|
102
|
+
height: 12px;
|
|
103
|
+
width: 12px;
|
|
104
|
+
}
|
|
105
|
+
.nut-steps-horizontal-double .nut-step-main {
|
|
106
|
+
align-items: center;
|
|
107
|
+
margin-left: 0;
|
|
108
|
+
margin-top: 2px;
|
|
109
|
+
}
|
|
110
|
+
.nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-line {
|
|
111
|
+
height: var(--nutui-steps-base-head-icon-size-right, 20px);
|
|
112
|
+
}
|
|
113
|
+
.nut-steps-horizontal-double.nut-steps-horizontal-dot .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-dot .nut-step-line {
|
|
114
|
+
height: var(--nutui-steps-base-head-dot-size, 6px);
|
|
115
|
+
}
|
|
116
|
+
.nut-steps-horizontal-double.nut-steps-horizontal-text .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-text .nut-step-line {
|
|
117
|
+
height: var(--nutui-steps-base-head-text-size, 12px);
|
|
118
|
+
}
|
|
9
119
|
.nut-steps-vertical {
|
|
120
|
+
/* #ifdef harmony*/
|
|
121
|
+
flex: 1;
|
|
122
|
+
min-width: 0;
|
|
123
|
+
/* #endif */
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
}
|
|
126
|
+
.nut-steps-vertical .nut-step {
|
|
127
|
+
padding-bottom: var(--nutui-steps-vertical-item-padding-bottom, 13px);
|
|
128
|
+
}
|
|
129
|
+
.nut-steps-vertical .nut-step-last {
|
|
130
|
+
padding-bottom: 0 !important;
|
|
131
|
+
}
|
|
132
|
+
.nut-steps-vertical .nut-step-line {
|
|
133
|
+
height: calc(100% - 4px);
|
|
134
|
+
width: 1px;
|
|
135
|
+
bottom: 0;
|
|
136
|
+
}
|
|
137
|
+
.nut-steps-vertical .nut-step-line-inner {
|
|
10
138
|
height: 100%;
|
|
11
|
-
|
|
139
|
+
}
|
|
140
|
+
.nut-steps-vertical .nut-step-head {
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
height: 18px;
|
|
144
|
+
}
|
|
145
|
+
.nut-steps-vertical .nut-step-head-icon {
|
|
146
|
+
width: var(--nutui-steps-vertical-item-icon-size, 20px);
|
|
147
|
+
height: var(--nutui-steps-vertical-item-icon-size, 20px);
|
|
148
|
+
}
|
|
149
|
+
.nut-steps-vertical .nut-step-head-icon .nut-icon {
|
|
150
|
+
height: 12px;
|
|
151
|
+
width: 12px;
|
|
152
|
+
}
|
|
153
|
+
.nut-steps-vertical .nut-step-main {
|
|
154
|
+
flex: 1;
|
|
155
|
+
min-width: 0;
|
|
156
|
+
height: auto;
|
|
157
|
+
margin-left: 8px;
|
|
158
|
+
}
|
|
159
|
+
.nut-steps-vertical .nut-step-title {
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
height: var(--nutui-steps-vertical-line-height, 18px);
|
|
163
|
+
font-size: var(--nutui-steps-vertical-title-font-size, var(--nutui-font-text-large));
|
|
164
|
+
overflow: auto;
|
|
165
|
+
font-weight: 500;
|
|
166
|
+
margin-bottom: var(--nutui-steps-vertical-title-margin-bottom, 4px);
|
|
167
|
+
}
|
|
168
|
+
.nut-steps-vertical .nut-step-description {
|
|
169
|
+
margin: var(--nutui-steps-vertical-description-margin, 0 0 1px);
|
|
170
|
+
height: auto;
|
|
171
|
+
line-height: var(--nutui-steps-vertical-line-height, 18px);
|
|
172
|
+
color: var(--nutui-color-title);
|
|
173
|
+
font-size: var(--nutui-steps-vertical-description-font-size, var(--nutui-font-text));
|
|
174
|
+
box-sizing: border-box;
|
|
175
|
+
}
|
|
176
|
+
.nut-steps-vertical .nut-step-head-dot-wrap, .nut-steps-vertical .nut-step-head-icon-wrap, .nut-steps-vertical .nut-step-head-text-wrap {
|
|
177
|
+
display: flex;
|
|
178
|
+
align-items: center;
|
|
179
|
+
justify-content: center;
|
|
180
|
+
width: 100%;
|
|
181
|
+
background-color: white;
|
|
182
|
+
position: relative;
|
|
183
|
+
z-index: 1;
|
|
184
|
+
}
|
|
185
|
+
.nut-steps-vertical .nut-step-head-dot-wrap {
|
|
186
|
+
height: calc(var(--nutui-steps-base-head-dot-size, 6px) + 8px);
|
|
187
|
+
}
|
|
188
|
+
.nut-steps-vertical .nut-step-head-icon-wrap {
|
|
189
|
+
height: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 8px);
|
|
190
|
+
}
|
|
191
|
+
.nut-steps-vertical .nut-step-head-text-wrap {
|
|
192
|
+
height: calc(var(--nutui-steps-base-head-text-size, 12px) + 8px);
|
|
193
|
+
}
|
|
194
|
+
.nut-steps-vertical-icon .nut-step-head {
|
|
195
|
+
width: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 1px);
|
|
196
|
+
min-width: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 1px);
|
|
197
|
+
}
|
|
198
|
+
.nut-steps-vertical-icon .nut-step-line {
|
|
199
|
+
left: calc(var(--nutui-steps-vertical-item-icon-size, 20px) / 2);
|
|
200
|
+
}
|
|
201
|
+
.nut-steps-vertical-dot .nut-step-head {
|
|
202
|
+
width: calc(var(--nutui-steps-base-head-dot-size, 6px) + 1px);
|
|
203
|
+
}
|
|
204
|
+
.nut-steps-vertical-dot .nut-step-line {
|
|
205
|
+
left: calc(var(--nutui-steps-base-head-dot-size, 6px) / 2);
|
|
206
|
+
}
|
|
207
|
+
.nut-steps-vertical-text .nut-step-head {
|
|
208
|
+
width: calc(var(--nutui-steps-base-head-text-size, 12px) + 1px);
|
|
209
|
+
min-width: calc(var(--nutui-steps-base-head-text-size, 12px) + 1px);
|
|
210
|
+
}
|
|
211
|
+
.nut-steps-vertical-text .nut-step-line {
|
|
212
|
+
left: calc(var(--nutui-steps-base-head-text-size, 12px) / 2);
|
|
213
|
+
}
|
|
214
|
+
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon,
|
|
215
|
+
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon,
|
|
216
|
+
.nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text {
|
|
217
|
+
background-color: var(--nutui-steps-enhanced-finish-head-background-color, var(--nutui-color-primary-light-pressed, #ffcccc));
|
|
218
|
+
}
|
|
219
|
+
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon .nut-icon,
|
|
220
|
+
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text .nut-icon, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon .nut-icon,
|
|
221
|
+
.nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text .nut-icon {
|
|
222
|
+
color: var(--nutui-steps-enhanced-finish-head-icon-color, var(--nutui-color-primary-stop-1, #ff9999));
|
|
223
|
+
}
|
|
224
|
+
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text {
|
|
225
|
+
color: var(--nutui-steps-enhanced-finish-head-text-color, var(--nutui-color-primary-stop-1, #ff9999));
|
|
226
|
+
}
|
|
227
|
+
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-dot, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-dot {
|
|
228
|
+
background-color: var(--nutui-steps-enhanced-finish-head-dot-background-color, var(--nutui-color-primary-disabled-special, #ffadbe));
|
|
12
229
|
}
|
|
@@ -26,7 +26,7 @@ var defaultProps = {
|
|
|
26
26
|
indicator: false,
|
|
27
27
|
loop: false,
|
|
28
28
|
duration: 3000,
|
|
29
|
-
|
|
29
|
+
autoplay: false,
|
|
30
30
|
defaultValue: 0,
|
|
31
31
|
touchable: true,
|
|
32
32
|
effect: undefined
|
|
@@ -44,29 +44,44 @@ var Swiper = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
|
44
44
|
return current;
|
|
45
45
|
};
|
|
46
46
|
var classPrefix = 'nut-swiper';
|
|
47
|
-
var _$_object_spread = (0, _object_spread._)({}, defaultProps, props), children = _$_object_spread.children, direction = _$_object_spread.direction, indicator = _$_object_spread.indicator, loop = _$_object_spread.loop, effect = _$_object_spread.effect,
|
|
47
|
+
var _$_object_spread = (0, _object_spread._)({}, defaultProps, props), children = _$_object_spread.children, direction = _$_object_spread.direction, indicator = _$_object_spread.indicator, loop = _$_object_spread.loop, effect = _$_object_spread.effect, autoplay = _$_object_spread.autoplay, touchable = _$_object_spread.touchable, defaultValue = _$_object_spread.defaultValue, duration = _$_object_spread.duration, style = _$_object_spread.style, className = _$_object_spread.className;
|
|
48
48
|
var isVertical = direction === 'vertical';
|
|
49
49
|
var count = (0, _react.useMemo)(function() {
|
|
50
50
|
var c = 0;
|
|
51
|
-
_react.default.Children.map(children, function(
|
|
51
|
+
_react.default.Children.map(children, function() {
|
|
52
52
|
c += 1;
|
|
53
53
|
});
|
|
54
54
|
return c;
|
|
55
55
|
}, [
|
|
56
56
|
children
|
|
57
57
|
]);
|
|
58
|
+
var timeoutRef = (0, _react.useRef)(null);
|
|
59
|
+
var _useState = (0, _sliced_to_array._)((0, _react.useState)(false), 2), dragging = _useState[0], setDragging = _useState[1];
|
|
60
|
+
var _useRefState = (0, _sliced_to_array._)((0, _userefstate.useRefState)(defaultValue), 2), innerValue = _useRefState[0], setInnerValue = _useRefState[1];
|
|
61
|
+
var stageRef = (0, _react.useRef)(null);
|
|
62
|
+
var swiperRef = (0, _react.useRef)(null);
|
|
63
|
+
var _useSpring = (0, _sliced_to_array._)((0, _web.useSpring)(function() {
|
|
64
|
+
return {
|
|
65
|
+
x: !isVertical ? innerValue.current * 100 * -1 : 0,
|
|
66
|
+
y: isVertical ? innerValue.current * 100 * -1 : 0,
|
|
67
|
+
s: 0,
|
|
68
|
+
reset: function reset() {},
|
|
69
|
+
config: {
|
|
70
|
+
tension: 200,
|
|
71
|
+
friction: 30
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}), 2), springs = _useSpring[0], api = _useSpring[1];
|
|
58
75
|
var getSlideSize = function getSlideSize() {
|
|
59
76
|
if (props.slideSize) return props.slideSize;
|
|
60
77
|
if (stageRef.current) {
|
|
61
|
-
|
|
62
|
-
return stageRef.current.offsetWidth;
|
|
78
|
+
return isVertical ? stageRef.current.offsetHeight : stageRef.current.offsetWidth;
|
|
63
79
|
}
|
|
64
80
|
return 0;
|
|
65
81
|
};
|
|
66
82
|
var getSwiperSize = function getSwiperSize() {
|
|
67
83
|
if (swiperRef.current) {
|
|
68
|
-
|
|
69
|
-
return swiperRef.current.offsetWidth;
|
|
84
|
+
return isVertical ? swiperRef.current.offsetHeight : swiperRef.current.offsetWidth;
|
|
70
85
|
}
|
|
71
86
|
return 0;
|
|
72
87
|
};
|
|
@@ -79,51 +94,48 @@ var Swiper = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
|
79
94
|
}
|
|
80
95
|
return v;
|
|
81
96
|
};
|
|
82
|
-
var timeoutRef = (0, _react.useRef)(null);
|
|
83
|
-
var _useState = (0, _sliced_to_array._)((0, _react.useState)(false), 2), dragging = _useState[0], setDragging = _useState[1];
|
|
84
|
-
var _useRefState = (0, _sliced_to_array._)((0, _userefstate.useRefState)(defaultValue), 2), current = _useRefState[0], setCurrent = _useRefState[1];
|
|
85
|
-
var stageRef = (0, _react.useRef)(null);
|
|
86
|
-
var swiperRef = (0, _react.useRef)(null);
|
|
87
|
-
var _useSpring = (0, _sliced_to_array._)((0, _web.useSpring)(function() {
|
|
88
|
-
return {
|
|
89
|
-
x: !isVertical ? current.current * 100 * -1 : 0,
|
|
90
|
-
y: isVertical ? current.current * 100 * -1 : 0,
|
|
91
|
-
s: 0,
|
|
92
|
-
reset: function reset() {},
|
|
93
|
-
config: {
|
|
94
|
-
tension: 200,
|
|
95
|
-
friction: 30
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}), 2), springs = _useSpring[0], api = _useSpring[1];
|
|
99
97
|
(0, _react.useEffect)(function() {
|
|
100
98
|
var _obj;
|
|
101
|
-
api.start((_obj = {}, (0, _define_property._)(_obj, isVertical ? 'y' : 'x', boundIndex(
|
|
99
|
+
api.start((_obj = {}, (0, _define_property._)(_obj, isVertical ? 'y' : 'x', boundIndex(innerValue.current) * -1 * 100), (0, _define_property._)(_obj, "immediate", true), _obj));
|
|
102
100
|
}, [
|
|
103
101
|
swiperRef.current
|
|
104
102
|
]);
|
|
105
103
|
var swiperDirection = (0, _react.useRef)(1);
|
|
106
|
-
var _useList = (0, _sliced_to_array._)((0, _focus.useList)(effect, count,
|
|
104
|
+
var _useList = (0, _sliced_to_array._)((0, _focus.useList)(effect, count, innerValue), 2), transforms = _useList[0], setTransforms = _useList[1];
|
|
107
105
|
// 自动播放
|
|
108
|
-
var runTimeSwiper =
|
|
106
|
+
var runTimeSwiper = (0, _react.useCallback)(function() {
|
|
109
107
|
var durationNumber = typeof duration === 'string' ? parseInt(duration) : duration;
|
|
110
|
-
var d =
|
|
108
|
+
var d = durationNumber;
|
|
109
|
+
// 优先使用明确设置的数值型自动播放间隔
|
|
110
|
+
if (typeof props.autoPlay === 'number') {
|
|
111
|
+
d = props.autoPlay;
|
|
112
|
+
} else if (typeof autoplay === 'number') {
|
|
113
|
+
d = autoplay;
|
|
114
|
+
}
|
|
111
115
|
timeoutRef.current = window.setTimeout(function() {
|
|
112
116
|
next();
|
|
113
117
|
runTimeSwiper();
|
|
114
118
|
}, d);
|
|
115
|
-
}
|
|
119
|
+
}, [
|
|
120
|
+
props.autoPlay,
|
|
121
|
+
autoplay,
|
|
122
|
+
duration
|
|
123
|
+
]);
|
|
116
124
|
(0, _react.useEffect)(function() {
|
|
117
|
-
|
|
125
|
+
// 兼容旧版的 autoPlay 属性
|
|
126
|
+
var shouldAutoplay = props.autoPlay || autoplay;
|
|
127
|
+
if (!shouldAutoplay || dragging) return;
|
|
128
|
+
// if (!autoplay || dragging) return
|
|
118
129
|
runTimeSwiper();
|
|
119
130
|
return function() {
|
|
120
131
|
if (timeoutRef.current) window.clearTimeout(timeoutRef.current);
|
|
121
132
|
};
|
|
122
133
|
}, [
|
|
123
|
-
|
|
134
|
+
autoplay,
|
|
124
135
|
duration,
|
|
125
136
|
dragging,
|
|
126
|
-
count
|
|
137
|
+
count,
|
|
138
|
+
runTimeSwiper
|
|
127
139
|
]);
|
|
128
140
|
var to = function to(index) {
|
|
129
141
|
var immediate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
@@ -133,7 +145,7 @@ var Swiper = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
|
133
145
|
var cycleIndex = index % count;
|
|
134
146
|
targetIndex = cycleIndex < 0 ? cycleIndex + count : cycleIndex;
|
|
135
147
|
}
|
|
136
|
-
|
|
148
|
+
setInnerValue(targetIndex);
|
|
137
149
|
(_props_onChange = props.onChange) === null || _props_onChange === void 0 ? void 0 : _props_onChange.call(props, targetIndex);
|
|
138
150
|
if (effect) {
|
|
139
151
|
(0, _focus.updateTransform)(transforms, setTransforms, effect, targetIndex);
|
|
@@ -199,13 +211,10 @@ var Swiper = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
|
199
211
|
bounds: function bounds() {
|
|
200
212
|
if (loop) return {};
|
|
201
213
|
var slideSize = getSlideSize();
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
return {
|
|
214
|
+
return isVertical ? {
|
|
215
|
+
top: 0,
|
|
216
|
+
bottom: (count - 1) * slideSize
|
|
217
|
+
} : {
|
|
209
218
|
left: 0,
|
|
210
219
|
right: (count - 1) * slideSize
|
|
211
220
|
};
|
|
@@ -219,13 +228,13 @@ var Swiper = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
|
219
228
|
}
|
|
220
229
|
});
|
|
221
230
|
var renderIndicator = function renderIndicator() {
|
|
222
|
-
if (/*#__PURE__*/ _react.default.isValidElement(indicator)) return indicator;
|
|
223
231
|
if (!indicator) return null;
|
|
232
|
+
if (/*#__PURE__*/ _react.default.isValidElement(indicator)) return indicator;
|
|
224
233
|
var _obj;
|
|
225
234
|
return /*#__PURE__*/ _react.default.createElement("div", {
|
|
226
235
|
className: (0, _classnames.default)((_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix, "-indicator"), true), (0, _define_property._)(_obj, "".concat(classPrefix, "-indicator-vertical"), isVertical), (0, _define_property._)(_obj, "".concat(classPrefix, "-indicator-horizontal"), !isVertical), _obj))
|
|
227
236
|
}, /*#__PURE__*/ _react.default.createElement(_indicator.default, {
|
|
228
|
-
current: (0, _userefstate.getRefValue)(
|
|
237
|
+
current: (0, _userefstate.getRefValue)(innerValue),
|
|
229
238
|
total: count,
|
|
230
239
|
direction: direction
|
|
231
240
|
}));
|
|
@@ -246,7 +255,7 @@ var Swiper = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
|
246
255
|
count: count,
|
|
247
256
|
isVertical: isVertical,
|
|
248
257
|
effect: effect,
|
|
249
|
-
current:
|
|
258
|
+
current: innerValue,
|
|
250
259
|
swiperDirection: swiperDirection,
|
|
251
260
|
dragging: dragging,
|
|
252
261
|
transforms: transforms
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { WebTextAreaProps } from "../../types";
|
|
3
|
-
export declare const TextArea:
|
|
3
|
+
export declare const TextArea: React.ForwardRefExoticComponent<Partial<WebTextAreaProps> & Omit<React.HTMLAttributes<HTMLTextAreaElement>, "onFocus" | "onBlur" | "onChange"> & React.RefAttributes<unknown>>;
|
|
@@ -25,14 +25,13 @@ var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typing
|
|
|
25
25
|
showCount: false,
|
|
26
26
|
rows: 2,
|
|
27
27
|
maxLength: 140,
|
|
28
|
-
placeholder: '',
|
|
29
28
|
readOnly: false,
|
|
30
29
|
disabled: false,
|
|
31
30
|
autoSize: false,
|
|
32
31
|
plain: false,
|
|
33
32
|
status: 'default'
|
|
34
33
|
});
|
|
35
|
-
var TextArea =
|
|
34
|
+
var TextArea = /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
|
36
35
|
var locale = (0, _configprovider.useConfig)().locale;
|
|
37
36
|
var _ref = (0, _object_spread._)({}, defaultProps, props), className = _ref.className, value = _ref.value, defaultValue = _ref.defaultValue, showCount = _ref.showCount, maxLength = _ref.maxLength, rows = _ref.rows, placeholder = _ref.placeholder, readOnly = _ref.readOnly, disabled = _ref.disabled, autoSize = _ref.autoSize, style = _ref.style, plain = _ref.plain, status = _ref.status, onChange = _ref.onChange, onBlur = _ref.onBlur, onFocus = _ref.onFocus, rest = (0, _object_without_properties._)(_ref, [
|
|
38
37
|
"className",
|
|
@@ -67,13 +66,13 @@ var TextArea = function TextArea(props) {
|
|
|
67
66
|
defaultValue: defaultValue,
|
|
68
67
|
finalValue: format(defaultValue),
|
|
69
68
|
onChange: onChange
|
|
70
|
-
}), 2),
|
|
69
|
+
}), 2), innerValue = _usePropsValue[0], setInnerValue = _usePropsValue[1];
|
|
71
70
|
(0, _react.useEffect)(function() {
|
|
72
71
|
if (autoSize) setContentHeight();
|
|
73
72
|
}, [
|
|
74
73
|
autoSize,
|
|
75
74
|
defaultValue,
|
|
76
|
-
|
|
75
|
+
innerValue
|
|
77
76
|
]);
|
|
78
77
|
var setContentHeight = function setContentHeight() {
|
|
79
78
|
var textarea = textareaRef.current;
|
|
@@ -88,7 +87,7 @@ var TextArea = function TextArea(props) {
|
|
|
88
87
|
var handleChange = function handleChange(event) {
|
|
89
88
|
var text = event.target;
|
|
90
89
|
var value = compositionRef.current ? text.value : format(text.value);
|
|
91
|
-
|
|
90
|
+
setInnerValue(value);
|
|
92
91
|
};
|
|
93
92
|
var isDisabled = function isDisabled() {
|
|
94
93
|
return disabled || readOnly;
|
|
@@ -101,6 +100,24 @@ var TextArea = function TextArea(props) {
|
|
|
101
100
|
if (isDisabled()) return;
|
|
102
101
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
103
102
|
};
|
|
103
|
+
(0, _react.useImperativeHandle)(ref, function() {
|
|
104
|
+
return {
|
|
105
|
+
clear: function clear() {
|
|
106
|
+
return setInnerValue('');
|
|
107
|
+
},
|
|
108
|
+
focus: function focus() {
|
|
109
|
+
var _textareaRef_current;
|
|
110
|
+
return (_textareaRef_current = textareaRef.current) === null || _textareaRef_current === void 0 ? void 0 : _textareaRef_current.focus();
|
|
111
|
+
},
|
|
112
|
+
blur: function blur() {
|
|
113
|
+
var _textareaRef_current;
|
|
114
|
+
return (_textareaRef_current = textareaRef.current) === null || _textareaRef_current === void 0 ? void 0 : _textareaRef_current.blur();
|
|
115
|
+
},
|
|
116
|
+
get nativeElement () {
|
|
117
|
+
return textareaRef.current;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
});
|
|
104
121
|
var _obj;
|
|
105
122
|
return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement("div", {
|
|
106
123
|
className: (0, _classnames.default)(classPrefix, (_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix, "-disabled"), disabled), (0, _define_property._)(_obj, "".concat(classPrefix, "-readonly"), readOnly), (0, _define_property._)(_obj, "".concat(classPrefix, "-rtl"), rtl), (0, _define_property._)(_obj, "".concat(classPrefix, "-plain"), plain), (0, _define_property._)(_obj, "".concat(classPrefix, "-container"), !plain), (0, _define_property._)(_obj, "".concat(classPrefix, "-").concat(status), status), _obj), className)
|
|
@@ -110,7 +127,7 @@ var TextArea = function TextArea(props) {
|
|
|
110
127
|
style: style,
|
|
111
128
|
disabled: disabled,
|
|
112
129
|
readOnly: readOnly,
|
|
113
|
-
value:
|
|
130
|
+
value: innerValue,
|
|
114
131
|
onChange: handleChange,
|
|
115
132
|
onBlur: handleBlur,
|
|
116
133
|
onFocus: handleFocus,
|
|
@@ -125,6 +142,6 @@ var TextArea = function TextArea(props) {
|
|
|
125
142
|
placeholder: placeholder !== undefined ? placeholder : locale.placeholder
|
|
126
143
|
})), showCount && /*#__PURE__*/ _react.default.createElement("div", {
|
|
127
144
|
className: (0, _classnames.default)("".concat(classPrefix, "-limit"), (0, _define_property._)({}, "".concat(classPrefix, "-limit-disabled"), disabled))
|
|
128
|
-
},
|
|
129
|
-
};
|
|
145
|
+
}, innerValue.length, "/", maxLength < 0 ? 0 : maxLength)));
|
|
146
|
+
});
|
|
130
147
|
TextArea.displayName = 'NutTextArea';
|
|
@@ -206,10 +206,21 @@ var InternalUploader = function InternalUploader(props, ref) {
|
|
|
206
206
|
];
|
|
207
207
|
case 1:
|
|
208
208
|
_files = _state.sent();
|
|
209
|
-
if (!_files.length)
|
|
210
|
-
|
|
209
|
+
if (!_files.length) {
|
|
210
|
+
$el.value = '';
|
|
211
|
+
return [
|
|
212
|
+
2
|
|
213
|
+
];
|
|
214
|
+
}
|
|
215
|
+
return [
|
|
216
|
+
3,
|
|
217
|
+
3
|
|
218
|
+
];
|
|
211
219
|
case 2:
|
|
212
|
-
_files =
|
|
220
|
+
_files = filesArr;
|
|
221
|
+
_state.label = 3;
|
|
222
|
+
case 3:
|
|
223
|
+
_files = filterFiles(_files);
|
|
213
224
|
tasks = _files.map(function(file) {
|
|
214
225
|
var _file_type;
|
|
215
226
|
var info = {
|
|
@@ -236,22 +247,22 @@ var InternalUploader = function InternalUploader(props, ref) {
|
|
|
236
247
|
});
|
|
237
248
|
if (!!autoUpload) return [
|
|
238
249
|
3,
|
|
239
|
-
|
|
250
|
+
4
|
|
240
251
|
];
|
|
241
252
|
setUploadQueue(tasks);
|
|
242
253
|
return [
|
|
243
254
|
3,
|
|
244
|
-
|
|
255
|
+
6
|
|
245
256
|
];
|
|
246
|
-
case
|
|
257
|
+
case 4:
|
|
247
258
|
return [
|
|
248
259
|
4,
|
|
249
260
|
uploadAction(tasks)
|
|
250
261
|
];
|
|
251
|
-
case 4:
|
|
252
|
-
_state.sent();
|
|
253
|
-
_state.label = 5;
|
|
254
262
|
case 5:
|
|
263
|
+
_state.sent();
|
|
264
|
+
_state.label = 6;
|
|
265
|
+
case 6:
|
|
255
266
|
if (clearInput) {
|
|
256
267
|
$el.value = '';
|
|
257
268
|
}
|
|
@@ -3,6 +3,7 @@ import { UIRound } from '../../base/atoms';
|
|
|
3
3
|
import { BaseProps } from '../../base/props';
|
|
4
4
|
export interface BaseSearchBar extends BaseProps {
|
|
5
5
|
value: string;
|
|
6
|
+
defaultValue: string;
|
|
6
7
|
placeholder: string;
|
|
7
8
|
shape: UIRound;
|
|
8
9
|
disabled: boolean;
|
|
@@ -15,10 +16,12 @@ export interface BaseSearchBar extends BaseProps {
|
|
|
15
16
|
right: ReactNode;
|
|
16
17
|
leftIn: ReactNode;
|
|
17
18
|
rightIn: ReactNode;
|
|
19
|
+
tag: boolean;
|
|
18
20
|
onSearch: (val: string) => void;
|
|
19
21
|
onChange: (value: string, e: any) => void;
|
|
20
22
|
onFocus: (value: string, e: any) => void;
|
|
21
23
|
onBlur: (value: string, e: any) => void;
|
|
22
24
|
onClear: (e: any) => void;
|
|
23
25
|
onInputClick: (e: any) => void;
|
|
26
|
+
onItemClick: (value: string, e: any) => void;
|
|
24
27
|
}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { BaseProps } from '../../base/props';
|
|
3
|
+
export type StepStatus = 'wait' | 'process' | 'finish';
|
|
4
|
+
export type StepType = 'text' | 'dot' | 'icon';
|
|
5
|
+
export type StepLayout = 'single' | 'double';
|
|
6
|
+
export type StepDirection = 'horizontal' | 'vertical';
|
|
7
|
+
export type StepsStatus = 'default' | 'business' | 'dynamic' | 'enhanced';
|
|
3
8
|
export interface BaseStep extends BaseProps {
|
|
4
9
|
title: ReactNode;
|
|
5
10
|
description: ReactNode;
|
|
6
11
|
value: number;
|
|
7
12
|
icon: ReactNode;
|
|
13
|
+
type: StepType;
|
|
8
14
|
}
|
|
9
15
|
export interface BaseSteps extends BaseProps {
|
|
16
|
+
status: StepsStatus;
|
|
17
|
+
direction: StepDirection;
|
|
10
18
|
value: number;
|
|
11
|
-
|
|
12
|
-
|
|
19
|
+
type: StepType;
|
|
20
|
+
layout: StepLayout;
|
|
21
|
+
icon: ReactNode;
|
|
13
22
|
onStepClick: (index: number) => void;
|
|
14
23
|
}
|
|
@@ -15,7 +15,11 @@ export interface BaseSwiper extends BaseProps {
|
|
|
15
15
|
indicator: ReactNode;
|
|
16
16
|
loop: boolean;
|
|
17
17
|
duration: SimpleValue;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Please use `autoplay` prop instead.
|
|
20
|
+
*/
|
|
18
21
|
autoPlay: boolean | number;
|
|
22
|
+
autoplay: boolean | number;
|
|
19
23
|
defaultValue: number;
|
|
20
24
|
touchable: boolean;
|
|
21
25
|
effect: FocusEffect | undefined;
|
|
@@ -9,7 +9,11 @@ export type TaroSwiperProps = Omit<BaseSwiper, OmittedKeys> & OmittedSwiperProps
|
|
|
9
9
|
height?: SimpleValue;
|
|
10
10
|
direction: Direction;
|
|
11
11
|
indicator: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Please use `autoplay` prop instead.
|
|
14
|
+
*/
|
|
12
15
|
autoPlay: boolean;
|
|
16
|
+
autoplay: boolean;
|
|
13
17
|
loop: boolean;
|
|
14
18
|
defaultValue: number;
|
|
15
19
|
};
|