From a68f66228be541e6e6e01d473b5f8f29e189572d Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 10 Sep 2019 20:12:26 +0800 Subject: [PATCH] update --- .../com/finebi/plugin/web/scripts/entry.js | 40 ++++++++++--------- .../com/finebi/plugin/web/specific_style.js | 40 ++++++++++--------- 2 files changed, 44 insertions(+), 36 deletions(-) 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