docs: 更新文档

This commit is contained in:
就眠仪式
2021-10-27 02:04:47 +08:00
parent 401efd527d
commit e6cd15ea05
11 changed files with 200 additions and 42 deletions

View File

@@ -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>