默认布局
表格视图(TABLE)
<view type="TABLE">
<pack widget="group">
<view type="SEARCH">
<element widget="search" slot="search" />
</view>
</pack>
<pack widget="group" slot="tableGroup">
<element widget="actionBar" slot="actionBar">
<xslot name="actions" />
</element>
<element widget="table" slot="table">
<element widget="expandColumn" slot="expandRow" />
<xslot name="fields" />
<element widget="rowActions" slot="rowActions" />
</element>
</pack>
</view>
表单视图(FORM)
<view type="FORM">
<element widget="actionBar" slot="actionBar">
<xslot name="actions" />
</element>
<element widget="form" slot="form">
<xslot name="fields" />
</element>
</view>
详情视图(DETAIL)
<view type="DETAIL">
<element widget="actionBar" slot="actionBar">
<xslot name="actions" />
</element>
<element widget="detail" slot="detail">
<xslot name="fields" />
</element>
</view>
画廊视图(GALLERY)
<view type="GALLERY">
<view type="SEARCH">
<element widget="search" slot="search" />
</view>
<element widget="actionBar" slot="actionBar">
<xslot name="actions" />
</element>
<element widget="gallery" slot="gallery">
<element widget="card" slot="card" />
</element>
</view>
树视图(TREE)
<view type="TREE">
<pack widget="group">
<view type="SEARCH">
<element widget="search" slot="search" />
</view>
</pack>
<pack widget="group">
<element widget="actionBar" slot="actionBar">
<xslot name="actions" />
</element>
<element widget="card-cascader" slot="tree" />
</pack>
</view>
默认内嵌布局(inline="true"
)
内嵌表格视图(TABLE)
<view type="TABLE">
<view type="SEARCH">
<element widget="search" slot="search" />
</view>
<element widget="actionBar" slot="actionBar">
<xslot name="actions" />
</element>
<element widget="table" slot="table">
<element widget="expandColumn" slot="expandRow" />
<xslot name="fields" />
<element widget="rowActions" slot="rowActions" />
</element>
</view>
内嵌表单视图(FORM)
<view type="FORM">
<element widget="form" slot="form">
<xslot name="fields" />
</element>
</view>
内嵌详情视图(DETAIL)
<view type="DETAIL">
<element widget="detail" slot="detail">
<xslot name="fields" />
</element>
</view>
内置其他布局
表格视图-树表
<view type="TABLE">
<pack widget="group">
<view type="SEARCH">
<element widget="search" slot="search" slotSupport="field">
<xslot name="searchFields" slotSupport="field" />
</element>
</view>
</pack>
<pack widget="group">
<pack widget="row" wrap="false">
<pack widget="col" width="257">
<pack widget="group">
<pack widget="col">
<element widget="tree" slot="tree" />
</pack>
</pack>
</pack>
<pack widget="col" mode="full">
<pack widget="row">
<element widget="actionBar" slot="actionBar" slotSupport="action">
<xslot name="actions" slotSupport="action" />
</element>
<element widget="table" slot="table">
<element widget="expandColumn" slot="expandRow" />
<xslot name="fields" />
<element widget="rowActions" slot="rowActions" />
</element>
</pack>
</pack>
</pack>
</pack>
</view>
Oinone社区 作者:oinone原创文章,如若转载,请注明出处:https://doc.oinone.top/frontend/36.html
访问Oinone官网:https://www.oinone.top获取数式Oinone低代码应用平台体验