Skip to content

Information Bar 信息栏

Information Bar 信息栏打开
9:41
/pages/information-bar/index

介绍

weui-information-bar 用于页面顶部或内容区的信息提示,支持警示、提示、弱提示、无色提示以及关闭和链接操作。

基础用法

vue
<weui-information-bar
  v-model="visible"
  type="warn-strong"
  text="当前网络不可用"
  link-text="查看详情"
/>

Props

属性说明类型默认值
modelValue是否显示,支持 v-modelbooleantrue
text提示文字string''
type类型,可选 warn-strongwarn-weakwarn-no-colortips-strongtips-weakstring'warn-strong'
icon左侧图标 classstring'weui-icon-outlined-warn'
showIcon是否显示左侧图标booleantrue
linkText右侧链接文字string''
closeable是否显示关闭按钮booleanfalse

Slots

插槽名说明
default自定义提示内容
left自定义左侧图标
right自定义右侧操作

Events

事件名说明
update:modelValue显示状态变化
close点击关闭
link-click点击链接

Released under the MIT License.