<template>
  <span class="icon-style1">
    <el-tooltip :content="$t2('脚本测试', 'components.scriptTest.title')" placement="top">
    <a @click="showDialog=true" class="tips-icon"><i class="el-icon-view el-icon-video-play"></i></a>
  </el-tooltip>
    <scriptTestDialog v-if="showDialog" :visiable.sync="showDialog"
                      :script.sync="script"></scriptTestDialog>
  </span>
</template>

<script>

export default {
  name: "scriptTestButton",
  components: {scriptTestDialog: () => import('../../components/scriptTest/dialog')},
  props: ['script'],
  data() {
    return {
      showDialog: false
    }
  }
}
</script>

<style scoped>

</style>
