mirror of https://github.com/ElemeFE/element
parent
93790b654f
commit
94833532d8
|
@ -3,7 +3,6 @@
|
||||||
import menuMixin from './menu-mixin';
|
import menuMixin from './menu-mixin';
|
||||||
import Emitter from 'element-ui/src/mixins/emitter';
|
import Emitter from 'element-ui/src/mixins/emitter';
|
||||||
import Popper from 'element-ui/src/utils/vue-popper';
|
import Popper from 'element-ui/src/utils/vue-popper';
|
||||||
import Clickoutside from 'element-ui/src/utils/clickoutside';
|
|
||||||
|
|
||||||
const poperMixins = {
|
const poperMixins = {
|
||||||
props: {
|
props: {
|
||||||
|
@ -30,8 +29,6 @@
|
||||||
|
|
||||||
components: { ElCollapseTransition },
|
components: { ElCollapseTransition },
|
||||||
|
|
||||||
directives: { Clickoutside },
|
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
index: {
|
index: {
|
||||||
type: String,
|
type: String,
|
||||||
|
@ -229,11 +226,6 @@
|
||||||
this.referenceElm = this.$el;
|
this.referenceElm = this.$el;
|
||||||
this.popperElm = this.$refs.menu;
|
this.popperElm = this.$refs.menu;
|
||||||
this.updatePlacement();
|
this.updatePlacement();
|
||||||
},
|
|
||||||
close() {
|
|
||||||
this.$nextTick(() => {
|
|
||||||
if (this.opened) this.rootMenu.closeMenu(this.index);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -323,7 +315,6 @@
|
||||||
on-mouseenter={this.handleMouseenter}
|
on-mouseenter={this.handleMouseenter}
|
||||||
on-mouseleave={this.handleMouseleave}
|
on-mouseleave={this.handleMouseleave}
|
||||||
on-focus={this.handleMouseenter}
|
on-focus={this.handleMouseenter}
|
||||||
v-clickoutside={this.close}
|
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="el-submenu__title"
|
class="el-submenu__title"
|
||||||
|
|
Loading…
Reference in New Issue