This commit is contained in:
Aresn 2017-06-20 16:47:37 +08:00
parent 8b73f45bf7
commit 8e7ac21077
4 changed files with 16 additions and 4 deletions

View file

@ -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);
}