视图布局组件,可以定义上、左、右的布局,用于统一布局。
# 基础示例
注意事项:
EView
组件通过配置template="top-left-right"
属性来确定布局模式。- 其中
slot="top"
和slot="middle"
为可选固定插槽。 - 另外可以通过配置
config
属性来定义leftTabs
和rightTabs
中的内容。 config
中配置的leftTabs
和rightTabs
可定义多个tab集合,每个tab的id可作为solt的插槽来自定义内容。
# EViewTopLeftRight
# Props
Name | Description | Type | Required | Default |
---|---|---|---|---|
config | - | Object | false | - |
# Events
Event Name | Description | Parameters |
---|---|---|
active-tabs | - | - |
# Slots
Name | Description | Default Slot Content |
---|---|---|
top | - | - |
middle | - | - |
tab.id | - | - |
tab.id | - | - |