📝: 更新 menu 文档
This commit is contained in:
parent
2780799733
commit
56b1dc2109
@ -483,13 +483,13 @@ export default {
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
::: title 层级缩进
|
::: title 扩展图标
|
||||||
:::
|
:::
|
||||||
|
|
||||||
::: demo
|
::: demo
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<lay-menu v-model:selectedKey="selectedKey" v-model:openKeys="openKeys7" :child-spacing="childSpacing" v-model:tree="isTree">
|
<lay-menu v-model:selectedKey="selectedKey" v-model:openKeys="openKeys7" v-model:tree="isTree">
|
||||||
<lay-menu-item id="1">
|
<lay-menu-item id="1">
|
||||||
<router-link to="">
|
<router-link to="">
|
||||||
<lay-icon type="layui-icon-home"></lay-icon>
|
<lay-icon type="layui-icon-home"></lay-icon>
|
||||||
@ -529,15 +529,13 @@ export default {
|
|||||||
setup() {
|
setup() {
|
||||||
|
|
||||||
const isTree = ref(true)
|
const isTree = ref(true)
|
||||||
const selectedKey = ref("5")
|
|
||||||
const openKeys7 = ref(["7"])
|
const openKeys7 = ref(["7"])
|
||||||
const childSpacing = ref(true);
|
const selectedKey = ref("5")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isTree,
|
isTree,
|
||||||
openKeys7,
|
openKeys7,
|
||||||
selectedKey,
|
selectedKey,
|
||||||
childSpacing
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -593,6 +591,7 @@ export default {
|
|||||||
| 插槽 | 描述 | 备注 |
|
| 插槽 | 描述 | 备注 |
|
||||||
| ----- | -------- | ---- |
|
| ----- | -------- | ---- |
|
||||||
| title | 菜单标题 | -- |
|
| title | 菜单标题 | -- |
|
||||||
|
| expandIcon | 扩展图标 | -- |
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user