forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(AutoComplete): AutoComplete support rootClassName (ant-design#44055
) * 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>
- Loading branch information
1 parent
bd54d4e
commit 9d122a6
Showing
4 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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, | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters