forked from opentiny/tiny-vue
27 lines
498 B
Vue
27 lines
498 B
Vue
<template>
|
|
<div>
|
|
<div>
|
|
<tiny-button @click="showTest = !showTest">{{ showTest ? '隐藏' : '显示' }}文字</tiny-button>
|
|
</div>
|
|
<br />
|
|
<tiny-progress class="progress" :show-text="showTest" :percentage="50"></tiny-progress>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="jsx">
|
|
import { Progress, Button } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyProgress: Progress,
|
|
TinyButton: Button
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
showTest: true
|
|
}
|
|
}
|
|
}
|
|
</script>
|