MainField
文本输入框
API
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| showMore | 是否显示查看更多按钮 | boolean | - |
| showPanel | 是否显示浮窗 | boolean | false |
| showEdit | 是否展示行编辑 | boolean | true |
| onlyText | 是否只是文本展示 | boolean | false |
| detailAction | string | false | 写 string 时弹窗打开的替换内建视图 | - |
| dataCondition | DataStore 数据源condition | string | |
| dataParams | 给数据源 DataStore、DataFlow、DataFunction 携带参数。 [‘1’, #containerKey.data.id, @getCurrentUserId]。DataFlow、DataFunction为对象格式,例如{ a: 1 }, 查询时会合并到查询参数中 | string | |
| dataFlow | Flow 数据源 | string | |
| dataFunc | Function 数据源 | string | |
| mute | 静音,不主动请求数据 | boolean |
用法
<Field name="assetsAccountType"> <RenderType> <MainField showPanel="#{true}" /> </RenderType> </Field>替换弹窗内置视图
<Field name="assetsAccountType"> <RenderType> <MainField detailAction="otherViewKey" /> </RenderType> </Field>点击打开时,则如同容器配置数据源
<Field name="shopTagList" readonly="#{true}"> <RenderType> <MainField dataCondition="shopTagList.id = ?" dataParams="[pageRecord.id]" showMore="#{true}"/> </RenderType></Field>注意:当前例子为0.17.x 版本