mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Tag: optimize type definitions
This commit is contained in:
parent
681887d2bf
commit
47e75410a9
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user