rename index.css to index.less
This commit is contained in:
parent
094dc70887
commit
5c79b2b9ba
@ -36,9 +36,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item">
|
||||||
<a
|
<a href="https://gitee.com/layui-vue/layui-vue/issues">
|
||||||
href="https://gitee.com/layui-vue/layui-vue/issues"
|
|
||||||
>
|
|
||||||
<lay-icon type="layui-icon-chat" size="15px"></lay-icon>
|
<lay-icon type="layui-icon-chat" size="15px"></lay-icon>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@ -51,45 +49,47 @@
|
|||||||
</lay-layout>
|
</lay-layout>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { ref, watch } from 'vue'
|
import { ref, watch } from "vue";
|
||||||
import { useRouter, useRoute } from 'vue-router'
|
import { useRouter, useRoute } from "vue-router";
|
||||||
import menu from '../view/utils/menus'
|
import menu from "../view/utils/menus";
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
const route = useRoute()
|
const route = useRoute();
|
||||||
const router = useRouter()
|
const router = useRouter();
|
||||||
const currentPath = ref('/zh-CN/guide')
|
const currentPath = ref("/zh-CN/guide");
|
||||||
|
const theme = ref(false)
|
||||||
|
|
||||||
const menus = []
|
const menus = [];
|
||||||
|
|
||||||
menu.forEach(m => {
|
menu.forEach((m) => {
|
||||||
m.children.forEach(c => {
|
m.children.forEach((c) => {
|
||||||
menus.push(c);
|
menus.push(c);
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => route.path,
|
() => route.path,
|
||||||
(val) => {
|
(val) => {
|
||||||
currentPath.value = val
|
currentPath.value = val;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
immediate: true,
|
immediate: true,
|
||||||
deep: true,
|
deep: true,
|
||||||
}
|
}
|
||||||
)
|
);
|
||||||
|
|
||||||
const handleClick = function (menu) {
|
const handleClick = function (menu) {
|
||||||
router.push(menu.path)
|
router.push(menu.path);
|
||||||
}
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
menus,
|
menus,
|
||||||
|
theme,
|
||||||
currentPath,
|
currentPath,
|
||||||
handleClick,
|
handleClick,
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.layui-layout-document > .layui-header {
|
.layui-layout-document > .layui-header {
|
||||||
|
@ -73,6 +73,7 @@
|
|||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"lib",
|
"lib",
|
||||||
|
"src",
|
||||||
"types"
|
"types"
|
||||||
],
|
],
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { App } from "vue";
|
import type { App } from "vue";
|
||||||
import type { IDefineComponent, InstallOptions } from "./component/type/index";
|
import type { IDefineComponent, InstallOptions } from "./component/type/index";
|
||||||
|
|
||||||
import "./theme/layui.css";
|
import "./theme/index.less";
|
||||||
import "@layui/layer-vue/lib/index.css";
|
import "@layui/layer-vue/lib/index.css";
|
||||||
import "@layui/icons-vue/lib/index.css";
|
import "@layui/icons-vue/lib/index.css";
|
||||||
import { layer, useLayer } from "@layui/layer-vue";
|
import { layer, useLayer } from "@layui/layer-vue";
|
||||||
|
@ -1186,7 +1186,6 @@ a cite {
|
|||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
min-width: 35px;
|
min-width: 35px;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
margin-top: 8px;
|
|
||||||
border: 1px solid #d2d2d2;
|
border: 1px solid #d2d2d2;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
Loading…
Reference in New Issue
Block a user