This repository was archived by the owner on Oct 27, 2021. It is now read-only.
Commit 944a7c0 1 parent 4a83749 commit 944a7c0 Copy full SHA for 944a7c0
File tree 7 files changed +45
-21
lines changed
7 files changed +45
-21
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ export default {
9
9
} ,
10
10
} ,
11
11
render ( ) {
12
+ console . log ( 'this.$slots.default' , this . $slots . default )
12
13
const rootClass = classNames ( 'at-action-sheet__body' , this . className )
13
- return < view className = { rootClass } > { this . $slots . default } </ view >
14
+ return < view class = { rootClass } > { this . $slots . default } </ view >
14
15
} ,
15
16
}
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ export default {
21
21
const rootClass = classNames ( 'at-action-sheet__item' , this . className )
22
22
23
23
return (
24
- < view className = { rootClass } onTap = { this . handleClick } >
25
- { this . slots . default }
24
+ < view class = { rootClass } onTap = { this . handleClick } >
25
+ { this . $ slots. default }
26
26
</ view >
27
27
)
28
28
} ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export default {
21
21
const rootClass = classNames ( 'at-action-sheet__footer' , this . className )
22
22
23
23
return (
24
- < view onTap = { this . handleClick } className = { rootClass } >
24
+ < view onTap = { this . handleClick } class = { rootClass } >
25
25
{ this . $slots . default }
26
26
</ view >
27
27
)
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ export default {
11
11
render ( ) {
12
12
const rootClass = classNames ( 'at-action-sheet__header' , this . className )
13
13
14
- return < view className = { rootClass } > { this . $slots . default } </ view >
14
+ return < view class = { rootClass } > { this . $slots . default } </ view >
15
15
} ,
16
16
}
Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ export default {
71
71
)
72
72
73
73
return (
74
- < view className = { rootClass } onTouchMove = { this . handleTouchMove } >
75
- < view onTap = { this . close } className = "at-action-sheet__overlay" />
76
- < view className = "at-action-sheet__container" >
74
+ < view class = { rootClass } onTouchMove = { this . handleTouchMove } >
75
+ < view onTap = { this . close } class = "at-action-sheet__overlay" />
76
+ < view class = "at-action-sheet__container" >
77
77
{ title && < ActionSheetHeader > { title } </ ActionSheetHeader > }
78
78
< ActionSheetBody > { this . $slots . default } </ ActionSheetBody >
79
79
{ cancelText && (
Original file line number Diff line number Diff line change
1
+ import ActionSheet from '../../components/action-sheet/index'
2
+ import ActionSheetItem from '../../components/action-sheet/body/item/index'
3
+ export default {
4
+ name : 'Demo' ,
5
+ components : {
6
+ ActionSheet,
7
+ ActionSheetItem,
8
+ } ,
9
+ render ( ) {
10
+ return (
11
+ < view >
12
+ index page!
13
+ < ActionSheet isOpened >
14
+ < ActionSheetItem > 按钮一</ ActionSheetItem >
15
+ < ActionSheetItem > 按钮二</ ActionSheetItem >
16
+ </ ActionSheet >
17
+ </ view >
18
+ )
19
+ } ,
20
+ }
Original file line number Diff line number Diff line change 2
2
<view
3
3
class =" index"
4
4
>
5
+ <ActionSheet is-opened >
6
+ <ActionSheetItem >
7
+ 按钮一
8
+ </ActionSheetItem >
9
+ <ActionSheetItem >
10
+ 按钮二
11
+ </ActionSheetItem >
12
+ </ActionSheet >
5
13
<Badge dot >
6
14
<Icon
7
15
class-name =" at-icon at-icon-settings"
8
16
size =" 30"
9
17
color =" #F00"
10
18
/>
11
19
</Badge >
12
- <!-- < Button
20
+ <Button
13
21
loading
14
22
type =" primary"
15
23
:on-click =" onClick"
16
24
>
17
25
hello
18
- </Button> -->
26
+ </Button >
19
27
<Fab >fab</Fab >
20
28
<Avatar text =" 111" />
21
- <Countdown
22
- is-card
23
- is-show-day
24
- :format =" { hours: ':', minutes: ':', seconds: '' }"
25
- :day =" 2"
26
- :hours =" 1"
27
- :minutes =" 1"
28
- :seconds =" 10"
29
- />
30
29
<Curtain
31
30
:is-opened =" show"
32
31
:on-close =" changeShow"
@@ -109,13 +108,15 @@ import Badge from '../../components/badge/index'
109
108
import Icon from ' ../../components/icon/Icon.vue'
110
109
import Fab from ' ../../components/fab/Fab.jsx'
111
110
import Avatar from ' ../../components/avatar/index.jsx'
112
- import Countdown from ' ../../components/countdown/index.jsx'
111
+ // import Countdown from '../../components/countdown/index.jsx'
113
112
import Curtain from ' ../../components/curtain/index.jsx'
114
113
// import LoadMore from '../../components/load-more/index.jsx'
115
114
import Noticebar from ' ../../components/noticebar/index.jsx'
116
115
import Tag from ' ../../components/tag/index.jsx'
117
116
import Timeline from ' ../../components/timeline/index.jsx'
118
117
import Divider from ' ../../components/divider/index.jsx'
118
+ import ActionSheet from ' ../../components/action-sheet/index.jsx'
119
+ import ActionSheetItem from ' ../../components/action-sheet/body/item/index.jsx'
119
120
120
121
export default {
121
122
name: ' Index' ,
@@ -125,13 +126,15 @@ export default {
125
126
Fab,
126
127
Avatar,
127
128
Badge,
128
- Countdown,
129
+ // Countdown,
129
130
Curtain,
130
131
// LoadMore,
131
132
Noticebar,
132
133
Tag,
133
134
Timeline,
134
135
Divider,
136
+ ActionSheet,
137
+ ActionSheetItem,
135
138
},
136
139
data () {
137
140
return {
You can’t perform that action at this time.
0 commit comments