Browse Source

REPORT-12974 pc端》参数、表单界面》扫码优化》移动端属性没有设置扫码选项

final/10.0
Hades 6 years ago
parent
commit
683ee67089
  1. 7
      designer-form/src/main/java/com/fr/design/mainframe/WidgetPropertyPane.java

7
designer-form/src/main/java/com/fr/design/mainframe/WidgetPropertyPane.java

@ -16,6 +16,7 @@ import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.mainframe.widget.ui.FormWidgetCardPane;
import com.fr.design.widget.ui.designer.mobile.MobileWidgetDefinePane;
import com.fr.general.ComparatorUtils;
import com.fr.stable.ArrayUtils;
import javax.swing.*;
@ -173,7 +174,13 @@ public class WidgetPropertyPane extends FormDockView implements BaseWidgetProper
FormSelection selection = designer.getSelectionModel().getSelection();
WidgetPropertyUIProvider[] embeddedPropertyUIProviders = null;
if (selection != null && selection.getSelectedCreator() != null) {
XCreator xCreator = selection.getSelectedCreator();
embeddedPropertyUIProviders = selection.getSelectedCreator().getWidgetPropertyUIProviders();
if (xCreator instanceof XWScaleLayout
&& ComparatorUtils.equals(((XWScaleLayout) xCreator).getXCreatorCount(), 1)
&& ((XWScaleLayout) xCreator).getXCreator(0) instanceof XTextEditor) {
embeddedPropertyUIProviders = ((XWScaleLayout) xCreator).getXCreator(0).getWidgetPropertyUIProviders();
}
}
Set<WidgetPropertyUIProvider> set = ExtraDesignClassManager.getInstance().getArray(WidgetPropertyUIProvider.XML_TAG);
return ArrayUtils.addAll(embeddedPropertyUIProviders, set.toArray(new WidgetPropertyUIProvider[set.size()]));

Loading…
Cancel
Save