UNPKG

framework7-vue

Version:

Build full featured iOS & Android apps using Framework7 & Vue

39 lines (36 loc) 793 B
import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __vueComponentProps from '../runtime-helpers/vue-component-props.js'; export default { name: 'f7-views', props: Object.assign({ id: [String, Number], tabs: Boolean }, Mixins.colorProps), render() { const _h = this.$createElement; const self = this; const props = self.props; const { className, id, style, tabs } = props; const classes = Utils.classNames(className, 'views', { tabs }, Mixins.colorClasses(props)); return _h('div', { style: style, class: classes, attrs: { id: id } }, [this.$slots['default']]); }, computed: { props() { return __vueComponentProps(this); } } };