Commit a26e3065 authored by cuiwenlong7's avatar cuiwenlong7
Browse files

feat: 首尾去空格

parent 6d237289
Showing with 4 additions and 4 deletions
+4 -4
......@@ -428,8 +428,8 @@ export default class FilterStep extends Step<FilterConfig, FilterState> {
{this.renderComponent({
onSubmit: this.props.config?.hiddenSubmit ? undefined : async () => this.handleSubmit(),
onReset: this.props.config?.hiddenReset ? undefined : async () => this.handleReset(),
submitText: this.props.config?.submitText,
resetText: this.props.config?.resetText,
submitText: this.props.config?.submitText?.replace(/(^\s*)|(\s*$)/g, ""),
resetText: this.props.config?.resetText?.replace(/(^\s*)|(\s*$)/g, ""),
children: fields.map((formFieldConfig, formFieldIndex) => {
if (!ConditionHelper(formFieldConfig.condition, { record: formValue, data, step })) {
this.formFieldsMounted[formFieldIndex] = false
......
......@@ -415,8 +415,8 @@ export default class FormStep extends Step<FormConfig, FormState> {
layout,
onSubmit: this.props.config.hiddenSubmit ? undefined : async () => this.handleSubmit(),
onCancel: this.props.config.hiddenCancel ? undefined : async () => this.handleCancel(),
submitText: this.props.config?.submitText,
cancelText: this.props.config?.cancelText,
submitText: this.props.config?.submitText?.replace(/(^\s*)|(\s*$)/g, ""),
cancelText: this.props.config?.cancelText?.replace(/(^\s*)|(\s*$)/g, ""),
children: fields.map((formFieldConfig, formFieldIndex) => {
if (!ConditionHelper(formFieldConfig.condition, { record: formValue, data, step })) {
return null
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment