layui/example/docs/zh-CN/components/progress.md

142 lines
2.3 KiB
Markdown
Raw Normal View History

::: anchor
:::
2022-02-06 05:20:07 +08:00
::: title 基本介绍
:::
::: describe 可应用于许多业务场景,如完成进度、页面加载,是一种较为直观的表达元素。
:::
2021-10-26 01:13:23 +08:00
::: title 基础使用
2021-10-19 22:28:44 +08:00
:::
2021-09-28 09:42:28 +08:00
::: demo
<template>
2021-10-01 18:20:41 +08:00
<lay-progress percent="70"></lay-progress>
2021-09-28 09:42:28 +08:00
<br>
<lay-progress percent="60"></lay-progress>
</template>
<script>
import { ref } from 'vue';
2021-09-28 09:42:28 +08:00
export default {
setup() {
return {
}
}
}
</script>
:::
2021-09-29 10:56:20 +08:00
2021-10-26 01:13:23 +08:00
::: title 尺寸大小
2021-10-19 22:28:44 +08:00
:::
2021-09-29 10:56:20 +08:00
::: demo
<template>
2021-10-27 02:04:47 +08:00
<lay-progress percent="40" size="big"></lay-progress>
2021-09-29 10:56:20 +08:00
<br>
2021-10-27 02:04:47 +08:00
<lay-progress percent="60" size="big" theme="green"></lay-progress>
2021-09-29 10:56:20 +08:00
<br>
2021-10-27 02:04:47 +08:00
<lay-progress percent="80" size="big" theme="cyan"></lay-progress>
2021-09-29 10:56:20 +08:00
</template>
<script>
import { ref } from 'vue'
2021-10-27 02:04:47 +08:00
export default {
setup() {
return {
}
}
}
</script>
:::
::: title 指定主题
:::
::: demo
<template>
<lay-progress percent="60" theme="red"></lay-progress>
<br>
<lay-progress percent="60" theme="orange"></lay-progress>
<br>
<lay-progress percent="60" theme="green"></lay-progress>
<br>
<lay-progress percent="60" theme="blue"></lay-progress>
<br>
<lay-progress percent="60" theme="cyan"></lay-progress>
</template>
<script>
import { ref } from 'vue';
2021-09-29 10:56:20 +08:00
export default {
setup() {
return {
}
}
}
</script>
:::
2021-10-01 18:20:41 +08:00
2021-10-26 01:13:23 +08:00
::: title 显示文字
2021-10-19 22:28:44 +08:00
:::
2021-10-01 18:20:41 +08:00
::: demo
<template>
2021-10-15 14:27:58 +08:00
<lay-progress percent="80" :show-text="showText"></lay-progress>
2021-10-01 18:20:41 +08:00
<br/>
<br/>
2021-10-15 14:27:58 +08:00
<lay-progress percent="80" :show-text="showText" text="销售量"></lay-progress>
2021-10-01 18:20:41 +08:00
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
2021-10-15 14:27:58 +08:00
const showText = ref(true)
2021-10-01 18:20:41 +08:00
return {
2021-10-15 14:27:58 +08:00
showText
2021-10-01 18:20:41 +08:00
}
}
}
</script>
:::
2022-01-10 01:17:03 +08:00
::: title Progress 属性
2021-10-13 10:19:38 +08:00
:::
2021-10-12 18:00:09 +08:00
2021-11-07 15:55:08 +08:00
::: table
| 属性 | 描述 | 可选值 |
| -------- | -------- | --------------------------------------------- |
| percent | 进度 | -- |
| theme | 主题 | `orange` `green` `cyan` `blue` `black` `gray` |
| size | 尺寸 | `big` |
| text | 提示 | -- |
| color | 颜色 | -- |
| showText | 展示描述 | -- |
2021-11-07 15:55:08 +08:00
2021-11-07 15:56:24 +08:00
:::
2021-12-16 17:57:59 +08:00
::: comment
2022-01-12 14:19:06 +08:00
:::
::: previousNext progress
2021-12-16 17:57:59 +08:00
:::