[improvement] Button: optimize type definitions (#3004)

This commit is contained in:
neverland 2019-03-19 22:00:45 +08:00 committed by GitHub
parent c4da311281
commit 09bc2b3f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -8,9 +8,9 @@ import { CreateElement, RenderContext } from 'vue/types';
import { DefaultSlots } from '../utils/use/sfc';
export type ButtonProps = RouteProps & {
tag: keyof HTMLElementTagNameMap;
type: string;
size: string;
tag: keyof HTMLElementTagNameMap | string;
type: 'default' | 'primary' | 'info' | 'warning' | 'danger';
size: 'large' | 'normal' | 'small' | 'mini'
text?: string;
block?: boolean;
plain?: boolean;

View File

@ -8,7 +8,7 @@ import { CreateElement, RenderContext } from 'vue/types';
import { DefaultSlots } from '../utils/use/sfc';
export type IconProps = {
tag: keyof HTMLElementTagNameMap;
tag: keyof HTMLElementTagNameMap | string;
name: string;
size?: string;
color?: string;