forked from ant-design/ant-design-mini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.axml
109 lines (106 loc) · 2.73 KB
/
index.axml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<ant-list header="基础用法">
<ant-list-item>
选择城市
<ant-picker
slot="extra"
onCancel="handleDismissPicker"
onVisibleChange="handleTriggerPicker"
onOk="handleOk"
defaultValue="{{ defaultValue }}"
placeholder="请选择"
title="请选择"
onChange="handleChange"
options="{{ list }}"
emptyText="暂无数据" />
</ant-list-item>
<ant-list-item>
选择城市(点击蒙层不关闭)
<ant-picker
slot="extra"
onCancel="handleDismissPicker"
onVisibleChange="handleTriggerPicker"
onOk="handleOk"
defaultValue="{{ defaultValue }}"
placeholder="请选择"
title="请选择"
onChange="handleChange"
maskClosable="{{ false }}"
options="{{ list }}" />
</ant-list-item>
</ant-list>
<ant-list header="受控模式">
<ant-list-item>
选择城市
<ant-picker
slot="extra"
onOk="handleControlledOk"
value="{{ value }}"
placeholder="请选择"
title="请选择"
options="{{ list }}" />
</ant-list-item>
<view class="btn-wrapper">
<ant-button
inline
onTap="handleChangeControlled"
style="margin-right: 8px">
选择深圳
</ant-button>
<ant-button
inline
onTap="handleClearControlled">
清空
</ant-button>
</view>
</ant-list>
<ant-list header="对象用法">
<ant-list-item>
选择日期
<ant-picker
slot="extra"
onCancel="handleDismissPicker"
onVisibleChange="handleTriggerPicker"
onOk="handleOk"
placeholder="请选择"
title="请选择"
onChange="handleChange"
options="{{ weekList }}" />
</ant-list-item>
</ant-list>
<ant-list header="多列复杂类型数据">
<ant-list-item>
请选择时间
<ant-picker
slot="extra"
placeholder="请选择"
onVisibleChange="handleTriggerPicker"
defaultValue="{{['Tues', 'pm']}}"
title="请选择"
onOk="handleOk"
onFormat="{{ formatTime ? formatTime : 'formatTime' }}"
options="{{ columns }}" />
</ant-list-item>
</ant-list>
<ant-container style="margin-top: 20rpx">
<ant-list header="多列复杂类型数据">
<ant-list-item>
请选择时间
<ant-picker
slot="extra"
visible="{{ pickerVisible }}"
placeholder="请选择"
onVisibleChange="handleTriggerControlledPicker"
defaultValue="{{['Tues', 'pm']}}"
title="请选择"
onOk="handleOk"
onFormat="{{ formatTime ? formatTime : 'formatTime' }}"
options="{{ columns }}" />
</ant-list-item>
</ant-list>
<ant-button
size="medium"
type="primary"
onTap="handleOpenPicker">
打开 Picker
</ant-button>
</ant-container>