Browse Source

REPORT-58250 文件选择器弹窗-组件安装弹窗的文件格式,需要有zip格式

final/10.0
Henry.Wang 3 years ago
parent
commit
ab761bb2f3
  1. 3
      designer-form/src/main/java/com/fr/design/mainframe/share/action/InstallComponentAction.java

3
designer-form/src/main/java/com/fr/design/mainframe/share/action/InstallComponentAction.java

@ -52,7 +52,8 @@ public class InstallComponentAction extends UpdateAction {
title(Toolkit.i18nText("Fine-Design_Basic_Select")).
filters(new FileChooser.ExtensionFilter[]{
new FileChooser.ExtensionFilter("reu", "*.reu"),
new FileChooser.ExtensionFilter("reus", "*.reus")}).
new FileChooser.ExtensionFilter("reus", "*.reus"),
new FileChooser.ExtensionFilter("zip", "*.zip")}).
build();
int returnValue = fileChooserProvider.showDialog(null);
installComponent(returnValue, fileChooserProvider.getSelectedFiles());

Loading…
Cancel
Save