Browse Source

Merge pull request #541 in DESIGN/design from ~KERRY/design_10.0:10.0 to 10.0

* commit '27f460efdce3fffc3fab3c7032948aeabeff2135':
  REPORT-10617 10.0设计器中有部份9.0移动端的功能缺失
master
kerry 6 years ago
parent
commit
0fa10d2600
  1. 2
      designer-form/src/main/java/com/fr/design/mainframe/JForm.java
  2. 3
      designer-realize/src/main/java/com/fr/design/mainframe/JWorkBook.java

2
designer-form/src/main/java/com/fr/design/mainframe/JForm.java

@ -936,7 +936,7 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
*/
@Override
public PreviewProvider[] supportPreview() {
return new PreviewProvider[]{new FormPreview()};
return new PreviewProvider[]{new FormPreview(), new MobilePreview()};
}
/**

3
designer-realize/src/main/java/com/fr/design/mainframe/JWorkBook.java

@ -52,6 +52,7 @@ import com.fr.design.menu.ToolBarDef;
import com.fr.design.module.DesignModuleFactory;
import com.fr.design.parameter.ParameterDefinitePane;
import com.fr.design.parameter.ParameterInputPane;
import com.fr.design.preview.MobilePreview;
import com.fr.design.preview.PagePreview;
import com.fr.design.preview.ViewPreview;
import com.fr.design.preview.WriteEnhancePreview;
@ -889,7 +890,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> {
public PreviewProvider[] supportPreview() {
Set<PreviewProvider> set = ExtraDesignClassManager.getInstance().getArray(PreviewProvider.MARK_STRING);
return ArrayUtils.addAll(new PreviewProvider[]{
new PagePreview(), new WritePreview(), new ViewPreview(), new WriteEnhancePreview()
new PagePreview(), new WritePreview(), new ViewPreview(), new WriteEnhancePreview(), new MobilePreview()
}, set.toArray(new PreviewProvider[set.size()]));
}

Loading…
Cancel
Save