mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-23 18:00:27 +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';
|
import { DefaultSlots } from '../utils/use/sfc';
|
||||||
|
|
||||||
export type ButtonProps = RouteProps & {
|
export type ButtonProps = RouteProps & {
|
||||||
tag: keyof HTMLElementTagNameMap;
|
tag: keyof HTMLElementTagNameMap | string;
|
||||||
type: string;
|
type: 'default' | 'primary' | 'info' | 'warning' | 'danger';
|
||||||
size: string;
|
size: 'large' | 'normal' | 'small' | 'mini'
|
||||||
text?: string;
|
text?: string;
|
||||||
block?: boolean;
|
block?: boolean;
|
||||||
plain?: boolean;
|
plain?: boolean;
|
||||||
|
@ -8,7 +8,7 @@ import { CreateElement, RenderContext } from 'vue/types';
|
|||||||
import { DefaultSlots } from '../utils/use/sfc';
|
import { DefaultSlots } from '../utils/use/sfc';
|
||||||
|
|
||||||
export type IconProps = {
|
export type IconProps = {
|
||||||
tag: keyof HTMLElementTagNameMap;
|
tag: keyof HTMLElementTagNameMap | string;
|
||||||
name: string;
|
name: string;
|
||||||
size?: string;
|
size?: string;
|
||||||
color?: string;
|
color?: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user