You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-csc-ui/src/components/CscPage.vue

50 lines
923 B

<template>
<q-page
v-bind="$attrs"
>
<slot />
</q-page>
</template>
<script>
import platformMixin from '../mixins/platform'
export default {
name: 'CscPage',
mixins: [
platformMixin
],
props: {
title: {
type: String,
default: ''
},
isList: {
type: Boolean,
default: false
}
},
emits: ['content-resized'],
data () {
return {}
},
computed: {
componentClasses () {
const classes = ['csc-page']
if (this.isMobile) {
classes.push('csc-page-mobile')
}
if (this.isList) {
classes.push('csc-page-list')
}
return classes
}
},
methods: {
resizeContent () {
this.emitter.$emit('content-resized')
}
}
}
</script>