1 changed files with 31 additions and 2 deletions
@ -1,3 +1,32 @@ |
|||||||
# BI用户引导 |
# BI全局样式自定义插件 |
||||||
|
|
||||||
该插件用于引导BI新用户使用BI。 |
该插件目前版本提供两个功能: |
||||||
|
* 在仪表盘处可以使用用户自定义的字体 |
||||||
|
* 可以在新建组件的时候修改组件的默认配置(当前版本可配置图的网格线与线框粗细) |
||||||
|
|
||||||
|
## 效果示例 |
||||||
|
 |
||||||
|
 |
||||||
|
 |
||||||
|
 |
||||||
|
|
||||||
|
## 注意事项 |
||||||
|
如果要修改图的字体,需要修改插件中的entry中的代码 |
||||||
|
``` |
||||||
|
BI.config("bi.provider.template_style", function (p) { |
||||||
|
p.inject({ // 通过inject注入想要添加的配置 |
||||||
|
fonts: [{ |
||||||
|
value: "adidasHeader", // **为了改变图的样式,字体的命名应该和系统安装的字体名称一样** |
||||||
|
text: "自定义字体头字体" |
||||||
|
}, { |
||||||
|
value: "adidasBody", |
||||||
|
text: "自定义字体Bodyzi字体" |
||||||
|
}], |
||||||
|
style: { |
||||||
|
axisWidth: 0, // 默认轴线粗细 |
||||||
|
hGridWidth: 0, // 默认横向网格线粗细 |
||||||
|
vGridWidth: 0 // 默认纵向网格线粗细 |
||||||
|
} |
||||||
|
}); |
||||||
|
}); |
||||||
|
``` |
Loading…
Reference in new issue