Skip to main content

Page

Container properties

All component configurations support Container properties at the first level.

Component properties

NameTypeDefaultSupports Variable PatternDescription
classNamestring✔️The className of the component
styleobjectThe style of the component
ResizablePropsobjectDrag and drop the size component Resizable properties
emptybool | objectfalseThe placeholder displayed when there is no data, the property of the Empty of antd
emptyFieldsobjectCustomize empty status display content (json)
emptyChildrennodeCustomize empty status display content (jsx)
bindComponentIdstringBind the operation to the corresponding component
defaultState'hide' | 'empty' | 'content''empty'The default state of the component's initial load, 'hide' means no content is rendered; 'empty' means the rendering of blank state placeholders; 'content' means the rendering of internal form content
disableSaveResizeSettingboolfalseDisable saving, dragging and changing size

All the remaining componentsProps will be passed to the component root element (Table).

ResizableProps

NameTypeDefault
placement'top' | 'right' | 'bottom' | 'left''left'
isPercentboolfalse
minnumber240
maxnumber
maxGapnumber24
showControlIconbooltrue
showHoverEffectbooltrue
disableResizeboolfalse

JS API

The interface obtained through formApi.getFieldApi() is as follows:

NameTypeDescription
nodeHTML ElementThe root DOM element of the component
formApiobjectPage Components' form API
state'hide' | 'empty' | 'content'Page The status of the rendering of the component.
on() => voidBind event
hide() => voidHide, that is, set the status to 'hide'
renderEmpty() => voidDisplay blank status placeholder, that is, set the status to 'empty'
renderContent() => voidRender the internal form, that is, set the status to 'content'

formApi.on eventType

NamecallbackDescription
formApiReady(formApi) => voidCall this function when formApi inside the Page component is available