From 5cb0ca39dd0d861290a076ea9b793f45d4a0d01b Mon Sep 17 00:00:00 2001 From: Rock Chen Date: Thu, 16 Jan 2025 13:12:24 +0000 Subject: [PATCH] feat: add draggable tab bar items and refactor tab rendering --- src/layouts/components/index.ts | 4 +- src/layouts/components/tab/TabBar.vue | 85 +++++++++++------------ src/layouts/components/tab/TabBarItem.vue | 41 +++++++++++ 3 files changed, 84 insertions(+), 46 deletions(-) create mode 100644 src/layouts/components/tab/TabBarItem.vue diff --git a/src/layouts/components/index.ts b/src/layouts/components/index.ts index e60cf55..6276aec 100644 --- a/src/layouts/components/index.ts +++ b/src/layouts/components/index.ts @@ -1,17 +1,17 @@ import BackTop from './common/BackTop.vue' import Setting from './common/Setting.vue' - import SettingDrawer from './common/SettingDrawer.vue' + import Breadcrumb from './header/Breadcrumb.vue' import CollapaseButton from './header/CollapaseButton.vue' import FullScreen from './header/FullScreen.vue' import Notices from './header/Notices.vue' import Search from './header/Search.vue' - import UserCenter from './header/UserCenter.vue' import Logo from './sider/Logo.vue' import Menu from './sider/Menu.vue' + import TabBar from './tab/TabBar.vue' export { diff --git a/src/layouts/components/tab/TabBar.vue b/src/layouts/components/tab/TabBar.vue index 81a77e1..6892848 100644 --- a/src/layouts/components/tab/TabBar.vue +++ b/src/layouts/components/tab/TabBar.vue @@ -1,6 +1,7 @@ + + diff --git a/src/layouts/components/tab/TabBarItem.vue b/src/layouts/components/tab/TabBarItem.vue new file mode 100644 index 0000000..a43d640 --- /dev/null +++ b/src/layouts/components/tab/TabBarItem.vue @@ -0,0 +1,41 @@ + + + \ No newline at end of file