Skip to content

Commit 0dce137

Browse files
committed
fix: ClSelect is hard to trigger click action #73
1 parent 18bbf6c commit 0dce137

File tree

3 files changed

+39
-22
lines changed

3 files changed

+39
-22
lines changed

Diff for: .idea/workspace.xml

+28-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/components/select/index.scss

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.longSelect {
2+
flex: 1 0 auto;
3+
text-align: end;
4+
}

Diff for: src/components/select/index.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { classNames, getNowDate, isAliPay } from "../../lib";
44
import { IProps } from "../../../@types/select";
55
import { getAreaData } from "../../lib/area";
66

7+
import "./index.scss"
8+
79
import AlipayMutiSelect from "./components/alipay/mutiSelector";
810

911
function ClSelect(props: IProps) {
@@ -235,6 +237,7 @@ function ClSelect(props: IProps) {
235237
onChange={onSelectorChange}
236238
onCancel={onCancel}
237239
disabled={props.disabled}
240+
className='longSelect'
238241
>
239242
<View className="picker">{selected}</View>
240243
</Picker>
@@ -250,6 +253,7 @@ function ClSelect(props: IProps) {
250253
onColumnChange={onMutiSelectorColumChange}
251254
onCancel={onCancel}
252255
disabled={props.disabled}
256+
className='longSelect'
253257
>
254258
<View className="picker">{mutiSelected}</View>
255259
</Picker>
@@ -268,6 +272,7 @@ function ClSelect(props: IProps) {
268272
onChange={onTimeSelectorChange}
269273
onCancel={onCancel}
270274
disabled={props.disabled}
275+
className='longSelect'
271276
>
272277
<View className="picker">{timeSelected}</View>
273278
</Picker>
@@ -282,6 +287,7 @@ function ClSelect(props: IProps) {
282287
fields={dateSelector.fields}
283288
onCancel={onCancel}
284289
onChange={onDateSelectorChange}
290+
className='longSelect'
285291
>
286292
<View className="picker">{dateSelected}</View>
287293
</Picker>
@@ -298,6 +304,7 @@ function ClSelect(props: IProps) {
298304
onColumnChange={onRegionMutiSelectorColumChange}
299305
onCancel={onCancel}
300306
disabled={props.disabled}
307+
className='longSelect'
301308
>
302309
<View className="picker">{regionSelected}</View>
303310
</Picker>

0 commit comments

Comments
 (0)