Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contentschildren

接口作用

自定义修改决策平台的外观主题

开放资源

常量资源

提供商资源

服务资源

组件资源和模型资源

 

...

 

Code Block
languagejs
title声明模块
collapsetrue
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"]
})
Code Block
languagejs
title配置资源
collapsetrue
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;
});
Code Block
languagejs
title定义组件
collapsetrue
//  定义自定义目录树组件,具体实现见demo
!(function () {
    var Directory= BI.inherit(BI.Widget, {
        render: function () {
             
        }
    });
    BI.component("my.theme.directory", Directory);
})();

 

效果

示例

屏蔽掉10.0的侧边栏,将目录和管理系统节点整合到一起,demo不断更新中。。。效果为屏蔽掉10.0的侧边栏,将目录和管理系统节点整合到一起

http://git.fanruan.com/dailer/demo-theme-original

注意事项

后端支持  主题插件开发接口ThemeVariousProvider接口主题插件开发接口

View file

更深入的高级自定义请学习fineui

...

name10.0%E5%86%B3%E7%AD%96%E5%B9%B3%E5%8F%B0%E4%B8%BB%E9%A2%98%E7%9B%B8%E5%85%B3.doc
height250

...