This repository was archived by the owner on Nov 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathImageListDemo.vue
75 lines (73 loc) · 2.58 KB
/
ImageListDemo.vue
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
<template>
<div>
<ComponentSection>
<m-image-list :column="radioProps.findIndex(i => i.value)" :masonry="checkboxProps[1].value"
:textProtection="checkboxProps[0].value" class="width-adjust">
<m-image-list-item>
<img :src="$withBase('/assets/images/cat.jpg')" slot="image">
Cat
</m-image-list-item>
<m-image-list-item>
<img :src="$withBase('/assets/images/cat.jpg')" slot="image">
Cat
</m-image-list-item>
<m-image-list-item>
<img :src="$withBase('/assets/images/cat.jpg')" slot="image">
Cat
</m-image-list-item>
<m-image-list-item>
<img :src="$withBase('/assets/images/cat.jpg')" slot="image">
Cat
</m-image-list-item>
<m-image-list-item>
<img :src="$withBase('/assets/images/cat.jpg')" slot="image">
Cat
</m-image-list-item>
<m-image-list-item>
<img :src="$withBase('/assets/images/cat.jpg')" slot="image">
Cat
</m-image-list-item>
<m-image-list-item>
<img :src="$withBase('/assets/images/cat.jpg')" slot="image">
Cat
</m-image-list-item>
</m-image-list>
</ComponentSection>
<ComponentProps
:checkboxProps="checkboxProps"
:radioProps="radioProps"/>
</div>
</template>
<script>
export default {
name: 'ImageListDemo',
data () {
return {
radioProps: [
{ prop: 'no column', value: true },
{ prop: 'column-1', value: false },
{ prop: 'column-2', value: false },
{ prop: 'column-3', value: false },
{ prop: 'column-4', value: false },
{ prop: 'column-5', value: false },
{ prop: 'column-6', value: false },
{ prop: 'column-7', value: false },
{ prop: 'column-8', value: false },
{ prop: 'column-9', value: false },
{ prop: 'column-10', value: false },
{ prop: 'column-11', value: false },
{ prop: 'column-12', value: false },
],
checkboxProps: [
{ prop: 'textProtection', value: false },
{ prop: 'masonry', value: false },
]
}
}
}
</script>
<style scoped>
.width-adjust {
width: 100%;
}
</style>