downloadTemplate.vue 825 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <el-dialog
  3. title="提示"
  4. :visible.sync="templateVisible"
  5. width="70%"
  6. :before-close="handleClose"
  7. :close-on-click-modal="false"
  8. >
  9. <span>这是一段信息</span>
  10. <span slot="footer" class="dialog-footer">
  11. <el-button @click="templateVisible = false">取 消</el-button>
  12. <el-button type="primary" @click="templateVisible = false"
  13. >确 定</el-button
  14. >
  15. </span>
  16. </el-dialog>
  17. </template>
  18. <script>
  19. export default {
  20. name: "inStock",
  21. props: {
  22. downloadTemplateVisible: {
  23. type: Boolean,
  24. default: false,
  25. },
  26. },
  27. data() {
  28. return {
  29. templateVisible: false,
  30. };
  31. },
  32. created() {},
  33. methods: {},
  34. watch: {
  35. downloadTemplateVisible() {
  36. this.templateVisible = this.downloadTemplateVisible;
  37. },
  38. },
  39. };
  40. </script>