diff --git a/packages/icon/index.tsx b/packages/icon/index.tsx index 1e3a45f27..5fd21b490 100644 --- a/packages/icon/index.tsx +++ b/packages/icon/index.tsx @@ -10,7 +10,7 @@ import { DefaultSlots } from '../utils/use/sfc'; export type IconProps = { tag: keyof HTMLElementTagNameMap | string; name: string; - size?: string; + size?: string | number; color?: string; info?: string | number; classPrefix: string; diff --git a/packages/tag/index.tsx b/packages/tag/index.tsx index 4d773c475..77ec4d73f 100644 --- a/packages/tag/index.tsx +++ b/packages/tag/index.tsx @@ -6,9 +6,13 @@ import { RED, BLUE, GREEN, GRAY_DARK } from '../utils/color'; import { CreateElement, RenderContext } from 'vue/types'; import { DefaultSlots } from '../utils/use/sfc'; +export type TagType = 'primary' | 'success' | 'danger'; + +export type TagSize = 'large' | 'medium'; + export type TagProps = { - size?: string; - type?: string; + size?: TagSize; + type?: TagType; mark?: boolean; color?: string; plain?: boolean;