File tree 20 files changed +412
-79
lines changed
20 files changed +412
-79
lines changed Original file line number Diff line number Diff line change
1
+ <view class =" navigation-bar" />
2
+
1
3
<view >button page</view >
2
- <copilot-button />
4
+ <ant- copilot-button />
Original file line number Diff line number Diff line change 1
1
{
2
2
/// #if WECHAT
3
- "navigationBarTitleText" : "" ,
3
+ "navigationBarTitleText" : "Copilotbutton " ,
4
4
/// #endif
5
5
6
6
/// #if ALIPAY
7
- "defaultTitle" : "" ,
7
+ "defaultTitle" : "Copilotbutton" ,
8
+ "transparentTitle" : "auto" ,
9
+ "titlePenetrate" : "YES" ,
8
10
/// #endif
9
11
10
12
"usingComponents" : {
11
- "copilot-button" : "../../../src/Copilotbutton/index"
13
+ "ant- copilot-button" : "../../../src/Copilotbutton/index"
12
14
} ,
13
15
"transparentTitle" : "always"
14
16
}
Original file line number Diff line number Diff line change 1
1
<view class =" navigation-bar" />
2
2
3
3
<ant-container title =" 基础用法" >
4
- <prompts
5
- list =" {{ baseList }}"
4
+ <ant- prompts
5
+ list =" {{ baseList }}"
6
6
promptsTitle =" {{ promptsTitle }}"
7
7
onTapPromptsItem =" onTapPromptsItem" />
8
8
</ant-container >
9
9
10
10
<ant-container title =" 有箭头" >
11
- <prompts
12
- list =" {{ arrowList }}"
11
+ <ant- prompts
12
+ list =" {{ arrowList }}"
13
13
promptsTitle =" {{ promptsTitle }}"
14
14
onTapPromptsItem =" onTapPromptsItem" />
15
15
</ant-container >
16
16
17
17
<ant-container title =" 样式覆盖" >
18
- <prompts
19
- list =" {{ styleList }}"
18
+ <ant- prompts
19
+ list =" {{ styleList }}"
20
20
className =" customizeStyle"
21
21
promptsTitle =" {{ promptsTitle }}"
22
22
onTapPromptsItem =" onTapPromptsItem" />
23
23
</ant-container >
24
24
25
25
<ant-container title =" 自定义提示标题" >
26
- <prompts
27
- list =" {{ arrowList }}"
26
+ <ant- prompts
27
+ list =" {{ arrowList }}"
28
28
onTapPromptsItem =" onTapPromptsItem" >
29
29
<view slot =" prompts-title" class =" customize-prompts-title" >
30
30
自定义提示标题:
31
31
</view >
32
- </prompts >
32
+ </ant- prompts >
33
33
</ant-container >
34
34
35
35
<ant-container title =" 自定义提示项" >
36
- <prompts
37
- list =" {{ baseList }}"
36
+ <ant- prompts
37
+ list =" {{ baseList }}"
38
38
onTapPromptsItem =" onTapPromptsItem" >
39
39
<view slot =" prompts-item" slot-scope =" props" class =" customize-prompts-item" >
40
40
自定义提示项:{{ props.item.title }}
41
41
</view >
42
- </prompts >
42
+ </ant- prompts >
43
43
</ant-container >
44
44
Original file line number Diff line number Diff line change 1
1
{
2
2
/// #if WECHAT
3
- "navigationBarTitleText" : "" ,
3
+ "navigationBarTitleText" : "Prompts " ,
4
4
/// #endif
5
5
6
6
/// #if ALIPAY
7
- "defaultTitle" : "Prompts 组件" ,
7
+ "defaultTitle" : "Prompts" ,
8
+ "transparentTitle" : "auto" ,
9
+ "titlePenetrate" : "YES" ,
8
10
/// #endif
9
11
10
12
"usingComponents" : {
11
13
"ant-container" : "../../../src/Container/index" ,
12
- "prompts" : "../../../src/Prompts/index"
13
- } ,
14
- "transparentTitle" : "always"
14
+ "ant-prompts" : "../../../src/Prompts/index"
15
+ }
15
16
}
Original file line number Diff line number Diff line change
1
+ <view class =" navigation-bar" />
2
+
3
+ <ant-container title =" 基础用法" >
4
+ <ant-suggestion
5
+ items =" {{items1}}"
6
+ onSelect =" handleSelect"
7
+ />
8
+ </ant-container >
9
+
10
+ <ant-container title =" 支持 ant-icon" >
11
+ <ant-suggestion
12
+ items =" {{items2}}"
13
+ onSelect =" handleSelect"
14
+ />
15
+ </ant-container >
16
+
17
+ <!-- #if ALIPAY -->
18
+ <ant-container title =" 插槽" >
19
+ <ant-suggestion
20
+ items =" {{items2}}"
21
+ onSelect =" handleSelect"
22
+ >
23
+ <view slot-scope =" prop" a : if =" {{prop.index === 0}}" >
24
+ <ant-icon type =" PictureOutline" />
25
+ </view >
26
+ <view slot-scope =" prop" a : if =" {{prop.item.value === 'suggestion'}}" >
27
+ <ant-icon type =" VideoOutline" />
28
+ </view >
29
+ </ant-suggestion >
30
+ </ant-container >
31
+ <!-- #endif -->
32
+
Original file line number Diff line number Diff line change
1
+ {
2
+ /// #if WECHAT
3
+ "navigationBarTitleText" : "Suggestion" ,
4
+ /// #endif
5
+
6
+ /// #if ALIPAY
7
+ "defaultTitle" : "Suggestion" ,
8
+ "transparentTitle" : "auto" ,
9
+ "titlePenetrate" : "YES" ,
10
+ /// #endif
11
+
12
+ "usingComponents" : {
13
+ "ant-suggestion" : "../../../src/Suggestion/index" ,
14
+ "ant-container" : "../../../src/Container/index" ,
15
+ "ant-icon" : "../../../src/Icon/index"
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ Page ( {
2
+ data : {
3
+ items1 : [
4
+ {
5
+ icon : 'https://mdn.alipayobjects.com/huamei_2jrq4g/afts/img/A*AdC9RZfDwicAAAAAAAAAAAAADtF8AQ/original' ,
6
+ label : '我的日程' ,
7
+ value : 'schedule' ,
8
+ } ,
9
+ {
10
+ icon : 'https://mdn.alipayobjects.com/huamei_2jrq4g/afts/img/A*Mbi1R5eGTecAAAAAAAAAAAAADtF8AQ/original' ,
11
+ label : '快捷功能' ,
12
+ value : 'suggestion' ,
13
+ } ,
14
+ {
15
+ icon : 'https://mdn.alipayobjects.com/huamei_2jrq4g/afts/img/A*WqBJSZEpPbwAAAAAAAAAAAAADtF8AQ/original' ,
16
+ label : '诊断分析' ,
17
+ value : 'analyze' ,
18
+ } ,
19
+ {
20
+ icon : 'https://mdn.alipayobjects.com/huamei_2jrq4g/afts/img/A*fVpIQZbRi4IAAAAAAAAAAAAADtF8AQ/original' ,
21
+ label : '更多' ,
22
+ value : 'more' ,
23
+ } ,
24
+ ] ,
25
+ items2 : [
26
+ {
27
+ icon : 'UserOutline' ,
28
+ label : '我的日程' ,
29
+ value : 'schedule' ,
30
+ } ,
31
+ {
32
+ icon : 'UnorderedListOutline' ,
33
+ label : '快捷功能' ,
34
+ value : 'suggestion' ,
35
+ } ,
36
+ {
37
+ icon : 'HistogramOutline' ,
38
+ label : '诊断分析' ,
39
+ value : 'analyze' ,
40
+ } ,
41
+ {
42
+ icon : 'MoreOutline' ,
43
+ label : '更多' ,
44
+ value : 'SendOutline' ,
45
+ } ,
46
+ ] ,
47
+ } ,
48
+ handleSelect ( item ) {
49
+ /// #if ALIPAY
50
+ console . log ( item ) ;
51
+ my . showToast ( { content : item . value } ) ;
52
+ /// #endif
53
+ } ,
54
+ } ) ;
You can’t perform that action at this time.
0 commit comments