Thanks to visit codestin.com
Credit goes to github.com

Skip to content

perf:(Form): Rule 支持布尔类型的表单项#1015

Merged
Pilotager merged 1 commit into
mallfoundry:mainfrom
felix9ia:main
Jun 25, 2026
Merged

perf:(Form): Rule 支持布尔类型的表单项#1015
Pilotager merged 1 commit into
mallfoundry:mainfrom
felix9ia:main

Conversation

@felix9ia

Copy link
Copy Markdown
Contributor

当前的Form.Item / Field 不支持布尔类型的值,比如

    <Field
            label="交付状态"
            name="isCustomerReceived"
            rules={[
              {
                 required: true,
                message: "请选择交付状态",
                trigger: "onChange",
              },
            ]}
          >
            <Radio.Group direction="horizontal">
              <Radio name={false}>未交付</Radio>
              {/* eslint-disable-next-line react/jsx-boolean-value */}
              <Radio name={true}>已交付</Radio>
            </Radio.Group>
          </Field>

@Pilotager Pilotager merged commit 8b49a60 into mallfoundry:main Jun 25, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants