mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
9d122a6c10
* feat: AutoComplete support rootClassName * feat: AutoComplete support rootClassName * feat: update snap * feat: optimize code * feat: optimize code * Update components/auto-complete/demo/basic.tsx Signed-off-by: kiner-tang(文辉) <1127031143@qq.com> * feat: update snap * Update components/auto-complete/index.en-US.md Signed-off-by: kiner-tang(文辉) <1127031143@qq.com> * Update components/auto-complete/index.zh-CN.md Signed-off-by: kiner-tang(文辉) <1127031143@qq.com> * feat: optimize code * feat: optimize code --------- Signed-off-by: kiner-tang(文辉) <1127031143@qq.com>
16 lines
407 B
TypeScript
16 lines
407 B
TypeScript
import * as React from 'react';
|
|
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
|
|
|
|
demoTest('auto-complete', {
|
|
testRootProps: false,
|
|
});
|
|
|
|
rootPropsTest(
|
|
'auto-complete',
|
|
(AutoComplete, props) => <AutoComplete {...props} options={[{ value: 'ddd' }]} />,
|
|
{
|
|
findRootElements: () => document.querySelectorAll('.ant-select, .ant-select-dropdown'),
|
|
expectCount: 2,
|
|
},
|
|
);
|