@@ -32,8 +32,8 @@ In `index.json` Introducing Components in
32
32
33
33
``` xml
34
34
<ant-prompts
35
- list =" {{baseList}}"
36
- promptsTitle =" {{promptsTitle}}"
35
+ items =" {{baseList}}"
36
+ title =" {{promptsTitle}}"
37
37
#if ALIPAY
38
38
onItemTap =" onItemTap"
39
39
#endif
78
78
79
79
``` xml
80
80
<ant-prompts
81
- list =" {{ arrowList }}"
82
- promptsTitle =" {{ promptsTitle }}"
81
+ items =" {{ arrowList }}"
82
+ title =" {{ promptsTitle }}"
83
83
/>
84
84
```
85
85
@@ -118,9 +118,9 @@ Page({
118
118
119
119
``` xml
120
120
<ant-prompts
121
- list =" {{ styleList }}"
121
+ items =" {{ styleList }}"
122
122
className =" customizeStyle"
123
- promptsTitle =" {{ promptsTitle }}"
123
+ title =" {{ promptsTitle }}"
124
124
/>
125
125
```
126
126
@@ -136,7 +136,7 @@ Page({
136
136
### Custom Prompt Title
137
137
138
138
``` xml
139
- <ant-prompts list =" {{ arrowList }}" >
139
+ <ant-prompts items =" {{ arrowList }}" >
140
140
<view slot =" prompts-title" class =" customize-prompts-title" >
141
141
Custom prompt title:
142
142
</view >
@@ -146,7 +146,7 @@ Page({
146
146
### Custom Prompt Item
147
147
148
148
``` xml
149
- <ant-prompts list =" {{ baseList }}" >
149
+ <ant-prompts items =" {{ baseList }}" >
150
150
<view slot =" prompts-item" slot-scope =" props" class =" customize-prompts-item" >
151
151
Custom prompt items :{{ props.item.title}}
152
152
</view >
@@ -157,19 +157,19 @@ Page({
157
157
158
158
``` xml
159
159
<ant-prompts
160
- promptsTitle =" 超长滑动"
161
- list =" {{ horizontalList }}"
160
+ title =" 超长滑动"
161
+ items =" {{ horizontalList }}"
162
162
vertical =" {{false}}"
163
163
/>
164
164
<ant-prompts
165
- promptsTitle =" 超长换行"
166
- list =" {{ horizontalList }}"
165
+ title =" 超长换行"
166
+ items =" {{ horizontalList }}"
167
167
vertical =" {{false}}"
168
168
wrap
169
169
/>
170
170
<ant-prompts
171
- promptsTitle =" 自定义"
172
- list =" {{ horizontalList }}"
171
+ title =" 自定义"
172
+ items =" {{ horizontalList }}"
173
173
vertical =" {{false}}"
174
174
wrap
175
175
>
@@ -190,8 +190,8 @@ The following table describes the API properties for Prompts components:
190
190
| Property | Description | Type | Default Value |
191
191
| ---------------------- | -------------------- | --------------------------------------------------------- | ------ |
192
192
| className | Class Name | string | - |
193
- | list | Prompt List | [ PromptsItem] ( #promptsitem ) [ ] | - |
194
- | promptsTitle | Prompt Title | string | - |
193
+ | items | Prompt Items | [ PromptsItem] ( #promptsitem ) [ ] | - |
194
+ | title | Prompt Title | string | - |
195
195
| vertical | Under horizontal layout, automatic line wrap | boolean | true |
196
196
| wrap | Class Name | boolean | false |
197
197
| #if ALIPAY onItemTap | Prompt for click callback | (item: [ PromptsItem] ( #promptsitem ) ,index: number ) => void; | - |
0 commit comments