From eec83c1648f3fb32dd2ffd8c682a7261e5007905 Mon Sep 17 00:00:00 2001 From: Huang <596417202@qq.com> Date: Thu, 1 Dec 2022 17:41:38 +0800 Subject: [PATCH] feat-navbar component --- src/components/Iconify/index.vue | 16 ++++++- src/components/Navbar/index.vue | 78 ++++++++++++++++++++++++++++---- src/pages.json | 3 +- src/pages/index/index.vue | 1 + src/pagesA/list/test2/index.vue | 8 +++- src/pagesB/detail/index.vue | 11 +---- 6 files changed, 94 insertions(+), 23 deletions(-) diff --git a/src/components/Iconify/index.vue b/src/components/Iconify/index.vue index 4570001..26d8fb7 100644 --- a/src/components/Iconify/index.vue +++ b/src/components/Iconify/index.vue @@ -25,9 +25,19 @@ props.color ? { color: props.color } : {}, ); }); + + const emit = defineEmits(['click']); + const onClick = () => { + emit('click'); + }; diff --git a/src/components/Navbar/index.vue b/src/components/Navbar/index.vue index 475b968..cc5ed6d 100644 --- a/src/components/Navbar/index.vue +++ b/src/components/Navbar/index.vue @@ -1,9 +1,15 @@