fixed #1222
This commit is contained in:
parent
8b73f45bf7
commit
8e7ac21077
4 changed files with 16 additions and 4 deletions
|
@ -194,14 +194,14 @@
|
|||
mounted () {
|
||||
if (!this.confirm) {
|
||||
// this.showTitle = this.$refs.title.innerHTML != `<div class="${prefixCls}-title-inner"></div>`;
|
||||
this.showTitle = this.$slots.title !== undefined;
|
||||
this.showTitle = (this.$slots.title !== undefined) || this.title;
|
||||
}
|
||||
// if trigger and children is input or textarea,listen focus & blur event
|
||||
if (this.trigger === 'focus') {
|
||||
this.isInput = true;
|
||||
this.$nextTick(() => {
|
||||
const $children = this.getInputChildren();
|
||||
if ($children) {
|
||||
this.isInput = true;
|
||||
$children.addEventListener('focus', this.handleFocus, false);
|
||||
$children.addEventListener('blur', this.handleBlur, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue