From 321f3925b10ce48e8e796cedf1d49c6744736227 Mon Sep 17 00:00:00 2001 From: janat08 Date: Thu, 13 Jun 2019 11:00:34 +0600 Subject: [PATCH 1/3] tabs --- package.json | 1 + src/components/Tabs.vue | 31 +++++++++++++++++++++++++++++++ src/index.js | 2 ++ yarn.lock | 5 +++++ 4 files changed, 39 insertions(+) create mode 100644 src/components/Tabs.vue diff --git a/package.json b/package.json index 37c1603b..d45f99ee 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "vue-content-loader": "^0.2.1", "vue-router": "^3.0.1", "vue-router-prefetch": "^1.1.1", + "vue-slim-tabs": "^0.3.0", "vue-template-compiler": "^2.6.10", "vuex": "^3.0.1", "vuex-router-sync": "^5.0.0" diff --git a/src/components/Tabs.vue b/src/components/Tabs.vue new file mode 100644 index 00000000..a223b27e --- /dev/null +++ b/src/components/Tabs.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/src/index.js b/src/index.js index 8d58e0d9..389be4a9 100644 --- a/src/index.js +++ b/src/index.js @@ -11,6 +11,7 @@ import Badge from './components/Badge.vue' import DocuteSelect from './components/DocuteSelect.vue' import Note from './components/Note.vue' import Gist from './components/Gist.vue' +import Tabs from './components/Tabs.vue' import Loading from './components/Loading.vue' import ExternalLinkIcon from './components/icons/ExternalLinkIcon.vue' import {INITIAL_STATE_NAME} from './utils/constants' @@ -23,6 +24,7 @@ import bannerFooter from './plugins/banner-footer' import darkThemeToggler from './plugins/dark-theme-toggler' import searchPlugin from './plugins/search' +Vue.component(Tabs.name, Tabs) Vue.component(ImageZoom.name, ImageZoom) Vue.component(Badge.name, Badge) Vue.component(DocuteSelect.name, DocuteSelect) diff --git a/yarn.lock b/yarn.lock index e8c4c204..e4740e86 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12441,6 +12441,11 @@ vue-router@^3.0.1: resolved "https://registry.npmjs.org/vue-router/-/vue-router-3.0.2.tgz#dedc67afe6c4e2bc25682c8b1c2a8c0d7c7e56be" integrity sha512-opKtsxjp9eOcFWdp6xLQPLmRGgfM932Tl56U9chYTnoWqKxQ8M20N7AkdEbM5beUh6wICoFGYugAX9vQjyJLFg== +vue-slim-tabs@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/vue-slim-tabs/-/vue-slim-tabs-0.3.0.tgz#5930addbbac27feded2a3e6ecbe4579418acf283" + integrity sha512-0KaQRcql5ihRHTwvguWw1vxYnxuChLkhXu6AEp0TEHKm2Ax4Y5HL58AhVHZCyNXhRwDK3J+Fh0jzoOR0VI7j7Q== + vue-style-loader@^4.1.0, vue-style-loader@^4.1.2: version "4.1.2" resolved "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz#dedf349806f25ceb4e64f3ad7c0a44fba735fcf8" From 0bbc21745a31701703ed57527b6a39a58e12299e Mon Sep 17 00:00:00 2001 From: janat08 Date: Thu, 13 Jun 2019 11:26:51 +0600 Subject: [PATCH 2/3] readme --- src/components/Tabs.vue | 2 +- website/docs/builtin-components.md | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/components/Tabs.vue b/src/components/Tabs.vue index a223b27e..8c54bf90 100644 --- a/src/components/Tabs.vue +++ b/src/components/Tabs.vue @@ -1,6 +1,6 @@