新年的第一次提交

This commit is contained in:
就眠儀式
2022-02-01 07:23:20 +08:00
parent 5fe02df5db
commit 126d20bc3f
77 changed files with 1393 additions and 1297 deletions

View File

@@ -157,15 +157,15 @@
}
.layui-nav-tree .layui-nav-item {
display: block;
width: 100%;
display: block;
line-height: 42px;
}
.layui-nav-tree .layui-nav-item > a {
position: relative;
height: 40px;
line-height: 40px;
position: relative;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
@@ -208,11 +208,11 @@
}
.layui-nav-tree .layui-nav-child {
position: relative;
z-index: 0;
top: 0;
z-index: 0;
border: none;
box-shadow: none;
position: relative;
}
.layui-nav-tree .layui-nav-child dd {

View File

@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
app.component(Component.name || "LayMenu", Component);
app.component(Component.name, Component);
};
export default Component as IDefineComponent;
export default Component;

View File

@@ -1,10 +1,10 @@
<template>
<ul class="layui-nav" :class="[level? 'level':'',inverted ? 'inverted':'',tree ? 'layui-nav-tree' : '', theme === 'dark' ? 'layui-nav-dark':'layui-nav-light' ]">
<slot></slot>
</ul>
</template>
<script lang="ts">
export default {
name: "LayMenu"
}
</script>
<script setup name="LayMenu" lang="ts">
<script setup lang="ts">
import { computed, defineProps, provide } from "vue";
import "./index.less";
@@ -52,3 +52,9 @@ provide("isTree", isTree);
provide("selectedKey", selectedKey);
provide("openKeys", openKeys);
</script>
<template>
<ul class="layui-nav" :class="[level? 'level':'',inverted ? 'inverted':'',tree ? 'layui-nav-tree' : '', theme === 'dark' ? 'layui-nav-dark':'layui-nav-light' ]">
<slot></slot>
</ul>
</template>