Options
All
  • Public
  • Public/Protected
  • All
Menu

组件属性序列化辅助类

Hierarchy

  • ComponetSerializerPropoty

Index

Constructors

constructor

Properties

Static dependencies

dependencies: {} = ...

Type declaration

Static serializePropertys

serializePropertys: {} = ...

需要序列化的属性对象 后面继承的组件需要设置保存的属性

Type declaration

Methods

Static getComponentSerializePropertys

  • getComponentSerializePropertys(compnent: any): {}
  • 获取组件实例的序列化属性

    Parameters

    • compnent: any

      组件实例

    Returns {}

    需要组件的属性对象 例如:{ pop1:String,pop2:Boolean}

Static getDependencies

  • getDependencies(compnent: any): {}
  • 获取依赖项

    Parameters

    • compnent: any

      组件实例

    Returns {}

    返回依赖配置集合

Static setDependencies

  • setDependencies(compnent: any, propertyName: string, dependencyType?: DependencyType): void
  • 设置依赖项

    Parameters

    • compnent: any

      组件实例

    • propertyName: string

      属性名

    • dependencyType: DependencyType = ...

      依赖的类型

    Returns void

Static setSerializePropertys

  • setSerializePropertys(compnent: any, propertyName: string, dataTytpe: any, defaultValue?: any): void
  • 设置序列化属性

    Parameters

    • compnent: any

      组件

    • propertyName: string

      属性名

    • dataTytpe: any

      数据类型

    • defaultValue: any = ...

      默认值

    Returns void

Generated using TypeDoc