扩展底座:快速开发
Methods
(static) sexExAction(reference, key, Component) → {Object}
「快速」Ex.sexExAction
统一处理特殊带窗口操作按钮:
{
"button": {
},
"dialog":{
}
}
Parameters:
Name | Type | Description |
---|---|---|
reference |
Object | ReactComponent | React对应组件引用。 |
key |
String | 被读取的配置键值。 |
Component |
Object | ReactComponent | 组件类型。 |
Returns:
处理过后的 Action 相关配置。
- Type
- Object
(static) sexExPlugin(reference, options, key) → {function}
「快速」Ex.sexExPlugin
如果出现了 pluginKey,则从 Plugin.Function 中读取函数 该函数返回三种信息:
{
"selection": 自动计算,edition = true 并且 deletion = true 时可选择
"edition": 默认 true(可编辑)
"deletion": 默认 true(可删除)
}
限制,批量编辑和批量删除只能针对 edition / deletion 同时为true的时候,否则这种记录都不可能被批量操作选中
Parameters:
Name | Type | Description |
---|---|---|
reference |
Object | ReactComponent | React对应组件引用。 |
options |
Object | 插件配置选项。 |
key |
String | 读取配置的键。 |
Returns:
返回插件专用处理函数。
- Type
- function