This commit is contained in:
syuilo 2018-09-16 04:31:55 +09:00
parent dda2967e2d
commit 19152c28cb
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
5 changed files with 29 additions and 22 deletions

View File

@ -32,11 +32,12 @@ export default Vue.extend({
media: {
type: Object,
required: true
},
hide: {
type: Boolean,
default: true
}
},
data() {
return {
hide: true
};
}
})
</script>

View File

@ -27,12 +27,13 @@ export default Vue.extend({
},
raw: {
default: false
},
hide: {
type: Boolean,
default: true
}
},
data() {
return {
hide: true
};
},
computed: {
style(): any {
return {

View File

@ -36,12 +36,13 @@ export default Vue.extend({
},
inlinePlayable: {
default: false
},
hide: {
type: Boolean,
default: true
}
},
data() {
return {
hide: true
};
},
computed: {
imageStyle(): any {
return {

View File

@ -19,12 +19,13 @@ export default Vue.extend({
},
raw: {
default: false
},
hide: {
type: Boolean,
default: true
}
},
data() {
return {
hide: true
};
}
computed: {
style(): any {
let url = `url(${this.image.thumbnailUrl})`;

View File

@ -15,25 +15,28 @@
</template>
<script lang="ts">
import Vue from 'vue'
import Vue from 'vue';
export default Vue.extend({
props: {
video: {
type: Object,
required: true
},
hide: {
type: Boolean,
default: true
}
},
data() {
return {
hide: true
};
},
computed: {
imageStyle(): any {
return {
'background-image': `url(${this.video.url})`
};
}
},})
}
});
</script>
<style lang="stylus" scoped>