From 12e33cedab6954cae8b2f5489b5a4b1861fc1049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 15 Jul 2024 14:49:10 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=87=E6=A1=A3=E7=BB=86=E5=BE=AE?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20(#2094)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: 细微优化 * Update docs/versions.md Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com> * docs: 优化 rowContextmenu 事件示例 --------- Co-authored-by: morning-star <26325820+Sight-wcg@users.noreply.github.com> --- docs/table/examples/onrowContextmenu.md | 8 +++++--- docs/versions.md | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/table/examples/onrowContextmenu.md b/docs/table/examples/onrowContextmenu.md index a63ada89..9b5968b3 100644 --- a/docs/table/examples/onrowContextmenu.md +++ b/docs/table/examples/onrowContextmenu.md @@ -23,13 +23,15 @@ layui.use(['table', 'dropdown', 'util'], function(){ ]], }); - // 行单击事件 + // 右键单击行事件 table.on('rowContextmenu(ID-table-onrowContextmenu)', function(obj){ var data = obj.data; // 得到当前行数据 + var dataCache = obj.dataCache; // 得到当前行缓存数据,包含特定字段 --- 2.8.8+ var index = obj.index; // 得到当前行索引 var tr = obj.tr; // 得到当前行