diff --git a/vue/src/layout/component/Navbar/component/Hamburger.vue b/vue/src/layout/component/Navbar/component/Hamburger.vue index fc879ba..e43d35f 100644 --- a/vue/src/layout/component/Navbar/component/Hamburger.vue +++ b/vue/src/layout/component/Navbar/component/Hamburger.vue @@ -4,10 +4,11 @@ export default { functional: true, - props: {active: Boolean}, + props: {render: Boolean, active: Boolean}, render(h, context) { - const {active} = context.props + const {render, active} = context.props + if (!render) return const className = `navbar-icon el-icon-s-unfold hamburger ${active ? 'is-active' : ''}` return (
diff --git a/vue/src/layout/component/Navbar/index.vue b/vue/src/layout/component/Navbar/index.vue index 7382360..af38833 100644 --- a/vue/src/layout/component/Navbar/index.vue +++ b/vue/src/layout/component/Navbar/index.vue @@ -1,7 +1,7 @@