!38 [添加] table的tr中的contextmenu事件,用于集成行及右键菜单处理

Merge pull request !38 from 鄢鹏权/N/A
This commit is contained in:
就眠儀式 2022-03-28 07:15:15 +00:00 committed by Gitee
commit 264866a007
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -101,6 +101,10 @@ const rowDoubleClick = function (data: any,evt:MouseEvent) {
emit("row-double", data,evt);
};
const contextmenu = function (data: any,evt:MouseEvent) {
emit("contextmenu", data,evt);
};
// table
const print = function () {
let subOutputRankPrint = document.getElementById(tableId) as HTMLElement;
@ -290,6 +294,7 @@ onMounted(() => {
<tr
@click.stop="rowClick(data,$event)"
@dblclick.stop="rowDoubleClick(data,$event)"
@contextmenu.stop="contextmenu(data,$event)"
>
<!-- 复选框 -->
<td v-if="checkbox" class="layui-table-col-special">