起源:属性解析器
Methods
(static) aiExprAction(popover) → {Object}
「标准」Ux.aiExprAction
针对某些Action按钮的解析,格式和表格如:
key,text,type,icon,confirm,$KV$
索引值 | 字段名 | 说明 |
---|---|---|
0 | key | 当前操作主键。 |
1 | text | 档案操作按钮文字。 |
2 | type | 当前操作类型,主要针对Button类型如primary。 |
3 | icon | 按钮呈现的icon信息。 |
4 | confirm | 是否包含Popconfirm的操作,多一层封装。 |
5 | $KV$ | <属性解析器> |
Parameters:
Name | Type | Description |
---|---|---|
popover |
String | Object | 需要解析的 action 操作专用配置。 |
Returns:
解析成标准的 action。
- Type
- Object
(static) aiExprAjax(ajax) → {Object}
「标准」Ux.aiExprAjax
Ajax配置专用解析函数,解析表达式,在 ListSelector 中常用的 Ajax 表达式完整信息,后续版本中,下边组件都可能应用:
- ListSelector
- TreeSelector
- MatrixSelector
格式和表格如:
method,uri,params.pager.page,params.pager.size,$KV$
索引值 | 字段名 | 说明 |
---|---|---|
0 | method | Ajax请求专用方法。 |
1 | uri | Ajax请求的Uri地址。 |
2 | params.pager.page | 分页函数中的页码。 |
3 | params.pager.size | 分页函数中的每页尺寸。 |
4 | $KV$ | <属性解析器> |
Parameters:
Name | Type | Description |
---|---|---|
ajax |
Object | 基本的 ajax 配置。 |
Returns:
解析过后的标准 ajax 配置对象。
- Type
- Object
(static) aiExprButton(literal, props) → {Object}
「标准」Ux.aiExprButton
按钮标准解析,解析顺序:key, text, connectId, type, icon, disabledKey, $KV$
索引值 | 字段名 | 说明 |
---|---|---|
0 | key | 按钮主键。 |
1 | text | 按钮上显示的文字信息。 |
2 | connectId | 按钮点击连接的元素id,客户端元素的id。 |
3 | type | 按钮的类型,如type=primary等。 |
4 | icon | 对应<Button/> 的icon属性。 |
5 | disabledKey | 按钮禁用的key值,可设置disabled和非disabled状态。 |
6 | $KV$ | <属性解析器> |
Parameters:
Name | Type | Description |
---|---|---|
literal |
String | Object | 解析按钮。 |
props |
Object | React属性信息。 |
Returns:
解析的标准按钮配置。
- Type
- Object
(static) aiExprButtons(buttons, props) → {Array}
「标准」Ux.aiExprButtons
按钮解析函数,批量版,解析多个<Button/>
元素,属性参考aiExprButton
方法。
Parameters:
Name | Type | Description |
---|---|---|
buttons |
Array | 每个按钮会使用 |
props |
Object | React属性信息。 |
Returns:
解析的标准按钮配置。
- Type
- Array
(static) aiExprColumn(columns) → {Array}
「标准」Ux.aiExprColumn
列专用解析器,表格中的 columns 配置解析,解析格式如:
dataIndex,title,$render,sorter,$KV$
索引值 | 字段名 | 说明 |
---|---|---|
0 | dataIndex | 列字段名信息。 |
1 | title | 列头标题文字。 |
2 | $render | 列渲染类型。 |
3 | sorter | 是否排序。 |
4 | $KV$ | <属性解析器> |
Parameters:
Name | Type | Description |
---|---|---|
columns |
Array | 针对字符串数组和对象数组的合并解析流程。 |
Returns:
解析成标准的 column 数组格式。
- Type
- Array
(static) aiExprCommand(command) → {Object}
「标准」Ux.aiExprCommand
针对 command 的按钮专用解析器,格式和表格如:
key,text,className,confirm,confirmPosition,icon,tooltip,$KV$
索引值 | 字段名 | 说明 |
---|---|---|
0 | key | 按钮主键。 |
1 | text | 操作元素文字信息。 |
2 | className | 当前元素的className(CSS专用)。 |
3 | confirm | 是否支持confirm窗口。 |
4 | confirmPosition | confirm窗口的位置信息。 |
5 | icon | 元素绑定的图标信息。 |
6 | tooltip | 元素是否支持浮游提示,使用浮游文字就只显示图标。 |
7 | $KV$ | <属性解析器> |
Parameters:
Name | Type | Description |
---|---|---|
command |
String | Object | 需要解析的 command 专用配置。 |
Returns:
解析成标准的 command。
- Type
- Object
(static) aiExprCommands(commands) → {Array}
「标准」Ux.aiExprCommands
针对 commands 的按钮专用解析器(批量版本)
Parameters:
Name | Type | Description |
---|---|---|
commands |
Array | 命令配置数组 |
Returns:
解析过后的 commands
- Type
- Array
(static) aiExprDrawer(drawer) → {Object}
「标准」Ux.aiExprDrawer
抽屉标准解析器,主要提供给 Drawer
抽屉组件使用,格式如:
title,placement,width,closable,maskClosable,visible
索引值 | 字段名 | 说明 |
---|---|---|
0 | title | 抽屉窗口标题属性。 |
1 | placement | 抽屉窗口所处的位置,top,bottom,left,right四种。 |
2 | width | 抽屉窗口的宽度。 |
3 | closable | 是否支持关闭 功能。 |
4 | maskClosable | 点击遮罩时是否支持关闭。 |
5 | visible | 是否显示该抽屉。 |
Parameters:
Name | Type | Description |
---|---|---|
drawer |
String | 输入表达式。 |
Returns:
解析成标准的抽屉对象。
- Type
- Object
(static) aiExprField(literal) → {Object}
「标准」Ux.aiExprField
解析顺序:field, optionItem.label, span, optionJsx.style.width, render, $KV$
。
索引值 | 字段名 | 说明 |
---|---|---|
0 | field | 表单字段名。 |
1 | optionItem.label | 表单之前的标签文字。 |
2 | span | Grid表单的每一列的span宽度。 |
3 | optionJsx.style.width | 整个输入字段的宽度,可以是百分比。 |
4 | render | 当前字段的渲染函数,aiXXX 类型。 |
5 | $KV$ | <属性解析器> |
Parameters:
Name | Type | Description |
---|---|---|
literal |
String | 被解析的字段表达式信息。 |
Returns:
被解析过的字段标准对象。
- Type
- Object
(static) aiExprFieldEx(item) → {Object}
「标准」Ux.aiExprFieldEx
双源解析器,解析 field 和 metadata 专用,该函数是aiExprField
的扩展函数,执行多重合并,以及针对字段进行扩展
解析逻辑。
Parameters:
Name | Type | Description |
---|---|---|
item |
Object | 标准入口解析。 |
Returns:
被解析过的字段标准对象。
- Type
- Object
(static) aiExprFilter(filter) → {Object}
「标准」Ux.aiExprFilter
按照 Item 解析过滤条件,针对过滤条件对相关信息执行过滤,智能化表达式解析,解析格式:
source,field,type,cond
索引值 | 字段名 | 说明 |
---|---|---|
0 | source | 字典源信息,如ci.type格式,用于读取Assist数据。 |
1 | field | 查询条件的条件字段。 |
2 | type | 条件操作类型,对应查询操作符。 |
3 | cond | 值信息:可以是「表达式」,也可以是「固定值」。 |
Parameters:
Name | Type | Description |
---|---|---|
filter |
String | Object | 过滤条件解析 |
Returns:
解析成条件
- Type
- Object
(static) aiExprIcon(icons) → {Array}
「标准」Ux.aiExprIcon
图标解析专用,解析图标中的风格数据,解析多个图标,解析格式和表格为:
text,icon,iconStyle.fontSize,iconStyle.color,style.color,$KV$
索引值 | 字段名 | 说明 |
---|---|---|
0 | text | 解析的文字信息。 |
1 | icon | 解析的图标信息。 |
2 | iconStyle.fontSize | 图标的尺寸。 |
3 | iconStyle.color | 图标的颜色。 |
4 | style.color | 文字颜色。 |
5 | $KV$ | <属性解析器> |
Parameters:
Name | Type | Description |
---|---|---|
icons |
Array | 图标解析。 |
Returns:
解析成标准的 icons 数组格式。
- Type
- Array
(static) aiExprOp(button) → {Object}
「标准」Ux.aiExprOp
针对按钮的标准解析器,解析op
属性,格式和表格如:
key,text,event,type,className,icon,$KV$
索引值 | 字段名 | 说明 |
---|---|---|
0 | key | 操作按钮主键。 |
1 | text | 按钮文字信息。 |
2 | event | 事件名称,如SUBMIT,RESET等。 |
3 | type | 按钮类型,如primary,default。 |
4 | className | 按钮设置类型:绿色=uc_green,红色=uc_red,桃红=uc_pink,棕色=uc_brown。 |
5 | icon | 按钮上的图标信息。 |
6 | $KV$ | <属性解析器> |
Parameters:
Name | Type | Description |
---|---|---|
button |
String | Object | 解析按钮。 |
Returns:
按钮标准对象配置。
- Type
- Object
(static) aiExprOption(options) → {Array}
「标准」Ux.aiExprOption
选择框专用的 options 解析器,用于解析各种选项信息,格式和表格如:
key,label,style
索引值 | 字段名 | 说明 |
---|---|---|
0 | key | 选项值。 |
1 | label | 选项文字。 |
2 | style | 选项风格。 |
Parameters:
Name | Type | Description |
---|---|---|
options |
Array | 针对字符串数组和对象数组的合并解析流程。 |
Returns:
解析成标准的 option 数组格式。
- Type
- Array
(static) aiExprPopover(popover) → {Object}
「标准」Ux.aiExprPopover
气泡浮游窗解析器,主要提供给 Popover
浮游窗口组件使用,格式如:
title,placement,width,closable,visible
索引值 | 字段名 | 说明 |
---|---|---|
0 | title | 浮游窗口标题属性。 |
1 | placement | 浮游窗口所处的位置,top,bottom,left,right四种。 |
2 | width | 浮游窗口的宽度。 |
3 | closable | 是否支持关闭 功能。 |
4 | visible | 是否显示该浮游窗口。 |
Parameters:
Name | Type | Description |
---|---|---|
popover |
String | 输入表达式。 |
Returns:
解析成标准的浮游窗口对象。
- Type
- Object
(static) aiExprSubject(item)
「标准」Ux.aiExprSubject
Parameters:
Name | Type | Description |
---|---|---|
item |
(static) aiExprTabs(items, props) → {Array}
「标准」Ux.aiExprTabs
标准解析,解析成 Tabs 组件需要使用的子组件专用配置,格式如:
tab,key,icon,$KV$
索引值 | 字段名 | 说明 |
---|---|---|
0 | tab | 页签上文字。 |
1 | key | 页签主键。 |
2 | icon | 页签上的图标。 |
3 | $KV$ | <属性解析器> |
Parameters:
Name | Type | Description |
---|---|---|
items |
Array | 每一个Tab页对应的item表达式解析。 |
props |
Object | 传入当前React组件属性信息。 |
Returns:
转换成标准的 Tab 对应 items。
- Type
- Array
(static) aiExprTitle(item) → {Object}
「标准」Ux.aiExprTitle
解析 title
= 值的专用标题处理,解析带标题的行。
Parameters:
Name | Type | Description |
---|---|---|
item |
Object | String | 标准入口解析。 |
Returns:
被解析过的字段标准对象。
- Type
- Object
(static) aiExprWindow(literal) → {Object}
「标准」Ux.aiExprWindow
窗口标准解析器,主要提供给 Modal
模态窗使用,格式如:
title,okText,cancelText,visible,width,maskClosable,onOk,component
索引值 | 字段名 | 说明 |
---|---|---|
0 | title | 弹出窗口标题文字。 |
1 | okText | OK按钮文字。 |
2 | cancelText | Cancel按钮文字。 |
3 | visible | 是否显示窗口。 |
4 | width | 窗口宽度,用数字。 |
5 | maskClosable | 点击遮罩是否关闭。 |
6 | onOk | 调用Ux.connectId 触发的按钮ID。 |
7 | component | 窗口中显示组件的名称。 |
Parameters:
Name | Type | Description |
---|---|---|
literal |
String | 输入表达式。 |
Returns:
解析成标准的窗口对象。
- Type
- Object