| 功能 | 创建类 |
| 模块名 | base |
| 模块实质 | 类 |
| 父类 | Attribute |
| 备注 | 请使用 Base.extend() 创建类,而不是 new Base() |
config
类型:Object
描述:属性名/配置信息对
| 名称 | 类型 | 描述 |
|---|---|---|
| listeners | Object | 配置组件的事件绑定 |
| plugins | Array | 插件构造器数组或插件对象数组 |
| describedby | String | 按钮节点的 aria-describedby 属性值 |
| tooltip | String | 按钮节点的 title 属性值 |
| value | String | 按钮值 |
extensions(可选)
类型:Array
描述:扩展类数组
methodDesc
类型:Object
描述:方法集合键值对
staticAttributes
类型:Object
描述:放到新产生组件类上的静态属性集合键值对,其中 ATTRS 属性特殊对待
desc
类型:Object
描述:类元信息
id
类型:String
描述:plugin实例的id
返回值
描述:对应的plugin实例
plugin
类型:Function | Object
描述:指定的插件构造器或者插件对象
plugin
类型:Function | Object
描述:指定的插件 id 字符串或者插件对象