docs: 更新文档
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
<template>
|
||||
<li>
|
||||
<div class="layui-menu-body-title">
|
||||
<div class="layui-menu-body-title" @click="click">
|
||||
<slot />
|
||||
</div>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<script setup name="LayDropdownItem" lang="ts"></script>
|
||||
<script setup name="LayDropdownItem" lang="ts">
|
||||
import { inject, Ref } from "vue";
|
||||
|
||||
const openState:Ref<boolean> = inject('openState') as Ref<boolean>
|
||||
|
||||
const click = function () {
|
||||
openState.value = false
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user