Browse Source

chore: Personalization Modal

master
wangxiang 2 years ago
parent
commit
5bb4db5cad
No known key found for this signature in database
GPG Key ID: 1BA7946AB6B232E4
  1. 2
      src/components/Modal/src/BasicModal.vue
  2. 9
      src/views/workflow/extension/form/helper/WorkflowFormDesign.vue
  3. 12
      src/views/workflow/model/helper/WorkflowModelDesign.vue

2
src/components/Modal/src/BasicModal.vue

@ -36,7 +36,7 @@
:height="getWrapperHeight" :height="getWrapperHeight"
:visible="visibleRef" :visible="visibleRef"
:modalFooterHeight="footer !== undefined && !footer ? 0 : undefined" :modalFooterHeight="footer !== undefined && !footer ? 0 : undefined"
v-bind="omit(getProps.wrapperProps, 'visible', 'height', 'modalFooterHeight')" v-bind="omit(getProps.wrapperProps, 'visible', 'height')"
@ext-height="handleExtHeight" @ext-height="handleExtHeight"
@height-change="handleHeightChange" @height-change="handleHeightChange"
> >

9
src/views/workflow/extension/form/helper/WorkflowFormDesign.vue

@ -120,3 +120,12 @@
} }
} }
</script> </script>
<style lang="less">
.ant-modal {
.ant-modal-body > .scrollbar {
padding: 0;
}
}
</style>

12
src/views/workflow/model/helper/WorkflowModelDesign.vue

@ -5,6 +5,7 @@
:canFullscreen="false" :canFullscreen="false"
:showCancelBtn="false" :showCancelBtn="false"
:showOkBtn="false" :showOkBtn="false"
:wrapperProps="{ modalFooterHeight: 0 }"
@register="registerModal" @register="registerModal"
@visible-change="handleVisibleChange" @visible-change="handleVisibleChange"
> >
@ -33,7 +34,7 @@
}); });
const workflowDesignProps = { const workflowDesignProps = {
style: { height: 'calc(100vh - 160px)' }, style: { height: '100vh' },
workflowSubmitSuccess: () => emit('success') workflowSubmitSuccess: () => emit('success')
}; };
const emit = defineEmits(['success', 'register']); const emit = defineEmits(['success', 'register']);
@ -79,3 +80,12 @@
!visible && state.workflowDesignApp.unmount(); !visible && state.workflowDesignApp.unmount();
} }
</script> </script>
<style lang="less">
.ant-modal {
.ant-modal-body > .scrollbar {
padding: 0;
}
}
</style>

Loading…
Cancel
Save