diff --git a/packages/design/src/types.ts b/packages/design/src/types.ts index bc2abd72..3eeea05b 100644 --- a/packages/design/src/types.ts +++ b/packages/design/src/types.ts @@ -128,6 +128,7 @@ export interface DialogProps { closeOnClickModal?: boolean; closeOnPressEscape?: boolean; destroyOnClose?: boolean; + showClose?: boolean; } export interface DividerProps { diff --git a/packages/form/src/FormDialog.vue b/packages/form/src/FormDialog.vue index fec88ad5..25705a68 100644 --- a/packages/form/src/FormDialog.vue +++ b/packages/form/src/FormDialog.vue @@ -11,6 +11,7 @@ :close-on-click-modal="closeOnClickModal" :close-on-press-escape="closeOnPressEscape" :destroy-on-close="destroyOnClose" + :show-close="showClose" @close="closeHandler" >
- 取 消 + 取 消 上一步 @@ -92,6 +93,8 @@ const props = withDefaults( closeOnClickModal?: boolean; closeOnPressEscape?: boolean; destroyOnClose?: boolean; + showClose?: boolean; + showCancel?: boolean; }>(), { config: () => [], @@ -100,6 +103,8 @@ const props = withDefaults( closeOnClickModal: false, closeOnPressEscape: false, destroyOnClose: false, + showClose: true, + showCancel: true, }, ); diff --git a/packages/tdesign-vue-next-adapter/src/Dialog.vue b/packages/tdesign-vue-next-adapter/src/Dialog.vue index 0d9c0fe0..11d652f3 100644 --- a/packages/tdesign-vue-next-adapter/src/Dialog.vue +++ b/packages/tdesign-vue-next-adapter/src/Dialog.vue @@ -5,6 +5,7 @@ :header="title" :width="width" :mode="fullscreen ? 'full-screen' : 'modal'" + :close-btn="showClose" :close-on-overlay-click="closeOnClickModal" :close-on-esc-keydown="closeOnPressEscape" :destroy-on-close="destroyOnClose"