提交 49e71749 编写于 作者: RedPing97's avatar RedPing97

优化提示栏样式 ---fix1

上级 716f3e96
...@@ -35,6 +35,7 @@ ${ctrl.render.code} ...@@ -35,6 +35,7 @@ ${ctrl.render.code}
max-height="100%" max-height="100%"
</#if> </#if>
@row-click="rowClick($event)" @row-click="rowClick($event)"
@cell-click="cellClick"
@select-all="selectAll($event)" @select-all="selectAll($event)"
@select="select" @select="select"
@row-class-name="onRowClassName($event)" @row-class-name="onRowClassName($event)"
...@@ -1807,6 +1808,17 @@ ${gridColumn.getName()} ...@@ -1807,6 +1808,17 @@ ${gridColumn.getName()}
this.$emit('selectionchange', this.selections); this.$emit('selectionchange', this.selections);
} }
/**
* 单元格单击隐藏提示框
*
* @memberof MainBase
*/
public cellClick() {
let el: any = document.getElementsByClassName('el-tooltip__popper')[0];
if (el) {
el.style.display = 'none';
}
}
/** /**
* 行单击选中 * 行单击选中
...@@ -1816,11 +1828,6 @@ ${gridColumn.getName()} ...@@ -1816,11 +1828,6 @@ ${gridColumn.getName()}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public rowClick($event: any, ifAlways: boolean = false): void { public rowClick($event: any, ifAlways: boolean = false): void {
// 提示栏样式
let el: any = document.getElementsByClassName('el-tooltip__popper')[0];
if(el){
el.style.display = 'none';
}
// 分组行跳过 // 分组行跳过
if($event && $event.children){ if($event && $event.children){
return; return;
...@@ -2104,6 +2111,7 @@ ${gridColumn.getName()} ...@@ -2104,6 +2111,7 @@ ${gridColumn.getName()}
*/ */
public uiAction(row: any, tag: any, $event: any) { public uiAction(row: any, tag: any, $event: any) {
// this.rowClick(row, true); // this.rowClick(row, true);
this.cellClick();
$event.stopPropagation(); $event.stopPropagation();
<#if ctrl.getPSAppViewLogics()??> <#if ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as logic> <#list ctrl.getPSAppViewLogics() as logic>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册