mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
chore: fix typo customer (#37820)
* chore: prefer using @internal annotation over other markups * fix: typo
This commit is contained in:
parent
f86a5c79ec
commit
c569631f51
@ -40,7 +40,7 @@ export interface AlertProps {
|
|||||||
className?: string;
|
className?: string;
|
||||||
banner?: boolean;
|
banner?: boolean;
|
||||||
icon?: React.ReactNode;
|
icon?: React.ReactNode;
|
||||||
/** Custome closeIcon */
|
/** Custom closeIcon */
|
||||||
closeIcon?: React.ReactNode;
|
closeIcon?: React.ReactNode;
|
||||||
action?: React.ReactNode;
|
action?: React.ReactNode;
|
||||||
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
||||||
|
@ -251,7 +251,7 @@ describe('Cascader', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('can use fieldNames', () => {
|
it('can use fieldNames', () => {
|
||||||
const customerOptions = [
|
const customOptions = [
|
||||||
{
|
{
|
||||||
code: 'zhejiang',
|
code: 'zhejiang',
|
||||||
name: 'Zhejiang',
|
name: 'Zhejiang',
|
||||||
@ -290,7 +290,7 @@ describe('Cascader', () => {
|
|||||||
|
|
||||||
const { container } = render(
|
const { container } = render(
|
||||||
<Cascader
|
<Cascader
|
||||||
options={customerOptions}
|
options={customOptions}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
fieldNames={{
|
fieldNames={{
|
||||||
children: 'items',
|
children: 'items',
|
||||||
@ -311,8 +311,7 @@ describe('Cascader', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should show not found content when options.length is 0', () => {
|
it('should show not found content when options.length is 0', () => {
|
||||||
const customerOptions: any[] = [];
|
const { container } = render(<Cascader options={[]} />);
|
||||||
const { container } = render(<Cascader options={customerOptions} />);
|
|
||||||
toggleOpen(container);
|
toggleOpen(container);
|
||||||
expect(getDropdown(container)).toMatchSnapshot();
|
expect(getDropdown(container)).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
@ -398,7 +397,7 @@ describe('Cascader', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('placement work correctly', async () => {
|
it('placement work correctly', async () => {
|
||||||
const customerOptions = [
|
const customOptions = [
|
||||||
{
|
{
|
||||||
value: 'zhejiang',
|
value: 'zhejiang',
|
||||||
label: 'Zhejiang',
|
label: 'Zhejiang',
|
||||||
@ -410,7 +409,7 @@ describe('Cascader', () => {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
const { container } = render(<Cascader options={customerOptions} placement="topRight" />);
|
const { container } = render(<Cascader options={customOptions} placement="topRight" />);
|
||||||
toggleOpen(container);
|
toggleOpen(container);
|
||||||
|
|
||||||
// Inject in tests/__mocks__/rc-trigger.js
|
// Inject in tests/__mocks__/rc-trigger.js
|
||||||
|
Loading…
Reference in New Issue
Block a user