lib.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. import { FunctionRegiste, LibParamType } from "../types";
  2. import { Scope } from "../Scope";
  3. export declare function isDesignMode(control: any, config: any): boolean;
  4. export declare function toString(value: any): string;
  5. export declare function isEmpty(value: any): boolean;
  6. export declare function createUUID(): any;
  7. export declare function getRegList(): FunctionRegiste[];
  8. export declare function getRegParamList(methodName: string): any;
  9. /**
  10. * 模拟点击按钮
  11. */
  12. export declare function raiseClick(buttonHandle: any): boolean;
  13. /**
  14. * 标注系统全局函数的参数
  15. * @param title 函数名称
  16. * @param type 函数类型
  17. * @param allowEmpty 可否为空
  18. */
  19. export declare function LibParam(title: string, type: LibParamType, allowEmpty?: boolean): (target: any, methodName: any, paramsIndex: any) => void;
  20. /**
  21. * 标注函数变成"系统全局函数"
  22. */
  23. export declare function Lib(registe: FunctionRegiste): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
  24. /**
  25. * 解析事件
  26. * 'scope.私有方法名'
  27. * 'system.系统函数名'
  28. * 'format.格式化名'
  29. */
  30. export declare function lookupFn(scope: Scope, event: string, errorWho?: any): Function;
  31. /**
  32. * 从 ext.element 获取 scope 对象
  33. */
  34. export declare function lookupScope(extHandle: any): Scope;