2020-08-24 19:50:03 +00:00
|
|
|
import Vue from 'vue'
|
|
|
|
import FtListVideo from '../ft-list-video/ft-list-video.vue'
|
|
|
|
import FtListChannel from '../ft-list-channel/ft-list-channel.vue'
|
|
|
|
import FtListPlaylist from '../ft-list-playlist/ft-list-playlist.vue'
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
name: 'FtListLazyWrapper',
|
|
|
|
components: {
|
|
|
|
'ft-list-video': FtListVideo,
|
|
|
|
'ft-list-channel': FtListChannel,
|
|
|
|
'ft-list-playlist': FtListPlaylist
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
data: {
|
|
|
|
type: Object,
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
appearance: {
|
|
|
|
type: String,
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
firstScreen: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true
|
2020-08-25 18:13:25 +00:00
|
|
|
},
|
|
|
|
layout: {
|
|
|
|
type: String,
|
|
|
|
default: 'grid'
|
2020-08-24 19:50:03 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
data: function () {
|
|
|
|
return {
|
|
|
|
visible: this.firstScreen
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
onVisibilityChanged: function (visible) {
|
|
|
|
this.visible = visible
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|