feature: implement tab page props and remove trailing comma

This commit is contained in:
Sagi 2022-09-30 14:23:50 +08:00
parent c44ddb6159
commit ba863b2c91
2 changed files with 14 additions and 1 deletions

View File

@ -5,7 +5,7 @@
"printWidth": 140, "printWidth": 140,
"semi": true, "semi": true,
"useTabs": false, "useTabs": false,
"trailingComma": "es5", "trailingComma": "none",
"singleQuote": true, "singleQuote": true,
"tabWidth": 4, "tabWidth": 4,
"endOfLine": "auto", "endOfLine": "auto",

View File

@ -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<typeof tabPageProps>;