@yqg/low-code-component-lib
Version:
fintopia web lowcode component library
37 lines (33 loc) • 861 B
TypeScript
export enum Phone {
hello = '13800138000',
hello2 = '13800138001',
hello3 = '13800138002',
hello4 = '13800138003',
}
export interface IProps {
value: string;
/** @lowCodeSetter */
name: string | String;
/** @lowCodeSetter */
age: number | Number;
/** @lowCodeSetter */
address: '北京' | '上海' | '广州' | '深圳';
/** @lowCodeSetter */
phone: Phone;
/** @lowCodeSetter */
single: boolean | Boolean;
/** @lowCodeSetter */
click: () => {} | (() => void);
/** @lowCodeSetter */
type: JSON | Record<string, any> | Object | object;
}
export interface IEmits {
(e: 'refresh', value: Record<string, any>): void;
(e: 'change', value: string): void;
}
export interface ISlots {
/** title插槽 @setterTitle 标题title插槽 */
title: string;
/** tips插槽 @setterTitle 提示tips插槽 */
tips: string;
}