You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 3
Next »
接口作用
自定义修改决策平台的外观主题
开放资源
常量资源
提供商资源
服务资源
组件资源和模型资源
示例
BI.module("my.theme", {
version: 1.0,
components: ["dec.workbench.tabs","dec.workbench.panel","dec.menu","dec.header"],
constants: ["dec.constant.config"],
services: ["dec.service.tabs"],
providers: ["dec.provider.layout"]
})
BI.config("dec.constant.config", function (config) {
config.theme.config4Frame.west.width = 240;
config.theme.config4EntryPane.pinable = false;
return config;
});
// 配置自定义目录树
BI.config("dec.workbench.directory", function (config) {
config.type = "my.theme.directory";
return config;
});
// 定义自定义目录树组件,具体实现见demo
!(function () {
var Directory= BI.inherit(BI.Widget, {
render: function () {
}
});
BI.component("my.theme.directory", Directory);
})();
效果
效果为屏蔽掉10.0的侧边栏,将目录和管理系统节点整合到一起
http://git.fanruan.com/dailer/demo-theme-original
注意事项
后端支持 主题插件开发接口
主题插件开发接口
更深入的高级自定义请学习fineui