@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
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
|
2
2
|
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
3
3
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
4
|
-
import React, { useEffect, useMemo, useRef, useState } from "react";
|
|
4
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { useDrag } from "@use-gesture/react";
|
|
6
6
|
import { useSpring } from "@react-spring/web";
|
|
7
7
|
import classNames from "classnames";
|
|
@@ -14,7 +14,7 @@ var defaultProps = {
|
|
|
14
14
|
indicator: false,
|
|
15
15
|
loop: false,
|
|
16
16
|
duration: 3000,
|
|
17
|
-
|
|
17
|
+
autoplay: false,
|
|
18
18
|
defaultValue: 0,
|
|
19
19
|
touchable: true,
|
|
20
20
|
effect: undefined
|
|
@@ -32,29 +32,44 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
32
32
|
return current;
|
|
33
33
|
};
|
|
34
34
|
var classPrefix = 'nut-swiper';
|
|
35
|
-
var _$_object_spread = _object_spread({}, defaultProps, props), children = _$_object_spread.children, direction = _$_object_spread.direction, indicator = _$_object_spread.indicator, loop = _$_object_spread.loop, effect = _$_object_spread.effect,
|
|
35
|
+
var _$_object_spread = _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;
|
|
36
36
|
var isVertical = direction === 'vertical';
|
|
37
37
|
var count = useMemo(function() {
|
|
38
38
|
var c = 0;
|
|
39
|
-
React.Children.map(children, function(
|
|
39
|
+
React.Children.map(children, function() {
|
|
40
40
|
c += 1;
|
|
41
41
|
});
|
|
42
42
|
return c;
|
|
43
43
|
}, [
|
|
44
44
|
children
|
|
45
45
|
]);
|
|
46
|
+
var timeoutRef = useRef(null);
|
|
47
|
+
var _useState = _sliced_to_array(useState(false), 2), dragging = _useState[0], setDragging = _useState[1];
|
|
48
|
+
var _useRefState = _sliced_to_array(useRefState(defaultValue), 2), innerValue = _useRefState[0], setInnerValue = _useRefState[1];
|
|
49
|
+
var stageRef = useRef(null);
|
|
50
|
+
var swiperRef = useRef(null);
|
|
51
|
+
var _useSpring = _sliced_to_array(useSpring(function() {
|
|
52
|
+
return {
|
|
53
|
+
x: !isVertical ? innerValue.current * 100 * -1 : 0,
|
|
54
|
+
y: isVertical ? innerValue.current * 100 * -1 : 0,
|
|
55
|
+
s: 0,
|
|
56
|
+
reset: function() {},
|
|
57
|
+
config: {
|
|
58
|
+
tension: 200,
|
|
59
|
+
friction: 30
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}), 2), springs = _useSpring[0], api = _useSpring[1];
|
|
46
63
|
var getSlideSize = function() {
|
|
47
64
|
if (props.slideSize) return props.slideSize;
|
|
48
65
|
if (stageRef.current) {
|
|
49
|
-
|
|
50
|
-
return stageRef.current.offsetWidth;
|
|
66
|
+
return isVertical ? stageRef.current.offsetHeight : stageRef.current.offsetWidth;
|
|
51
67
|
}
|
|
52
68
|
return 0;
|
|
53
69
|
};
|
|
54
70
|
var getSwiperSize = function() {
|
|
55
71
|
if (swiperRef.current) {
|
|
56
|
-
|
|
57
|
-
return swiperRef.current.offsetWidth;
|
|
72
|
+
return isVertical ? swiperRef.current.offsetHeight : swiperRef.current.offsetWidth;
|
|
58
73
|
}
|
|
59
74
|
return 0;
|
|
60
75
|
};
|
|
@@ -67,51 +82,48 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
67
82
|
}
|
|
68
83
|
return v;
|
|
69
84
|
};
|
|
70
|
-
var timeoutRef = useRef(null);
|
|
71
|
-
var _useState = _sliced_to_array(useState(false), 2), dragging = _useState[0], setDragging = _useState[1];
|
|
72
|
-
var _useRefState = _sliced_to_array(useRefState(defaultValue), 2), current = _useRefState[0], setCurrent = _useRefState[1];
|
|
73
|
-
var stageRef = useRef(null);
|
|
74
|
-
var swiperRef = useRef(null);
|
|
75
|
-
var _useSpring = _sliced_to_array(useSpring(function() {
|
|
76
|
-
return {
|
|
77
|
-
x: !isVertical ? current.current * 100 * -1 : 0,
|
|
78
|
-
y: isVertical ? current.current * 100 * -1 : 0,
|
|
79
|
-
s: 0,
|
|
80
|
-
reset: function() {},
|
|
81
|
-
config: {
|
|
82
|
-
tension: 200,
|
|
83
|
-
friction: 30
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}), 2), springs = _useSpring[0], api = _useSpring[1];
|
|
87
85
|
useEffect(function() {
|
|
88
86
|
var _obj;
|
|
89
|
-
api.start((_obj = {}, _define_property(_obj, isVertical ? 'y' : 'x', boundIndex(
|
|
87
|
+
api.start((_obj = {}, _define_property(_obj, isVertical ? 'y' : 'x', boundIndex(innerValue.current) * -1 * 100), _define_property(_obj, "immediate", true), _obj));
|
|
90
88
|
}, [
|
|
91
89
|
swiperRef.current
|
|
92
90
|
]);
|
|
93
91
|
var swiperDirection = useRef(1);
|
|
94
|
-
var _useList = _sliced_to_array(useList(effect, count,
|
|
92
|
+
var _useList = _sliced_to_array(useList(effect, count, innerValue), 2), transforms = _useList[0], setTransforms = _useList[1];
|
|
95
93
|
// 自动播放
|
|
96
|
-
var runTimeSwiper = function() {
|
|
94
|
+
var runTimeSwiper = useCallback(function() {
|
|
97
95
|
var durationNumber = typeof duration === 'string' ? parseInt(duration) : duration;
|
|
98
|
-
var d =
|
|
96
|
+
var d = durationNumber;
|
|
97
|
+
// 优先使用明确设置的数值型自动播放间隔
|
|
98
|
+
if (typeof props.autoPlay === 'number') {
|
|
99
|
+
d = props.autoPlay;
|
|
100
|
+
} else if (typeof autoplay === 'number') {
|
|
101
|
+
d = autoplay;
|
|
102
|
+
}
|
|
99
103
|
timeoutRef.current = window.setTimeout(function() {
|
|
100
104
|
next();
|
|
101
105
|
runTimeSwiper();
|
|
102
106
|
}, d);
|
|
103
|
-
}
|
|
107
|
+
}, [
|
|
108
|
+
props.autoPlay,
|
|
109
|
+
autoplay,
|
|
110
|
+
duration
|
|
111
|
+
]);
|
|
104
112
|
useEffect(function() {
|
|
105
|
-
|
|
113
|
+
// 兼容旧版的 autoPlay 属性
|
|
114
|
+
var shouldAutoplay = props.autoPlay || autoplay;
|
|
115
|
+
if (!shouldAutoplay || dragging) return;
|
|
116
|
+
// if (!autoplay || dragging) return
|
|
106
117
|
runTimeSwiper();
|
|
107
118
|
return function() {
|
|
108
119
|
if (timeoutRef.current) window.clearTimeout(timeoutRef.current);
|
|
109
120
|
};
|
|
110
121
|
}, [
|
|
111
|
-
|
|
122
|
+
autoplay,
|
|
112
123
|
duration,
|
|
113
124
|
dragging,
|
|
114
|
-
count
|
|
125
|
+
count,
|
|
126
|
+
runTimeSwiper
|
|
115
127
|
]);
|
|
116
128
|
var to = function(index) {
|
|
117
129
|
var immediate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
@@ -121,7 +133,7 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
121
133
|
var cycleIndex = index % count;
|
|
122
134
|
targetIndex = cycleIndex < 0 ? cycleIndex + count : cycleIndex;
|
|
123
135
|
}
|
|
124
|
-
|
|
136
|
+
setInnerValue(targetIndex);
|
|
125
137
|
(_props_onChange = props.onChange) === null || _props_onChange === void 0 ? void 0 : _props_onChange.call(props, targetIndex);
|
|
126
138
|
if (effect) {
|
|
127
139
|
updateTransform(transforms, setTransforms, effect, targetIndex);
|
|
@@ -188,13 +200,10 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
188
200
|
bounds: function() {
|
|
189
201
|
if (loop) return {};
|
|
190
202
|
var slideSize = getSlideSize();
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
return {
|
|
203
|
+
return isVertical ? {
|
|
204
|
+
top: 0,
|
|
205
|
+
bottom: (count - 1) * slideSize
|
|
206
|
+
} : {
|
|
198
207
|
left: 0,
|
|
199
208
|
right: (count - 1) * slideSize
|
|
200
209
|
};
|
|
@@ -208,13 +217,13 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
208
217
|
}
|
|
209
218
|
});
|
|
210
219
|
var renderIndicator = function() {
|
|
211
|
-
if (/*#__PURE__*/ React.isValidElement(indicator)) return indicator;
|
|
212
220
|
if (!indicator) return null;
|
|
221
|
+
if (/*#__PURE__*/ React.isValidElement(indicator)) return indicator;
|
|
213
222
|
var _obj;
|
|
214
223
|
return /*#__PURE__*/ React.createElement("div", {
|
|
215
224
|
className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-indicator"), true), _define_property(_obj, "".concat(classPrefix, "-indicator-vertical"), isVertical), _define_property(_obj, "".concat(classPrefix, "-indicator-horizontal"), !isVertical), _obj))
|
|
216
225
|
}, /*#__PURE__*/ React.createElement(Indicator, {
|
|
217
|
-
current: getRefValue(
|
|
226
|
+
current: getRefValue(innerValue),
|
|
218
227
|
total: count,
|
|
219
228
|
direction: direction
|
|
220
229
|
}));
|
|
@@ -235,7 +244,7 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
235
244
|
count: count,
|
|
236
245
|
isVertical: isVertical,
|
|
237
246
|
effect: effect,
|
|
238
|
-
current:
|
|
247
|
+
current: innerValue,
|
|
239
248
|
swiperDirection: swiperDirection,
|
|
240
249
|
dragging: dragging,
|
|
241
250
|
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>>;
|
|
@@ -3,7 +3,7 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
|
3
3
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
4
4
|
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
5
5
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
6
|
-
import React, { useEffect, useRef } from "react";
|
|
6
|
+
import React, { useEffect, useRef, forwardRef, useImperativeHandle } from "react";
|
|
7
7
|
import classNames from "classnames";
|
|
8
8
|
import { useConfig, useRtl } from "../configprovider";
|
|
9
9
|
import { ComponentDefaults } from "../../utils/typings";
|
|
@@ -13,14 +13,13 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
13
13
|
showCount: false,
|
|
14
14
|
rows: 2,
|
|
15
15
|
maxLength: 140,
|
|
16
|
-
placeholder: '',
|
|
17
16
|
readOnly: false,
|
|
18
17
|
disabled: false,
|
|
19
18
|
autoSize: false,
|
|
20
19
|
plain: false,
|
|
21
20
|
status: 'default'
|
|
22
21
|
});
|
|
23
|
-
export var TextArea = function(props) {
|
|
22
|
+
export var TextArea = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
24
23
|
var locale = useConfig().locale;
|
|
25
24
|
var _ref = _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 = _object_without_properties(_ref, [
|
|
26
25
|
"className",
|
|
@@ -55,13 +54,13 @@ export var TextArea = function(props) {
|
|
|
55
54
|
defaultValue: defaultValue,
|
|
56
55
|
finalValue: format(defaultValue),
|
|
57
56
|
onChange: onChange
|
|
58
|
-
}), 2),
|
|
57
|
+
}), 2), innerValue = _usePropsValue[0], setInnerValue = _usePropsValue[1];
|
|
59
58
|
useEffect(function() {
|
|
60
59
|
if (autoSize) setContentHeight();
|
|
61
60
|
}, [
|
|
62
61
|
autoSize,
|
|
63
62
|
defaultValue,
|
|
64
|
-
|
|
63
|
+
innerValue
|
|
65
64
|
]);
|
|
66
65
|
var setContentHeight = function() {
|
|
67
66
|
var textarea = textareaRef.current;
|
|
@@ -76,7 +75,7 @@ export var TextArea = function(props) {
|
|
|
76
75
|
var handleChange = function(event) {
|
|
77
76
|
var text = event.target;
|
|
78
77
|
var value = compositionRef.current ? text.value : format(text.value);
|
|
79
|
-
|
|
78
|
+
setInnerValue(value);
|
|
80
79
|
};
|
|
81
80
|
var isDisabled = function() {
|
|
82
81
|
return disabled || readOnly;
|
|
@@ -89,6 +88,24 @@ export var TextArea = function(props) {
|
|
|
89
88
|
if (isDisabled()) return;
|
|
90
89
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
91
90
|
};
|
|
91
|
+
useImperativeHandle(ref, function() {
|
|
92
|
+
return {
|
|
93
|
+
clear: function() {
|
|
94
|
+
return setInnerValue('');
|
|
95
|
+
},
|
|
96
|
+
focus: function() {
|
|
97
|
+
var _textareaRef_current;
|
|
98
|
+
return (_textareaRef_current = textareaRef.current) === null || _textareaRef_current === void 0 ? void 0 : _textareaRef_current.focus();
|
|
99
|
+
},
|
|
100
|
+
blur: function() {
|
|
101
|
+
var _textareaRef_current;
|
|
102
|
+
return (_textareaRef_current = textareaRef.current) === null || _textareaRef_current === void 0 ? void 0 : _textareaRef_current.blur();
|
|
103
|
+
},
|
|
104
|
+
get nativeElement () {
|
|
105
|
+
return textareaRef.current;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
});
|
|
92
109
|
var _obj;
|
|
93
110
|
return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("div", {
|
|
94
111
|
className: classNames(classPrefix, (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-disabled"), disabled), _define_property(_obj, "".concat(classPrefix, "-readonly"), readOnly), _define_property(_obj, "".concat(classPrefix, "-rtl"), rtl), _define_property(_obj, "".concat(classPrefix, "-plain"), plain), _define_property(_obj, "".concat(classPrefix, "-container"), !plain), _define_property(_obj, "".concat(classPrefix, "-").concat(status), status), _obj), className)
|
|
@@ -98,7 +115,7 @@ export var TextArea = function(props) {
|
|
|
98
115
|
style: style,
|
|
99
116
|
disabled: disabled,
|
|
100
117
|
readOnly: readOnly,
|
|
101
|
-
value:
|
|
118
|
+
value: innerValue,
|
|
102
119
|
onChange: handleChange,
|
|
103
120
|
onBlur: handleBlur,
|
|
104
121
|
onFocus: handleFocus,
|
|
@@ -113,6 +130,6 @@ export var TextArea = function(props) {
|
|
|
113
130
|
placeholder: placeholder !== undefined ? placeholder : locale.placeholder
|
|
114
131
|
})), showCount && /*#__PURE__*/ React.createElement("div", {
|
|
115
132
|
className: classNames("".concat(classPrefix, "-limit"), _define_property({}, "".concat(classPrefix, "-limit-disabled"), disabled))
|
|
116
|
-
},
|
|
117
|
-
};
|
|
133
|
+
}, innerValue.length, "/", maxLength < 0 ? 0 : maxLength)));
|
|
134
|
+
});
|
|
118
135
|
TextArea.displayName = 'NutTextArea';
|
|
@@ -194,10 +194,21 @@ var InternalUploader = function(props, ref) {
|
|
|
194
194
|
];
|
|
195
195
|
case 1:
|
|
196
196
|
_files = _state.sent();
|
|
197
|
-
if (!_files.length)
|
|
198
|
-
|
|
197
|
+
if (!_files.length) {
|
|
198
|
+
$el.value = '';
|
|
199
|
+
return [
|
|
200
|
+
2
|
|
201
|
+
];
|
|
202
|
+
}
|
|
203
|
+
return [
|
|
204
|
+
3,
|
|
205
|
+
3
|
|
206
|
+
];
|
|
199
207
|
case 2:
|
|
200
|
-
_files =
|
|
208
|
+
_files = filesArr;
|
|
209
|
+
_state.label = 3;
|
|
210
|
+
case 3:
|
|
211
|
+
_files = filterFiles(_files);
|
|
201
212
|
tasks = _files.map(function(file) {
|
|
202
213
|
var _file_type;
|
|
203
214
|
var info = {
|
|
@@ -224,22 +235,22 @@ var InternalUploader = function(props, ref) {
|
|
|
224
235
|
});
|
|
225
236
|
if (!!autoUpload) return [
|
|
226
237
|
3,
|
|
227
|
-
|
|
238
|
+
4
|
|
228
239
|
];
|
|
229
240
|
setUploadQueue(tasks);
|
|
230
241
|
return [
|
|
231
242
|
3,
|
|
232
|
-
|
|
243
|
+
6
|
|
233
244
|
];
|
|
234
|
-
case
|
|
245
|
+
case 4:
|
|
235
246
|
return [
|
|
236
247
|
4,
|
|
237
248
|
uploadAction(tasks)
|
|
238
249
|
];
|
|
239
|
-
case 4:
|
|
240
|
-
_state.sent();
|
|
241
|
-
_state.label = 5;
|
|
242
250
|
case 5:
|
|
251
|
+
_state.sent();
|
|
252
|
+
_state.label = 6;
|
|
253
|
+
case 6:
|
|
243
254
|
if (clearInput) {
|
|
244
255
|
$el.value = '';
|
|
245
256
|
}
|
|
@@ -32,4 +32,28 @@ export interface BaseProgress extends BaseProps {
|
|
|
32
32
|
* 延迟数据加载时长,单位 ms
|
|
33
33
|
*/
|
|
34
34
|
delay: number
|
|
35
|
+
/**
|
|
36
|
+
* 进度条圆角大小
|
|
37
|
+
*/
|
|
38
|
+
borderRadius: string
|
|
39
|
+
/**
|
|
40
|
+
* 进度文字大小
|
|
41
|
+
*/
|
|
42
|
+
fontSize: string
|
|
43
|
+
/**
|
|
44
|
+
* 动画播放方式
|
|
45
|
+
*/
|
|
46
|
+
activeMode: string
|
|
47
|
+
/**
|
|
48
|
+
* 动画完成时间(单位:毫秒)
|
|
49
|
+
*/
|
|
50
|
+
duration: number
|
|
51
|
+
/**
|
|
52
|
+
* 无障碍标签
|
|
53
|
+
*/
|
|
54
|
+
ariaLabel: string
|
|
55
|
+
/**
|
|
56
|
+
* 动画完成后的回调函数
|
|
57
|
+
*/
|
|
58
|
+
onActiveEnd: () => void
|
|
35
59
|
}
|
|
@@ -3,10 +3,14 @@ import { UIRound } from '../../base/atoms';
|
|
|
3
3
|
import { BaseProps } from '../../base/props';
|
|
4
4
|
export interface BaseSearchBar extends BaseProps {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* 当前输入的值,受控
|
|
7
7
|
*/
|
|
8
8
|
value: string
|
|
9
9
|
/**
|
|
10
|
+
* 当前默认值,支持通过','分割成多个
|
|
11
|
+
*/
|
|
12
|
+
defaultValue: string
|
|
13
|
+
/**
|
|
10
14
|
* 输入框默认暗纹
|
|
11
15
|
*/
|
|
12
16
|
placeholder: string
|
|
@@ -54,6 +58,7 @@ export interface BaseSearchBar extends BaseProps {
|
|
|
54
58
|
* 输入框内右侧区域
|
|
55
59
|
*/
|
|
56
60
|
rightIn: ReactNode
|
|
61
|
+
tag: boolean;
|
|
57
62
|
/**
|
|
58
63
|
* 确定搜索时触发
|
|
59
64
|
*/
|
|
@@ -78,4 +83,8 @@ export interface BaseSearchBar extends BaseProps {
|
|
|
78
83
|
* 点击输入区域时触发
|
|
79
84
|
*/
|
|
80
85
|
onInputClick: (e: any) => void
|
|
86
|
+
/**
|
|
87
|
+
* 点击默认值的x号触发
|
|
88
|
+
*/
|
|
89
|
+
onItemClick: (value: string, e: any) => void
|
|
81
90
|
}
|