<template>
  <div>
    <rotal-table
      v-if="show"
      :isTemplate="isTemplate"
      :datas="datas"
      :styleData="styleData"
      :keyData="keyData"
      :templateData="templateData"
    />
  </div>
</template>

<script>
import rotalTable from '../../../luckyDraw/rotary.vue';

export default {
  name: "draw",
  props: ['isTemplate', 'datas', 'styleData', 'keyData', 'templateData'],
  components: {rotalTable},
  data() {
    return {
      show: false
    }
  },
  created() {
    this.publicData.$on('qaDrawShow', args => {
      console.log('qaDrawShow-----', args)
      this.show = true;
    });
  }
}
</script>

<style scoped>

</style>
