二货机器人
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
components/form/FormItem.tsx
-
components/form/__tests__/index.test.js
|
|
@ -180,6 +180,7 @@ function FormItem(props: FormItemProps): React.ReactElement { |
|
|
|
'colon', |
|
|
|
'extra', |
|
|
|
'getValueFromEvent', |
|
|
|
'getValueProps', |
|
|
|
'hasFeedback', |
|
|
|
'help', |
|
|
|
'htmlFor', |
|
|
|
|
|
@ -695,10 +695,10 @@ describe('Form', () => { |
|
|
|
expect(wrapper.find('.ant-form-item').last().hasClass('ant-form-item-with-help')).toBeFalsy(); |
|
|
|
}); |
|
|
|
|
|
|
|
it('no warning of initialValue', () => { |
|
|
|
it('no warning of initialValue & getValueProps', () => { |
|
|
|
mount( |
|
|
|
<Form> |
|
|
|
<Form.Item initialValue="bamboo"> |
|
|
|
<Form.Item initialValue="bamboo" getValueProps={() => null}> |
|
|
|
<Input /> |
|
|
|
</Form.Item> |
|
|
|
</Form>, |
|
|
|