Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(theme): 修复了menu组件覆盖文档的错误 #537

Merged
merged 9 commits into from
Apr 20, 2022
3 changes: 0 additions & 3 deletions packages/devui-vue/devui/menu/src/components/menu-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ export default defineComponent({
};
const icons = <span class="devui-menu-icon">{ctx.slots.icon?.()}</span>;
const menuItems = ref(null);
// watchEffect(()=>{
// pushItem({el: menuItems.value as HTMLElement | null});
// },{flush:'post'});
watch(disabled, ()=> {classObject['devui-menu-item-select'] = false;});
watch(defaultSelectKey, (n)=>{
isSelect.value = useInitSelect(n,key,multiple,disabled);
Expand Down
12 changes: 10 additions & 2 deletions packages/devui-vue/devui/menu/src/styles/clear.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
a {
text-decoration: none;
.devui-menu-vertical,
.devui-menu-horizontal {
a {
text-decoration: none;
}

ul,
li {
list-style: none;
}
}