BhtPageBackground

文档版本:1.0.0

描述

页面背景组件,用于配置页面背景颜色、背景图片和页面高度。

效果

BhtPageBackground 效果图

示例

<bht-page-background></bht-page-background>

代码

<bht-page-background :ref="item.id" :item="item"></bht-page-background>

或者

<BhtPageBackground :ref="item.id" :item="item"></BhtPageBackground>

参数

参数类型必填默认值说明
itemObject-组件配置信息。

配置项

item.config.data 支持的常用字段如下:

key名称类型默认值说明
backgroundColor背景颜色string#f6f8fb请输入页面背景颜色
backgroundImage背景图片string-请输入背景图片地址
backgroundSize背景尺寸stringcovercover / contain / auto
backgroundRepeat重复方式stringno-repeatno-repeat / repeat
backgroundPosition背景位置stringcenter center请输入背景位置
backgroundAttachment滚动方式stringscrollscroll / fixed
minHeight页面最小高度string100vh请输入页面最小高度

引入

import { BhtPageBackground } from '@behappyto/cms-ui-vue3'