From 7aea08ac2d5a81e8139c904aca8827c53af70873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20Ng=E1=BB=8Dc=20H=C3=B2a?= Date: Mon, 25 May 2020 16:04:38 +0700 Subject: [PATCH] chore: validator tab type use validator for tab type --- src/components/VueTabs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/VueTabs.js b/src/components/VueTabs.js index d48c21c..eca65b4 100644 --- a/src/components/VueTabs.js +++ b/src/components/VueTabs.js @@ -12,12 +12,12 @@ export default { type: String, default: 'center' }, - /** - * Tab type: tabs | pills - */ type: { type: String, - default: 'tabs' + default: 'tabs', + validator: function (value) { + return ['tabs', 'pills'].indexOf(value) !== -1 + } }, direction: { type: String,