提交 3552bc38 编写于 作者: ibizdev's avatar ibizdev

chitanda 发布系统代码,修复树右键菜单功能

上级 02100acc
...@@ -134,7 +134,9 @@ export class EditFormControlBase extends FormControlBase { ...@@ -134,7 +134,9 @@ export class EditFormControlBase extends FormControlBase {
protected watchData(): void { protected watchData(): void {
for (const key in this.data) { for (const key in this.data) {
if (this.data.hasOwnProperty(key)) { if (this.data.hasOwnProperty(key)) {
this.$watch(`data.${key}`, this.formDataChange); this.$watch(`data.${key}`, (newVal: any, oldVal: any) => {
this.formDataChange({ name: key, newVal, oldVal });
});
} }
} }
} }
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
:filter-node-method="filterNode" :filter-node-method="filterNode"
> >
<template slot-scope="{ node, data }"> <template slot-scope="{ node, data }">
<context-menu :contextMenuStyle="{width: '100%'}" :data="node" :renderContent="renderContextMenu"> <context-menu :contextMenuStyle="{width: '100%'}" :data="node" :renderContent="renderContextMenu.bind(_self)">
<tooltip transfer style="width: 100%;" max-width="2000" placement="right"> <tooltip transfer style="width: 100%;" max-width="2000" placement="right">
<div class="tree-node" @dblclick="doDefaultAction(node)"> <div class="tree-node" @dblclick="doDefaultAction(node)">
<span class="icon"> <span class="icon">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册