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