123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- export declare type GroupType = 'css' | 'data' | 'bind' | 'common' | 'event';
- export interface PropertyValue {
- /**
- * 属性名
- */
- name: string;
- /**
- * 默认值
- */
- default: any;
- /**
- * 隶属分组
- */
- group: GroupType;
- /**
- * 描述
- */
- desc: string;
- /**
- * 取值范围
- */
- type: 'boolean' | 'number' | 'string' | 'object' | 'dataSource' | 'valid' | 'format' | Array<string> | 'widget';
- eventParamter?: string[];
- eventResult?: string;
- eventDoc?: (vjson: any) => string;
- expr?: boolean;
- }
- export interface EventValue {
- /**
- * 属性名
- */
- name: string;
- /**
- * 描述
- */
- desc: string;
- }
- export interface PropertyDescriptionInterface {
- props: PropertyValue[];
- events?: EventValue[];
- }
- export declare class PropertyDescription {
- propertyes: PropertyDescriptionInterface;
- constructor(...args: PropertyDescriptionInterface[]);
- merge(pd: PropertyDescriptionInterface): void;
- /**
- * 根据分组名 获取属性定义
- */
- getPropsByGroup(name: GroupType): PropertyValue[];
- /**
- * 获取全部事件
- */
- getEvents(): EventValue[];
- }
|