Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dialog body class #2645

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/dialog/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,9 @@ export default mixins(ActionMixin, getConfigReceiverMixins<Vue, DialogConfig>('d
const closeClassName = this.isFullScreen
? [`${this.componentName}__close`, `${this.componentName}__close--fullscreen`]
: `${this.componentName}__close`;
const bodyClassName = this.theme === 'default' ? [`${this.componentName}__body`] : [`${this.componentName}__body__icon`];
const bodyClassName = this.theme === 'default'
? [`${this.componentName}__body`]
: [`${this.componentName}__body`, `${this.componentName}__body__icon`];

const footerContent = renderTNodeJSX(this, 'footer', defaultFooter);

Expand Down
24 changes: 12 additions & 12 deletions test/snap/__snapshots__/csr.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35240,7 +35240,7 @@ exports[`csr snapshot test > csr test ./src/config-provider/_example/dialog.vue
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
Would you like to be my friends?
</div>
Expand Down Expand Up @@ -35335,7 +35335,7 @@ exports[`csr snapshot test > csr test ./src/config-provider/_example/dialog.vue
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
Would you like to be my friends?
</div>
Expand Down Expand Up @@ -35430,7 +35430,7 @@ exports[`csr snapshot test > csr test ./src/config-provider/_example/dialog.vue
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
Would you like to be my friends?
</div>
Expand Down Expand Up @@ -35525,7 +35525,7 @@ exports[`csr snapshot test > csr test ./src/config-provider/_example/dialog.vue
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
Would you like to be my friends?
</div>
Expand Down Expand Up @@ -44821,7 +44821,7 @@ exports[`csr snapshot test > csr test ./src/dialog/_example/icon.vue 1`] = `
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
信息已全部保存,是否确认下单?
</div>
Expand Down Expand Up @@ -44913,7 +44913,7 @@ exports[`csr snapshot test > csr test ./src/dialog/_example/icon.vue 1`] = `
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
系统重启后会短暂影响页面访问,确认重启吗?
</div>
Expand Down Expand Up @@ -45005,7 +45005,7 @@ exports[`csr snapshot test > csr test ./src/dialog/_example/icon.vue 1`] = `
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
请检查推送数据是否符合要求
</div>
Expand Down Expand Up @@ -45097,7 +45097,7 @@ exports[`csr snapshot test > csr test ./src/dialog/_example/icon.vue 1`] = `
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
是否前往查看订单列表
</div>
Expand Down Expand Up @@ -46305,7 +46305,7 @@ exports[`csr snapshot test > csr test ./src/dialog/_example/warning.vue 1`] = `
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
对话框内容
</div>
Expand Down Expand Up @@ -46390,7 +46390,7 @@ exports[`csr snapshot test > csr test ./src/dialog/_example/warning.vue 1`] = `
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
对话框内容
</div>
Expand Down Expand Up @@ -46475,7 +46475,7 @@ exports[`csr snapshot test > csr test ./src/dialog/_example/warning.vue 1`] = `
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
对话框内容
</div>
Expand Down Expand Up @@ -46560,7 +46560,7 @@ exports[`csr snapshot test > csr test ./src/dialog/_example/warning.vue 1`] = `
</span>
</div>
<div
class="t-dialog__body__icon"
class="t-dialog__body t-dialog__body__icon"
>
对话框内容
</div>
Expand Down