commit | author | age
|
6461f5
|
1 |
<template> |
I |
2 |
<!-- <a-tabs :centered="true"> |
|
3 |
<a-tab-pane key="1" tab="月"> |
|
4 |
<videoList v-on="$listeners"></videoList> |
|
5 |
</a-tab-pane> |
|
6 |
<a-tab-pane key="2" tab="台"> |
|
7 |
|
|
8 |
|
|
9 |
</a-tab-pane> |
|
10 |
</a-tabs> --> |
|
11 |
|
|
12 |
|
|
13 |
<div> |
|
14 |
<!-- <viewer :options="options" :images="images" @inited="inited" class="viewer" ref="viewer"> |
|
15 |
<template scope="scope"> |
|
16 |
<img v-for="src in scope.images" :src="src" :key="src"> |
|
17 |
{{scope.options}} |
|
18 |
</template> |
|
19 |
</viewer> |
|
20 |
<button type="button" @click="show">Show</button> --> |
|
21 |
11 |
|
22 |
</div> |
|
23 |
</template> |
|
24 |
|
|
25 |
<script> |
|
26 |
// import videoList from "../mini/box14-video.vue" |
|
27 |
// import 'viewerjs/dist/viewer.css' |
|
28 |
// // import Viewer from "v-viewer/src/component.vue" |
|
29 |
// import Viewer from "v-viewer/dist/v-viewer.min.js" |
|
30 |
|
|
31 |
export default { |
|
32 |
// components: { |
|
33 |
// videoList, |
|
34 |
// Viewer |
|
35 |
// }, |
|
36 |
// data() { |
|
37 |
// images: ['1.jpg', '2.jpg'] |
|
38 |
// }, |
|
39 |
// methods: { |
|
40 |
// inited(viewer) { |
|
41 |
// this.$viewer = viewer |
|
42 |
// }, |
|
43 |
// show() { |
|
44 |
// //调用$viewer的show方法,默认显示第一张图片 |
|
45 |
// this.$viewer.show() |
|
46 |
// //如果需要指定显示某一张图片使用view方法,index是指定的那张图片所在数组的位置索引 |
|
47 |
// //this.$viewer.view(index) |
|
48 |
// } |
|
49 |
// } |
|
50 |
} |
|
51 |
</script> |
|
52 |
|
|
53 |
<style> |
|
54 |
</style> |