Skip to content

pageViewBus 页面视图

基础示例

可通过 title 属性设置页面标题,模板中内置了刷新按钮,可通过 show-refresh 属性控制是否显示刷新按钮。

拖拽调整宽度

通过右侧边框可拖拽调整页面宽度,可以使用 default-widthmin-widthmax-width 属性设置默认宽度、最小宽度、最大宽度。同时可通过 resize-line-styleresize-line-class 属性设置宽度调整线的样式。

Props

参数名描述类型默认值
title页面标题string-
info页面信息string-
show-refresh页面刷新按钮显隐booleantrue
defaultWidth 1.2.1默认宽度,单位为pxnumber250
maxWidth 1.2.1最大宽度,单位为pxnumber-
minWidth 1.2.1最小宽度,单位为pxnumber-
resize-line-style 1.2.1resize线条样式object-
resize-line-class 1.2.1resize线条类名string-
preview-line-style 1.2.1拖拽预览线条样式object-
preview-line-class 1.2.1拖拽预览线条类名string-

Events

事件名描述类型
refresh页面刷新事件Function

Slots

插槽名描述参数
header页面头部插槽-
default页面默认内容插槽-
footer页面底部插槽-