import { ISubComp } from 'moon-core/src/typings/page'; import MethodModel from './method-model'; /** * @desc * * @使用场景 * * @coder.yang2010@gmail.com * @Date 2020/3/14 **/ export default class SubComponentModel { ast: ISubComp; constructor(ast: ISubComp); get name(): string; get className(): string; get instanceName(): string; get methods(): MethodModel[]; /** * 获取render方法; */ getRenderMethod(): MethodModel; /** * 获取某一方法; * @param methodName */ getMethod(methodName: string): MethodModel; /** * * @param param */ queryMethod(param: { nameKey?: string; includes?: string[]; excludes?: string[]; }): MethodModel[]; }