【仅供内部供应商使用,不提供对外解答和培训】

Page tree

Versions Compared

Key

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

...

Code Block
// 管理系统
BI.config("dec.provider.management", function (provider) {
    provider.inject({
        modules: [
            {
                value: "custom_manage",
                id: "decision-management-custom-manage",
                text: "自定义管理",
                cardType: "my.custom_manage",
                cls: "setting-font",
                dev: true
            }
        ]
    });
});

BI.config也可以用来配置组件,修改组件的options信息

示例:将经典模式下侧边栏目录树组件替换成自定义的组件

Code Block
BI.config("dec.frame.classic.aside.entry_tree", function (options) {
    options.type = "your.onw.tre"; // 将组件的type替换为自定义的组件
	return options;
});