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:
Oliver Mak 2024-07-28 20:08:54 +08:00 committed by GitHub
parent ce0220612e
commit 9fe6eab4c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>