fix bug of Poptip
fix bug of Poptip
This commit is contained in:
parent
9699c270dc
commit
88bb7c923d
3 changed files with 23 additions and 11 deletions
|
@ -26,7 +26,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div :class="[`${prefixCls}-inner`]" v-if="!confirm">
|
||||
<div :class="[`${prefixCls}-title`]" v-if="!!title"><slot name="title">{{ title }}</slot></div>
|
||||
<div :class="[`${prefixCls}-title`]" v-if="showTitle" v-el:title><slot name="title">{{ title }}</slot></div>
|
||||
<div :class="[`${prefixCls}-body`]"><slot name="content">{{ content }}</slot></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -83,7 +83,8 @@
|
|||
},
|
||||
data () {
|
||||
return {
|
||||
prefixCls: prefixCls
|
||||
prefixCls: prefixCls,
|
||||
showTitle: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -157,6 +158,11 @@
|
|||
this.visible = false;
|
||||
this.$emit('on-ok');
|
||||
}
|
||||
},
|
||||
ready () {
|
||||
if (!this.confirm) {
|
||||
this.showTitle = this.$els.title.innerHTML != '';
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue