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

130 lines
2.1 KiB
Markdown
Raw Normal View History

2021-10-25 17:13:23 +00:00
::: title 基础使用
2021-10-19 14:28:44 +00:00
:::
2021-09-28 01:42:28 +00:00
::: demo
<template>
2021-10-01 10:20:41 +00:00
<lay-progress percent="70"></lay-progress>
2021-09-28 01:42:28 +00:00
<br>
<lay-progress percent="60"></lay-progress>
</template>
<script>
import { ref } from 'vue';
2021-09-28 01:42:28 +00:00
export default {
setup() {
return {
}
}
}
</script>
:::
2021-09-29 02:56:20 +00:00
2021-10-25 17:13:23 +00:00
::: title 尺寸大小
2021-10-19 14:28:44 +00:00
:::
2021-09-29 02:56:20 +00:00
::: demo
<template>
2021-10-26 18:04:47 +00:00
<lay-progress percent="40" size="big"></lay-progress>
2021-09-29 02:56:20 +00:00
<br>
2021-10-26 18:04:47 +00:00
<lay-progress percent="60" size="big" theme="green"></lay-progress>
2021-09-29 02:56:20 +00:00
<br>
2021-10-26 18:04:47 +00:00
<lay-progress percent="80" size="big" theme="cyan"></lay-progress>
2021-09-29 02:56:20 +00:00
</template>
<script>
import { ref } from 'vue'
2021-10-26 18:04:47 +00: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 02:56:20 +00:00
export default {
setup() {
return {
}
}
}
</script>
:::
2021-10-01 10:20:41 +00:00
2021-10-25 17:13:23 +00:00
::: title 显示文字
2021-10-19 14:28:44 +00:00
:::
2021-10-01 10:20:41 +00:00
::: demo
<template>
2021-10-15 06:27:58 +00:00
<lay-progress percent="80" :show-text="showText"></lay-progress>
2021-10-01 10:20:41 +00:00
<br/>
<br/>
2021-10-15 06:27:58 +00:00
<lay-progress percent="80" :show-text="showText" text="销售量"></lay-progress>
2021-10-01 10:20:41 +00:00
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
2021-10-15 06:27:58 +00:00
const showText = ref(true)
2021-10-01 10:20:41 +00:00
return {
2021-10-15 06:27:58 +00:00
showText
2021-10-01 10:20:41 +00:00
}
}
}
</script>
:::
::: title 进度属性
2021-10-13 02:19:38 +00:00
:::
2021-10-12 10:00:09 +00:00
2021-11-07 07:55:08 +00:00
::: table
| 属性 | 描述 | 可选值 |
| -------- | -------- | --------------------------------------------- |
| percent | 进度 | -- |
| theme | 主题 | `orange` `green` `cyan` `blue` `black` `gray` |
| size | 尺寸 | `big` |
| text | 提示 | -- |
| color | 颜色 | -- |
| showText | 展示描述 | -- |
2021-11-07 07:55:08 +00:00
2021-11-07 07:56:24 +00:00
:::
2021-12-16 09:57:59 +00:00
::: comment
:::