Browse Source
Merge in DESIGN/design from ~ZHANYING/design:release/11.0 to release/11.0 * commit 'e0b5f092fb397effbc8bf479091e4f7f7d43489c': 代码质量检测 feat: FRM支持屏蔽在线资源 REPORT-151746release/11.0
2 changed files with 43 additions and 0 deletions
@ -0,0 +1,39 @@
|
||||
package com.fr.design.mainframe.share; |
||||
|
||||
import com.fr.config.ConfigContext; |
||||
import com.fr.config.DefaultConfiguration; |
||||
import com.fr.config.Identifier; |
||||
import com.fr.config.holder.Conf; |
||||
import com.fr.config.holder.factory.Holders; |
||||
|
||||
/** |
||||
* ComponentShare 全局配置 |
||||
* |
||||
* @author Zhanying |
||||
* @since 11.0 |
||||
* Created on 2025/4/7 |
||||
*/ |
||||
public class ComponentShareConfig extends DefaultConfiguration { |
||||
private static ComponentShareConfig config = null; |
||||
|
||||
public static ComponentShareConfig getInstance() { |
||||
if (config == null) { |
||||
config = ConfigContext.getConfigInstance(ComponentShareConfig.class); |
||||
} |
||||
return config; |
||||
} |
||||
|
||||
/** |
||||
* 是否显示在线组件 |
||||
*/ |
||||
@Identifier("showOnlineWidget") |
||||
private Conf<Boolean> showOnlineWidget = Holders.simple(true); |
||||
|
||||
public boolean isShowOnlineWidget() { |
||||
return showOnlineWidget.get(); |
||||
} |
||||
|
||||
public void setShowOnlineWidget(boolean showOnlineWidget) { |
||||
this.showOnlineWidget.set(showOnlineWidget); |
||||
} |
||||
} |
Loading…
Reference in new issue