33 lines
574 B
Vue
Raw Permalink Normal View History

2022-09-08 15:06:44 -04:00
<script>
import Vertical from "./vertical";
import Horizontal from "./horizontal";
export default {
components: { Vertical, Horizontal },
data() {
return {};
},
computed: {
layoutType() {
return this.$root.layout?.type;
}
},
methods: {},
mounted() {
// document.querySelector("html").setAttribute('dir', 'rtl');
}
};
</script>
<template>
<div>
<Vertical v-if="layoutType === 'vertical'">
<slot />
</Vertical>
<Horizontal v-if="layoutType === 'horizontal'">
<slot />
</Horizontal>
</div>
</template>