fix: dialog call mounted multiple times #152

This commit is contained in:
tangjinzhou 2018-09-11 12:23:44 +08:00
parent 85a9aca492
commit 4df8e3743f

View File

@ -203,7 +203,7 @@ export default {
let footer
if (tempFooter) {
footer = (
<div class={`${prefixCls}-footer`} ref='footer'>
<div key='footer' class={`${prefixCls}-footer`} ref='footer'>
{tempFooter}
</div>
)
@ -212,7 +212,7 @@ export default {
let header
if (title) {
header = (
<div class={`${prefixCls}-header`} ref='header'>
<div key='header' class={`${prefixCls}-header`} ref='header'>
<div class={`${prefixCls}-title`} id={this.titleId}>
{title}
</div>
@ -252,6 +252,7 @@ export default {
{closer}
{header}
<div
key='body'
class={`${prefixCls}-body`}
style={bodyStyle}
ref='body'