diff --git a/package/component/src/component/menu/index.less b/package/component/src/component/menu/index.less index 5d820b81..26158fdd 100644 --- a/package/component/src/component/menu/index.less +++ b/package/component/src/component/menu/index.less @@ -308,9 +308,4 @@ .layui-nav-child { background-color: transparent; } -} - -.layui-nav-child-spacing .layui-nav-item .layui-nav-child { - padding-left: 10px; - box-sizing: border-box; -} +} \ No newline at end of file diff --git a/package/component/src/component/menu/index.vue b/package/component/src/component/menu/index.vue index e97b1c20..c9644b5e 100644 --- a/package/component/src/component/menu/index.vue +++ b/package/component/src/component/menu/index.vue @@ -12,7 +12,6 @@ import { Ref, ref, watch, - WritableComputedRef, } from "vue"; import "./index.less"; @@ -25,7 +24,6 @@ export interface LayMenuProps { level?: boolean | string; collapse?: boolean | string; collapseTransition?: boolean | string; - childSpacing?: boolean; } const emit = defineEmits([ @@ -43,8 +41,7 @@ const props = withDefaults(defineProps(), { inverted: false, level: true, collapse: false, - collapseTransition: true, - childSpacing: false, + collapseTransition: true }); const isTree: ComputedRef = computed(() => props.tree); @@ -102,8 +99,7 @@ provide("isCollapseTransition", isCollapseTransition); inverted ? 'inverted' : '', tree ? 'layui-nav-tree' : '', theme === 'dark' ? 'layui-nav-dark' : 'layui-nav-light', - collapse ? 'layui-nav-collapse' : '', - childSpacing ? 'layui-nav-child-spacing' : '', + collapse ? 'layui-nav-collapse' : '' ]" > diff --git a/package/component/src/component/subMenu/index.vue b/package/component/src/component/subMenu/index.vue index de5af1b7..ec5e0ff0 100644 --- a/package/component/src/component/subMenu/index.vue +++ b/package/component/src/component/subMenu/index.vue @@ -89,14 +89,17 @@ onBeforeUnmount(() => window.removeEventListener("resize", setPosition));