diff --git a/src/main/resources/com/finebi/plugin/web/scripts/entry.js b/src/main/resources/com/finebi/plugin/web/scripts/entry.js index 6be62e6..e528a6c 100644 --- a/src/main/resources/com/finebi/plugin/web/scripts/entry.js +++ b/src/main/resources/com/finebi/plugin/web/scripts/entry.js @@ -3,30 +3,34 @@ */ !(function () { // 正文 - BI.config("bi.constant.design.widget.detail.table_style.font_family", function(items) { - return BI.concat(items, [{ - value: "adidasHeader", - text: "自定义字体头字体" - }, { - value: "adidasBody", - text: "自定义字体Bodyzi字体" - }]); + BI.config("bi.provider.template_style", function (p) { + p.inject({ + fonts: [{ + value: "adidasHeader", + text: "自定义字体头字体" + }, { + value: "adidasBody", + text: "自定义字体Bodyzi字体" + }] + }); }); // 标题 - BI.config("bi.constant.materials.rich_editor.font_family", function(items) { - return BI.concat(items, [{ - value: "adidasHeader", - text: "自定义字体头字体" - }, { - value: "adidasBody", - text: "自定义字体Bodyzi字体" - }]); + BI.config("bi.provider.combo.font_family", function (p) { + p.inject({ + fonts: [{ + value: "adidasHeader", + text: "自定义字体头字体" + }, { + value: "adidasBody", + text: "自定义字体Bodyzi字体" + }] + }); }); // 默认属性配置 - BI.config("bi.provider.widget.conf", function(p) { - p.config({ + BI.config("bi.provider.widget.conf", function (p) { + p.inject({ axisWidth: 0, hGridWidth: 0, vGridWidth: 0 diff --git a/src/main/resources/com/finebi/plugin/web/specific_style.js b/src/main/resources/com/finebi/plugin/web/specific_style.js index 6be62e6..e528a6c 100644 --- a/src/main/resources/com/finebi/plugin/web/specific_style.js +++ b/src/main/resources/com/finebi/plugin/web/specific_style.js @@ -3,30 +3,34 @@ */ !(function () { // 正文 - BI.config("bi.constant.design.widget.detail.table_style.font_family", function(items) { - return BI.concat(items, [{ - value: "adidasHeader", - text: "自定义字体头字体" - }, { - value: "adidasBody", - text: "自定义字体Bodyzi字体" - }]); + BI.config("bi.provider.template_style", function (p) { + p.inject({ + fonts: [{ + value: "adidasHeader", + text: "自定义字体头字体" + }, { + value: "adidasBody", + text: "自定义字体Bodyzi字体" + }] + }); }); // 标题 - BI.config("bi.constant.materials.rich_editor.font_family", function(items) { - return BI.concat(items, [{ - value: "adidasHeader", - text: "自定义字体头字体" - }, { - value: "adidasBody", - text: "自定义字体Bodyzi字体" - }]); + BI.config("bi.provider.combo.font_family", function (p) { + p.inject({ + fonts: [{ + value: "adidasHeader", + text: "自定义字体头字体" + }, { + value: "adidasBody", + text: "自定义字体Bodyzi字体" + }] + }); }); // 默认属性配置 - BI.config("bi.provider.widget.conf", function(p) { - p.config({ + BI.config("bi.provider.widget.conf", function (p) { + p.inject({ axisWidth: 0, hGridWidth: 0, vGridWidth: 0