vuetify
Version:
Vue.js 2 Semantic Component Framework
46 lines (39 loc) • 879 B
JavaScript
require('../../stylus/components/_bottom-sheets.styl')
import VDialog from '../VDialog/VDialog'
export default {
name: 'v-bottom-sheet',
props: {
disabled: Boolean,
fullWidth: Boolean,
inset: Boolean,
lazy: Boolean,
maxWidth: {
type: [String, Number],
default: 'auto'
},
persistent: Boolean,
value: null
},
render (h) {
const activator = h('template', {
slot: 'activator'
}, this.$slots.activator)
const contentClass = [
'bottom-sheet',
this.inset ? 'bottom-sheet--inset' : ''
].join(' ')
return h(VDialog, {
attrs: {
...this.$props
},
on: {
...this.$listeners
},
props: {
contentClass: contentClass,
transition: 'bottom-sheet-transition',
value: this.value
}
}, [activator, this.$slots.default])
}
}