扩展底座:配置管理
Methods
(static) configClick(config, reference) → {function}
「配置」Ex.configClick
按钮扩展配置。
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | 按钮完整配置 |
reference |
Object | ReactComponent | React对应组件引用 |
Returns:
返回需要绑定的执行函数
- Type
- function
(static) configColumn(original, config) → {Array}
「配置」Ex.configColumn
表格列扩展配置。
Parameters:
Name | Type | Description |
---|---|---|
original |
Array | 原始列配置 |
config |
Object | 表格专用输入配置 |
Returns:
返回处理过后的列配置
- Type
- Array
(static) configDialog(input) → {Object}
「配置」Ex.configDialog
窗口扩展配置
Button / Link 中的 Dialog专用配置,直接的 Dialog不需要配置 转换处理,Dialog的基础配置直接放到 config 变量中
返回数据格式如:
{
button: "按钮基本配置",
dialog: "关联窗口配置",
component: "按钮关联组件",
componentConfig: "关联组件配置"
}
Parameters:
Name | Type | Description |
---|---|---|
input |
Object | 基本输入配置 |
Returns:
返回构造好的配置
- Type
- Object
(static) configGrid(grid, control, prefix) → {Array}
「配置」Ex.configGrid
Grid布局扩展配置。
Parameters:
Name | Type | Description |
---|---|---|
grid |
Array.<Array> | 矩阵专用扩展Grid布局配置 |
control |
Object | 控件表 |
prefix |
String | 前缀信息,用于识别组件的key专用 |
Returns:
返回最终布局
- Type
- Array
(static) configRelation(data, config, reference) → {Object}
「配置」Ex.configRelation
关系扩展配置,data 中的数据结构:
{
"up": [],
"down": []
}
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | 基本数据信息 |
config |
Object | 关系完整配置 |
reference |
Object | ReactComponent | React对应组件引用 |
Returns:
最终的关系配置数据信息
- Type
- Object