docs_vue2/one/docs/demo/progress/default.vue
fuqiang15 2d3272b481 docs: add indeterminate prop doc for progress
Change-Id: I9deb53e977a234dfe4d23869b13ed3d93896b4c5
2021-05-25 16:56:11 +08:00

82 lines
1.3 KiB
Vue

<template>
<article>
<section>
<veui-number-input
v-model="value"
:min="0"
:max="100"
/>
</section>
<section>
<veui-checkbox v-model="desc">
Description
</veui-checkbox>
<veui-checkbox
v-model="autoSucceed"
:true-value="200"
>
Autosucceed
</veui-checkbox>
<veui-checkbox
v-model="type"
true-value="circular"
false-value="bar"
>
Circular
</veui-checkbox>
<veui-checkbox
v-model="indeterminate"
>
Indeterminate
</veui-checkbox>
</section>
<section>
<veui-progress
:type="type"
:value="value"
:desc="desc"
:autosucceed="autoSucceed"
:indeterminate="indeterminate"
:decimal-place="1"
:min="0"
:max="100"
/>
</section>
</article>
</template>
<script>
import { Progress, NumberInput, Checkbox } from 'veui'
export default {
components: {
'veui-progress': Progress,
'veui-number-input': NumberInput,
'veui-checkbox': Checkbox
},
data () {
return {
type: 'bar',
value: 66.6,
desc: true,
autoSucceed: true,
indeterminate: false
}
}
}
</script>
<style lang="less" scoped docs>
section + section {
margin-top: 20px;
}
section:last-child {
height: 140px;
}
.veui-checkbox {
margin-right: 15px;
}
</style>