跳转到内容

MainField

文本输入框

API

参数说明类型默认值
showMore是否显示查看更多按钮boolean-
showPanel是否显示浮窗booleanfalse
showEdit是否展示行编辑booleantrue
onlyText是否只是文本展示booleanfalse
detailActionstring | false写 string 时弹窗打开的替换内建视图-
dataConditionDataStore 数据源conditionstring
dataParams给数据源 DataStore、DataFlow、DataFunction 携带参数。 [‘1’, #containerKey.data.id, @getCurrentUserId]。DataFlow、DataFunction为对象格式,例如{ a: 1 }, 查询时会合并到查询参数中string
dataFlowFlow 数据源string
dataFuncFunction 数据源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 版本