bug fixed
Former-commit-id: 57ef462e2e645409890c3176973694ac9fba1fbb
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
<el-dropdown
|
<el-dropdown
|
||||||
split-button
|
split-button
|
||||||
@click="handleControlBtnClick"
|
@click="handleControlBtnClick"
|
||||||
@command="handleControlItemClick">
|
@command="command => handleControlItemClick(command)">
|
||||||
<d2-icon name="times-circle"/>
|
<d2-icon name="times-circle"/>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item command="left">
|
<el-dropdown-item command="left">
|
||||||
@@ -127,21 +127,13 @@ export default {
|
|||||||
* @description 接收点击关闭控制上选项的事件
|
* @description 接收点击关闭控制上选项的事件
|
||||||
*/
|
*/
|
||||||
handleControlItemClick (command, tagName = null) {
|
handleControlItemClick (command, tagName = null) {
|
||||||
// 关闭右键菜单
|
if (tagName) {
|
||||||
this.contextmenuFlag = false
|
this.contextmenuFlag = false
|
||||||
// 判断触发方式
|
|
||||||
let pageSelect = tagName
|
|
||||||
if (pageSelect) {
|
|
||||||
if (pageSelect._isVue) {
|
|
||||||
pageSelect = null
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// 设置传递参数
|
|
||||||
const params = {
|
const params = {
|
||||||
pageSelect,
|
pageSelect: tagName,
|
||||||
vm: this
|
vm: this
|
||||||
}
|
}
|
||||||
// 根据不同的类型触发不同的关闭事件
|
|
||||||
switch (command) {
|
switch (command) {
|
||||||
case 'left':
|
case 'left':
|
||||||
this.d2adminTagCloseLeft(params)
|
this.d2adminTagCloseLeft(params)
|
||||||
|
|||||||
Reference in New Issue
Block a user