Skip to content

Indicator 指示器

演示

Indicator 跨端示例与演示

Registry01 / 04
源码归属业务

把可编辑、目标正确的组件源码安装进项目。

圆点
线条

基础用法

vue
<template>
  <VIndicator :total="3" :current="1" />
  <VIndicator :total="3" :current="1" type="line" />
</template>

Props

Prop类型默认值描述
totalnumber0指示器总数
currentnumber0当前索引,从 0 开始
type'dot' | 'line''dot'指示器类型
ariaLabelstring'轮播进度'指示器导航的无障碍名称
itemAriaLabelstring'第 {index} 项,共 {total} 项'单项标签模板,支持 {index}{total}