iview-mpvue
  • 首页
  • 布局
    • Layout 栅格布局
    • Grid 宫格
    • Panel 面板
    • List 列表
    • Card 卡片
  • 基础组件
    • Button 按钮
    • Color 色彩
    • Icon 图标
  • 导航
    • TabBar 标签栏
    • Tabs 标签页
    • Drawer 抽屉
    • Page 分页
    • Steps 步骤条
    • NoticeBar 通告栏
    • Index 索引选择器
    • Sticky 吸顶容器
  • 操作反馈
    • ActionSheet 动作面板
    • Toast 轻提示
    • Modal 对话框
    • Message 全局提醒
    • Spin 加载中
    • Swipeout 滑动菜单
  • 视图
    • Badge 徽章
    • Alert 警告提示
    • Tag 标签
    • Progress 进度条
    • Avatar 头像
    • CountDown 倒计时
    • Divider 分隔符
    • Collapse 折叠面板
    • LoadMore 页底提示
  • 表单
    • Input 输入框
    • Radio 单选
    • Checkbox 复选
    • Switch 开关
    • Rate 评分
    • InputNumber 数字输入框
Powered by GitBook
On this page
  • 概述
  • 使用指南
  • 示例
  • API

Was this helpful?

  1. 视图

Progress 进度条

概述

展示操作或任务的当前进度,比如上传文件。

使用指南

在.vue中引入组件

<script>
    import progress from 'iview-mpvue/dist/components/progress/progress'
</script>

在main.js中引入样式文件

import 'iview-mpvue/dist/components/progress/style/css'

示例

<div class="progress-item">
    <i-progress percent="25"></i-progress>
    <i-progress percent="45" status="active"></i-progress>
    <i-progress percent="65" status="wrong"></i-progress>
    <i-progress percent="100" status="success"></i-progress>
    <i-progress percent="25" :hide-info="true"></i-progress>
</div>
<div class="progress-item">
    <i-progress :percent="percent" :status="status"></i-progress>
    <i-button @click="handleAdd" type="ghost">增加</i-button>
    <i-button @click="handleReduce" type="ghost">减少</i-button>
</div>

API

Progress properties

属性

说明

类型

默认值

i-class

自定义 class 类名

String

-

percent

百分比

Number

0

status

状态,可选值为 normal、active、wrong、success

String

normal

stroke-width

进度条的线宽,单位 px

Number

10

hide-info

隐藏数值或状态图标

Boolean

false

PreviousTag 标签NextAvatar 头像

Last updated 5 years ago

Was this helpful?