<template>
  <div>
    <div>value 值：{{ value }}</div>
    <br />
    <tiny-button @click="click">点击清除</tiny-button>
    <br />
    <br />
    <tiny-text-popup v-model="value"></tiny-text-popup>
  </div>
</template>

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

export default {
  components: {
    TinyTextPopup,
    TinyButton
  },
  data() {
    return {
      value: ''
    }
  },
  methods: {
    click() {
      this.value = ''
    }
  }
}
</script>
