🕛 [修复] menu 组件目录展开

This commit is contained in:
就眠仪式
2021-10-06 19:09:03 +08:00
parent 567cd9b783
commit ed2b2b398e
3 changed files with 27 additions and 9 deletions

View File

@@ -5,10 +5,17 @@
</template>
<script setup name="LayMenu" lang="ts">
import { defineProps } from 'vue'
import { defineProps, provide, ref } from 'vue'
const props =
defineProps<{
tree?: boolean
selectedKeys?: string[]
}>()
const isTree = ref(props.tree)
const selectKeys = ref(props.selectedKeys)
provide("isTree",isTree);
provide("selectKeys",selectKeys)
</script>