From acba45fed5adf8d6a21204150efabfbfbddd0f2c Mon Sep 17 00:00:00 2001 From: zhigang.li Date: Fri, 19 Jan 2018 15:56:57 +0800 Subject: [PATCH] move computed value parentSubmenuNum from .vue to mixin.js --- src/components/menu/menu-item.vue | 8 +++----- src/components/menu/mixin.js | 8 ++++++++ src/components/menu/submenu.vue | 8 +++----- 3 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 src/components/menu/mixin.js diff --git a/src/components/menu/menu-item.vue b/src/components/menu/menu-item.vue index 086b8d0..d4fdce9 100644 --- a/src/components/menu/menu-item.vue +++ b/src/components/menu/menu-item.vue @@ -3,12 +3,13 @@