forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQList.js
More file actions
43 lines (41 loc) · 944 Bytes
/
QList.js
File metadata and controls
43 lines (41 loc) · 944 Bytes
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
export default {
name: 'q-list',
functional: true,
props: {
noBorder: Boolean,
dark: Boolean,
dense: Boolean,
sparse: Boolean,
striped: Boolean,
stripedOdd: Boolean,
separator: Boolean,
insetSeparator: Boolean,
multiline: Boolean,
highlight: Boolean,
link: Boolean
},
render (h, ctx) {
const
data = ctx.data,
prop = ctx.props
data.class = {
'q-list': true,
'no-border': prop.noBorder,
'q-list-dark': prop.dark,
'q-list-dense': prop.dense,
'q-list-sparse': prop.sparse,
'q-list-striped': prop.striped,
'q-list-striped-odd': prop.stripedOdd,
'q-list-separator': prop.separator,
'q-list-inset-separator': prop.insetSeparator,
'q-list-multiline': prop.multiline,
'q-list-highlight': prop.highlight,
'q-list-link': prop.link
}
return h(
'div',
data,
ctx.children
)
}
}