This commit is contained in:
syuilo 2018-09-16 04:31:55 +09:00
parent 49a2b5efe8
commit 74a040159f
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>