mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
docs: [menu] fix invalid HTML code in the example (#17594)
* docs(components): [menu] Fix invalid HTML code * docs(components): [menu] No need extra class for CSS
This commit is contained in:
parent
ce0220612e
commit
9fe6eab4c7
@ -13,7 +13,6 @@
|
||||
alt="Element logo"
|
||||
/>
|
||||
</el-menu-item>
|
||||
<div class="flex-grow" />
|
||||
<el-menu-item index="1">Processing Center</el-menu-item>
|
||||
<el-sub-menu index="2">
|
||||
<template #title>Workspace</template>
|
||||
@ -40,7 +39,7 @@ const handleSelect = (key: string, keyPath: string[]) => {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.flex-grow {
|
||||
flex-grow: 1;
|
||||
.el-menu--horizontal > .el-menu-item:nth-child(1) {
|
||||
margin-right: auto;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user