2020-08-13 11:47:56 +08:00
|
|
|
<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>
|
2021-04-27 19:23:26 +08:00
|
|
|
<veui-checkbox
|
|
|
|
v-model="indeterminate"
|
|
|
|
>
|
|
|
|
Indeterminate
|
|
|
|
</veui-checkbox>
|
2020-08-13 11:47:56 +08:00
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<veui-progress
|
|
|
|
:type="type"
|
|
|
|
:value="value"
|
|
|
|
:desc="desc"
|
|
|
|
:autosucceed="autoSucceed"
|
2021-04-27 19:23:26 +08:00
|
|
|
:indeterminate="indeterminate"
|
2020-08-13 11:47:56 +08:00
|
|
|
: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,
|
2021-04-27 19:23:26 +08:00
|
|
|
autoSucceed: true,
|
|
|
|
indeterminate: false
|
2020-08-13 11:47:56 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-09-15 20:03:51 +08:00
|
|
|
<style lang="less" scoped>
|
2020-08-13 11:47:56 +08:00
|
|
|
section + section {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
section:last-child {
|
|
|
|
height: 140px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.veui-checkbox {
|
|
|
|
margin-right: 15px;
|
|
|
|
}
|
|
|
|
</style>
|