UNPKG

@tplc/wot

Version:

48 lines (47 loc) 1.11 kB
import type { PropType } from 'vue' export declare const unknownProp: PropType<unknown> export declare const numericProp: (NumberConstructor | StringConstructor)[] export declare const truthProp: { type: BooleanConstructor default: true } export declare const makeRequiredProp: <T>(type: T) => { type: T required: true } export declare const makeArrayProp: <T>() => { type: PropType<T[]> default: () => never[] } export declare const makeBooleanProp: <T>(defaultVal: T) => { type: BooleanConstructor default: T } export declare const makeNumberProp: <T>(defaultVal: T) => { type: NumberConstructor default: T } export declare const makeNumericProp: <T>(defaultVal: T) => { type: (NumberConstructor | StringConstructor)[] default: T } export declare const makeStringProp: <T>(defaultVal: T) => { type: PropType<T> default: T } export declare const baseProps: { /** * 自定义根节点样式 */ customStyle: { type: PropType<string> default: string } /** * 自定义根节点样式类 */ customClass: { type: PropType<string> default: string } }