From 48aba020870902b410936381366d5faa70a56229 Mon Sep 17 00:00:00 2001 From: 1iyc <5212514+liycone@user.noreply.gitee.com> Date: Fri, 1 Nov 2024 15:25:46 +0800 Subject: [PATCH] =?UTF-8?q?Tab=E7=BB=84=E4=BB=B61.0=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 1iyc <5212514+liycone@user.noreply.gitee.com> --- src/components/TabComponent/index.vue | 197 ++++++++++++++++++++++++++ src/main.js | 3 + src/views/gather/pool/index.vue | 78 ++++++++++ 3 files changed, 278 insertions(+) create mode 100644 src/components/TabComponent/index.vue create mode 100644 src/views/gather/pool/index.vue diff --git a/src/components/TabComponent/index.vue b/src/components/TabComponent/index.vue new file mode 100644 index 0000000..74cb9c4 --- /dev/null +++ b/src/components/TabComponent/index.vue @@ -0,0 +1,197 @@ + + + + + + 新建标签页 + + + + {{ tab.title }} + + + + + + + + + 修改 + 断开 + 这是标签页 {{ tab.title }} 的内容 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main.js b/src/main.js index 13c6cf2..c9f006c 100644 --- a/src/main.js +++ b/src/main.js @@ -37,6 +37,8 @@ import DictTag from '@/components/DictTag' import VueMeta from 'vue-meta' // 字典数据组件 import DictData from '@/components/DictData' +// tab组件 +import TabComponent from '@/components/TabComponent' // 全局方法挂载 Vue.prototype.getDicts = getDicts @@ -57,6 +59,7 @@ Vue.component('Editor', Editor) Vue.component('FileUpload', FileUpload) Vue.component('ImageUpload', ImageUpload) Vue.component('ImagePreview', ImagePreview) +Vue.component('TabComponent', TabComponent) Vue.use(directive) Vue.use(plugins) diff --git a/src/views/gather/pool/index.vue b/src/views/gather/pool/index.vue new file mode 100644 index 0000000..f79b3d7 --- /dev/null +++ b/src/views/gather/pool/index.vue @@ -0,0 +1,78 @@ + + + + + + +