Skip to content

进度条 Progress

展示 · 展示组件

进度反馈

按需导入wbbb-ui/components/progress

基础用法

示例代码
<script setup lang="ts">
import { WbbbProgress } from 'wbbb-ui/components/progress'
import 'wbbb-ui/styles/progress'
</script>

<template>
  <WbbbProgress />
</template>
真实移动端预览新窗口打开 ↗

状态与交互

以下状态均可在右侧的真实 Playground 中操作与验收。

默认主色成功警告危险信息

API 参考

属性(Props)

属性说明类型默认值必填
color设置主要显示颜色。string''
percentage设置需要展示的进度百分比。number0
showText控制是否显示辅助文字。booleantrue
status设置展示使用的语义状态。WbbbStatus'default'
strokeWidth设置进度条描边的粗细。number12

事件(Events)

插槽(Slots)

双向绑定

不支持 v-model。

平台说明

构建验证:H5、App Vue、微信小程序、支付宝小程序与抖音小程序。

运行时差异:H5 支持键盘焦点与减弱动效;小程序端使用等价触控交互。上传、日期选择和服务弹层应在目标端再次验收。

使用提示:更多状态组合和跨端表现请在 Playground 中验证。

Wbbb UI · 为 uni-app 产品体验而生