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>
|
2021-10-12 11:30:07 +08:00
|
|
|
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>
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
2021-11-01 01:02:21 +08:00
|
|
|
::: title 进度属性
|
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
|
|
|
|
|
2021-11-01 01:02:21 +08:00
|
|
|
| 属性 | 描述 | 可选值 |
|
2021-10-12 11:30:07 +08:00
|
|
|
| -------- | -------- | --------------------------------------------- |
|
|
|
|
| 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
|
|
|
:::
|