mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 21:28:09 +08:00
54a2df3f53
* fix: input should have correct padding with controlHeight * chore: update snapshot * chore: update snapshot
23 lines
502 B
TypeScript
23 lines
502 B
TypeScript
import * as React from 'react';
|
|
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
|
|
|
|
demoTest('input', {
|
|
skip: ['component-token.tsx'],
|
|
});
|
|
|
|
rootPropsTest(
|
|
'input',
|
|
(Input, props) => <Input addonBefore="Bamboo" addonAfter="Light" {...props} />,
|
|
{
|
|
name: 'addon',
|
|
},
|
|
);
|
|
|
|
rootPropsTest('input', (Input, props) => <Input.Password {...props} />, {
|
|
name: 'password',
|
|
});
|
|
|
|
rootPropsTest('input', (Input, props) => <Input.TextArea {...props} />, {
|
|
name: 'textarea',
|
|
});
|