Skip to content

StatusBar 状态栏

基础用法

html
<vz-status-bar></vz-status-bar>

固定在顶部

html
<vz-status-bar fixed></vz-status-bar>

背景颜色

html
<vz-status-bar background="var(--vz-color-primary)"></vz-status-bar>

Props

属性名说明类型默认值
fixed是否固定在顶部booleanfalse
z-indexz-indexstring / number--vz-z-index
background背景string--vz-bg-color
i-class根节点样式类string-
i-style根节点样式Vue.StyleValue-

CSS

变量名说明默认值
--vz-status-bar-z-indexprops.zIndex--vz-z-index
--vz-status-bar-backgroundprops.background--vz-bg-color

SCSS

scss
$status-bar: (
  "z-index": var(--vz-z-index),
  "background": var(--vz-bg-color-page),
);