From 7317033691b38f05a1334da757a17279dbaedb8f Mon Sep 17 00:00:00 2001 From: xwx <1093967571@qq.com> Date: Mon, 8 Mar 2021 10:15:47 +0800 Subject: [PATCH] feat(src/controllers/constant.js src/controllers/rowcolumnoperation.js src/index.html): custom Add custom rigth click menu #514 --- src/controllers/constant.js | 9 +++++++++ src/controllers/rowColumnOperation.js | 23 +++++++++++++++++++++++ src/index.html | 8 ++++++++ 3 files changed, 40 insertions(+) diff --git a/src/controllers/constant.js b/src/controllers/constant.js index d442808..cdb9c96 100644 --- a/src/controllers/constant.js +++ b/src/controllers/constant.js @@ -288,6 +288,14 @@ function rightclickHTML(){ dataMenuseparator = false; } + const customsButtons = (config.customs || [{title: 'test'}]).map((item, index) => ` +
` + ).join(""); + const rightclickContainer = `