configuration-modal.vue 908 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <a-modal
  3. :title="title === 'add' ? '新增配置' : '编辑配置'"
  4. v-if="visible"
  5. :visible="visible"
  6. dialog-class="configuration-modal"
  7. @ok="handleRelaxSure"
  8. @cancel="handleRelaxCancel"
  9. >
  10. <div>
  11. 这个是账户配置弹窗
  12. </div>
  13. </a-modal>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'configuration-modal',
  18. props: {
  19. visible: {
  20. type: Boolean,
  21. default: false
  22. },
  23. title: {
  24. type: String,
  25. default: ''
  26. }
  27. },
  28. data() {
  29. return {};
  30. },
  31. methods: {
  32. handleRelaxSure() {
  33. const paramsData = {
  34. name: '123'
  35. };
  36. this.$emit('relaxSure', paramsData);
  37. },
  38. handleRelaxCancel() {
  39. this.$emit('relaxCancel');
  40. },
  41. }
  42. };
  43. </script>