回到顶部

文档版本:1.1.0

组件名:BhtScrollHint

描述

回到顶部组件,用于提供页面滚动提示和快速返回顶部入口。

效果

回到顶部 效果图

示例

<bht-scroll-hint></bht-scroll-hint>

代码

<bht-scroll-hint :ref="item.id" :item="item"></bht-scroll-hint>

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

参数

该组件未声明外部 props。

组件配置项

暂无配置项。

通用布局配置

key名称类型默认值说明
componentWidth组件宽度string100%支持 100%、320px、50vw
componentHeight组件高度string-可选,例如 360px、50vh
componentPositionMode布局模式selectflowflow、absolute、fixed
componentPositionXX 位置string-自由/固定模式,例如 120px
componentPositionYY 位置string-自由/固定模式,例如 80px
componentZIndex层级string-例如 10
componentHorizontalAlign水平对齐selectcenterleft、center、right、stretch
componentVerticalAlign垂直对齐selecttoptop、middle、bottom、stretch
componentLocked锁定位置selectfalsetrue、false
componentRelativeTo参照组件 IDselect-可选择其他已有组件的 id 和名称
componentRelativePlacement相对位置select-right、left、bottom、top
componentRelativeGap相对间距string12px例如 12px

通用样式配置

key名称类型默认值说明
componentMargin外边距string-例如 16px 或 12px 24px
componentPadding内边距string-例如 16px 或 12px 24px
componentMinWidth最小宽度string-例如 240px
componentMaxWidth最大宽度string-例如 1200px 或 none
componentMinHeight最小高度string-例如 120px
componentMaxHeight最大高度string-例如 720px 或 none
componentBackgroundColor背景颜色color-例如 #ffffff 或 rgba(255,255,255,.9)
componentBackgroundImage背景图片string-例如 url(https://...) 或 linear-gradient(...)
componentBackgroundSize背景尺寸string-例如 cover、contain、100% 100%
componentBackgroundPosition背景位置string-例如 center、left top
componentBackgroundRepeat背景重复select-no-repeat、repeat、repeat-x、repeat-y
componentBorderColor边框颜色color-请选择边框颜色
componentBorderWidth边框宽度string-例如 1px 或 1px 0 0
componentBorderStyle边框样式select-solid、dashed、dotted、none
componentBorderRadius圆角string-例如 8px 或 12px 12px 0 0
componentBoxShadow阴影string-例如 0 12px 32px rgba(15,23,42,.12)
componentOpacity透明度string-0 到 1,例如 .95
componentOverflow溢出处理select-visible、hidden、auto、clip
componentTextAlign文本对齐select-left、center、right、justify
componentColor文字颜色color-请选择文字颜色
componentBoxSizing盒模型selectborder-boxborder-box、content-box
componentFilter滤镜string-例如 blur(2px)、grayscale(1)
componentBackdropFilter背景滤镜string-例如 blur(12px)
componentCustomStyle自定义 CSStextarea-例如 transform: translateY(8px);

引入

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