!38 [添加] table的tr中的contextmenu事件,用于集成行及右键菜单处理
Merge pull request !38 from 鄢鹏权/N/A
This commit is contained in:
commit
264866a007
@ -101,6 +101,10 @@ const rowDoubleClick = function (data: any,evt:MouseEvent) {
|
|||||||
emit("row-double", data,evt);
|
emit("row-double", data,evt);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const contextmenu = function (data: any,evt:MouseEvent) {
|
||||||
|
emit("contextmenu", data,evt);
|
||||||
|
};
|
||||||
|
|
||||||
// 打印 table 数据
|
// 打印 table 数据
|
||||||
const print = function () {
|
const print = function () {
|
||||||
let subOutputRankPrint = document.getElementById(tableId) as HTMLElement;
|
let subOutputRankPrint = document.getElementById(tableId) as HTMLElement;
|
||||||
@ -290,6 +294,7 @@ onMounted(() => {
|
|||||||
<tr
|
<tr
|
||||||
@click.stop="rowClick(data,$event)"
|
@click.stop="rowClick(data,$event)"
|
||||||
@dblclick.stop="rowDoubleClick(data,$event)"
|
@dblclick.stop="rowDoubleClick(data,$event)"
|
||||||
|
@contextmenu.stop="contextmenu(data,$event)"
|
||||||
>
|
>
|
||||||
<!-- 复选框 -->
|
<!-- 复选框 -->
|
||||||
<td v-if="checkbox" class="layui-table-col-special">
|
<td v-if="checkbox" class="layui-table-col-special">
|
||||||
|
Loading…
Reference in New Issue
Block a user