<template>
  <div>
    <div>
      <tiny-button @click="textInside = !textInside">
        {{ textInside ? '显示图标状态' : '显示文字状态' }}
      </tiny-button>
    </div>
    <br />
    <tiny-progress
      class="progress"
      :text-inside="textInside"
      :stroke-width="12"
      :percentage="100"
      status="success"
    ></tiny-progress>
    <br />
    <tiny-progress
      class="progress"
      :text-inside="textInside"
      :stroke-width="12"
      :percentage="80"
      status="warning"
    ></tiny-progress>
    <br />
    <tiny-progress
      class="progress"
      :text-inside="textInside"
      :stroke-width="12"
      :percentage="50"
      status="exception"
    ></tiny-progress>
  </div>
</template>

<script lang="jsx">
import { TinyProgress, TinyButton } from '@opentiny/vue'

export default {
  components: {
    TinyProgress,
    TinyButton
  },
  data() {
    return {
      textInside: false
    }
  }
}
</script>
