# <Block />

<Block height="200">
    <template #topLeft>标题左侧插槽-</template>
    <template #topRight>顶部右侧插槽</template>
    <template #expand>
        <div>展开按钮插槽</div>
    </template>
    // 块内容
</Block>

# 属性

属性名 描述说明 类型 默认值
title 标题 String ''
backUrl 返回地址 String ''
backQuery 返回参数 Object {}
border 是否启用边框 Boolean true
borderRadius 圆角 Number,String 0
collapsedText 收起文本 String '展开'
collapsedWidth 收起宽度/高度 String '60px'
height 高度 Number,String 0
autoHeight 是否自适应高度 Boolean false
expand 默认展开/收起 Boolean true
expandVertical 垂直展开/收起, false 为水平 Boolean true
enableExpand 启用展开/收起 Boolean false
enableExpandButton 启用展开/收起按钮, 最右侧图标 Boolean false
enableBackButton 启用返回按钮 Boolean false
enableCloseButton 启用关闭按钮 Boolean true
expandContent 默认展开/收起内容 Boolean true
enableExpandContent 启用展开/收起内容按钮 Boolean true
expandContentHeight 默认展开/收起内容高度 Number,String 250
expandContentText 展开按钮文本 String '展开搜索'
collapseContentText 收起按钮文本 String '收起搜索'
enableObserver 启用 resize observer 监听高度 Boolean true
enableFixedHeight 启用固定高度, 默认启用 onResize Boolean false
enableFullScreen 启用全屏 Boolean false
offset 高度计算偏移量 Array [211, 40]
fixedOffset 固定高度偏移量 Number 0
inherit 启用继承高度 Boolean false
delay 延迟执行高度计算 Number 16.7
isBack 自定义返回方法 Boolean false

# 方法

属性名 描述说明 类型
contentExpand 展开/收起内容部分切换时触发 Function
heightChanged 高度变化时触发 Function
collapsed 收起时触发 Function
clickBack 返回时触发 Function
fullScreenChanged 全屏变化时触发 Function
backMethod isBack 为 true 时点击返回按钮触发 Function

# 插槽

属性名 描述说明
title 标题
topLeft 标题左侧插槽
topCenter 标题中间插槽
topRight 标题右侧插槽
expand 展开/收起折叠内容插槽
collapsed 水平收起时插槽