Browse Source

Pull request #9849: REPORT-79047 【运营产品化二期】alphafine默认展示应该是第一个TAB,现在是模板商城

Merge in DESIGN/design from ~LINK.ZHAO/design:feature/x to feature/x

* commit '9572cda4b049117c5a335865cfcb888b3babc07e':
  REPORT-79047 【运营产品化二期】alphafine默认展示应该是第一个TAB,现在是模板商城 设置第一个tab为选中
feature/x
Link.Zhao 2 years ago
parent
commit
6054e12b84
  1. 7
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineFrame.java

7
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineFrame.java

@ -602,9 +602,8 @@ public class AlphaFineFrame extends JFrame {
if (alphaFineConfigManager.isProductDynamics()) {
selectedLabelList.add(new SelectedLabel(PRODUCT_NEWS, CellType.PRODUCT_NEWS));
}
// 默认选中模板商城
if (alphaFineConfigManager.hasTemplateShop()) {
selectedLabelList.add(new SelectedLabel(TEMPLATE_SHOP, CellType.TEMPLATE_SHOP, true));
selectedLabelList.add(new SelectedLabel(TEMPLATE_SHOP, CellType.TEMPLATE_SHOP));
}
if (alphaFineConfigManager.isContainDocument()) {
selectedLabelList.add(new SelectedLabel(HELP, CellType.DOCUMENT));
@ -620,8 +619,8 @@ public class AlphaFineFrame extends JFrame {
}
// 如果不展示模板商城,则list中第一个被选中
if (!alphaFineConfigManager.hasTemplateShop() && !selectedLabelList.isEmpty()) {
// 默认选中第一个tab
if (!selectedLabelList.isEmpty()) {
selectedLabelList.get(0).setSelected(true);
}

Loading…
Cancel
Save