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.
 
 
 

17 lines
525 B

import { ref, computed } from "vue";
import { getId } from "../handlers.js";
const html = (v) => { return v[0] };
export default {
props: ['elements', 'type', "withshortkey"],
setup(props) {
return { }
},
template: html`
<nav class="list" :class="{ horizontal: type == 'horizontal', vertical: type != 'horizontal'}">
<component :is="item.component" v-for="(item, index) in elements" v-index :withshortkey="withshortkey" @click="item.onClick" v-bind="item.props">
</component>
</nav>
`
}