Browse Source

REPORT-34091 当公式为空时也保存按钮的状态

feature/big-screen
Henry.Wang 4 years ago
parent
commit
7f06d48e3e
  1. 3
      designer-realize/src/main/java/com/fr/quickeditor/cellquick/CellFormulaQuickEditor.java

3
designer-realize/src/main/java/com/fr/quickeditor/cellquick/CellFormulaQuickEditor.java

@ -120,11 +120,12 @@ public class CellFormulaQuickEditor extends CellQuickEditor {
public void doOk() {
BaseFormula fm = formulaPane.update();
if (fm.getContent().length() <= 1) {
fm.setContent(DEFAULT_FORMULA);
formulaTextField.setText(DEFAULT_FORMULA);
} else {
formulaTextField.setText(fm.getContent());
editingCellElement.setValue(fm);
}
editingCellElement.setValue(fm);
}
}).setVisible(true);
}

Loading…
Cancel
Save