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
| <template>
| <!-- <el-row>-->
| <!-- <el-col :span="24" v-for="(item, key) in snList" :key="'key'+key">-->
| <!-- <ez-video-item :width="width" :height="height" :sn="item"></ez-video-item>-->
| <!-- </el-col>-->
| <!-- </el-row>-->
|
| <el-carousel :autoplay="false" trigger="click" indicator-position="none" :interval="0" height="400px">
| <el-carousel-item v-for="(item, key) in snList" :key="'key'+key">
| <ez-video-item :width="width" :height="height" :sn="item"></ez-video-item>
| </el-carousel-item>
| </el-carousel>
| </template>
|
| <script>
| import ezVideoItem from "@/components/ezVideoItem.vue";
|
| export default {
| name: "ezVideo",
| player: "",
| components: {
| ezVideoItem
| },
| props: {
| type: {
| type: String,
| default: "standard",
| },
| width: {
| type: Number,
| default: 600,
| },
| height: {
| type: Number,
| default: 400,
| },
| sn: {
| type: String,
| default: "",
| },
| },
| data() {
| return {}
| },
| computed: {
| snList() {
| return this.sn.split(",");
| }
| }
| };
| </script>
|
| <style scoped lang="less">
| .ez-open {
| position: relative;
| }
| </style>
|
|