diff --git a/src/components/VueTabs.js b/src/components/VueTabs.js index d48c21c..c3c27b5 100644 --- a/src/components/VueTabs.js +++ b/src/components/VueTabs.js @@ -5,12 +5,12 @@ export default { activeTextColor: String, disabledColor: String, disabledTextColor: String, - /** - * Tab title position: center | bottom | top - */ textPosition: { type: String, - default: 'center' + default: 'center', + validator: function (value) { + return ['center', 'bottom', 'top'].indexOf(value) !== -1 + } }, /** * Tab type: tabs | pills