From ba863b2c91a60240c2f9f137708a4847f96e53e1 Mon Sep 17 00:00:00 2001 From: Sagi Date: Fri, 30 Sep 2022 14:23:50 +0800 Subject: [PATCH] feature: implement tab page props and remove trailing comma --- .prettierrc | 2 +- .../tabs/src/components/tab-page.props.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.prettierrc b/.prettierrc index 093c853..b387dad 100644 --- a/.prettierrc +++ b/.prettierrc @@ -5,7 +5,7 @@ "printWidth": 140, "semi": true, "useTabs": false, - "trailingComma": "es5", + "trailingComma": "none", "singleQuote": true, "tabWidth": 4, "endOfLine": "auto", diff --git a/packages/ui-vue/components/tabs/src/components/tab-page.props.ts b/packages/ui-vue/components/tabs/src/components/tab-page.props.ts index e69de29..5d62783 100644 --- a/packages/ui-vue/components/tabs/src/components/tab-page.props.ts +++ b/packages/ui-vue/components/tabs/src/components/tab-page.props.ts @@ -0,0 +1,13 @@ +import { ExtractPropTypes } from 'vue'; + +export const tabPageProps = { + tabWidth: { type: Number, default: -1 }, + id: { type: String, default: '' }, + customTitleClass: { type: String, default: '' }, + titleOverflow: { type: Boolean, default: false }, + title: { type: String, default: '' }, + selected: { type: Boolean, default: false }, + disabled: { type: Boolean, default: false }, + removeable: { type: Boolean, default: false } +}; +export type TabPageProps = ExtractPropTypes;