本帖最后由 时光不老 于 2022-3-16 12:43 编辑
- var spreadNS = GC.Spread.Sheets;
- var config = GC.Spread.Sheets.Designer.DefaultConfig;
- // 操作面板按钮配置
- config.commandMap = {
- savePlan: {
- title: "保存",
- text: "保存",
- iconClass: "cmdSaveData",
- bigButton: "true",
- commandName: "savePlan",
- execute: async (context, propertyName, fontItalicChecked) => {
- }
- },
- quit: {
- title: "退出",
- text: "退出",
- iconClass: "cmdQuit",
- bigButton: "true",
- commandName: "quit",
- execute: async (context, propertyName, fontItalicChecked) => {
- quit();
- }
- }
- }
- // 初始化设计器与默认配置和上面创建的扩展组件
- new spreadNS.Designer.Designer(document.getElementById("designerHost"), config, spread);
复制代码
帮忙看下,自定义的没显示出来,显示的还是默认的。 |