mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
44 lines
805 B
Vue
44 lines
805 B
Vue
<template>
|
|
<route-menu
|
|
:menu="props.menu"
|
|
:width="props.width"
|
|
:type="props.type"
|
|
:mode="props.mode"
|
|
:auto-close="props.autoClose"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
mode: {
|
|
type: String,
|
|
default: 'vertical' // 垂直模式
|
|
},
|
|
width: {
|
|
type: [String, Number],
|
|
default: undefined
|
|
},
|
|
menu: {
|
|
type: Array,
|
|
default() {
|
|
return [];
|
|
}
|
|
},
|
|
type: {
|
|
type: String,
|
|
default: 'light'
|
|
},
|
|
autoClose: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
},
|
|
setup(props) {
|
|
return {
|
|
props
|
|
};
|
|
}
|
|
};
|
|
</script>
|