本帖最后由 鸳鸯配2024 于 2024-8-8 18:25 编辑
结果是这样的,它的内容不显示
- let config = GC.Spread.Sheets.Designer.DefaultConfig;
- config.commandMap = {};
- config.commandMap = {
- Welcome: {
- title: "Welcome",
- text: "Welcome",
- iconClass: "ribbon-button-welcome",
- bigButton: "true",
- commandName: "Welcome",
- execute: async (context, propertyName, fontItalicChecked) => {
- alert('Welcome to new designer.');
- }
- }
- }
- config.ribbon[0].buttonGroups.unshift({
- "label": "NewDesigner",
- "thumbnailClass": "welcome",
- "commandGroup": {
- "children": [
- {
- "direction": "vertical",
- "commands": [
- "Welcome"
- ]
- }
- ]
- }
- });
- let designer = new GC.Spread.Sheets.Designer.Designer(document.getElementById("designer-container"), config);
复制代码 没有显示的按钮,不知道哪里设置不对。
|
|