xm-flow-modal-render.vue 511 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <div></div>
  3. </template>
  4. <script>
  5. import { Modal } from 'ant-design-vue'
  6. import components from './_import-components/xm-flow-modal-render-import'
  7. export default {
  8. name: 'XmFlowModalRender',
  9. components,
  10. created() {
  11. if (this.$attrs.modalTitle) {
  12. Modal[this.$attrs.modalType || 'info']({
  13. title: this.$attrs.modalTitle,
  14. content: this.$attrs.modalContent,
  15. })
  16. }
  17. },
  18. methods: {},
  19. }
  20. </script>
  21. <style module lang="scss">
  22. @use '@/common/design' as *;
  23. </style>