Skip to content

Commit

Permalink
fix(Dialog): fix dialog props duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Dec 16, 2024
1 parent 2fecf0b commit 8dc7dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dialog/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default mixins(ActionMixin, getConfigReceiverMixins<Vue, DialogConfig>('d
}
return topStyle;
},
dialogStyle(): Styles {
computedDialogStyle(): Styles {
return !this.isFullScreen ? { width: getCSSValue(this.width) } : {}; // width全屏模式不生效;
},
},
Expand Down Expand Up @@ -477,7 +477,7 @@ export default mixins(ActionMixin, getConfigReceiverMixins<Vue, DialogConfig>('d
// 非模态形态下draggable为true才允许拖拽
<div class={this.wrapClass}>
<div class={this.positionClass} style={this.positionStyle} onClick={this.overlayAction} ref="dialogPosition">
<div key="dialog" ref="dialog" class={this.dialogClass} style={this.dialogStyle}>
<div key="dialog" ref="dialog" class={this.dialogClass} style={this.computedDialogStyle}>
<div class={headerClassName} onmousedown={this.onStopDown}>
<div class={`${this.componentName}__header-content`}>
{this.getIcon()}
Expand Down

0 comments on commit 8dc7dca

Please sign in to comment.