Skip to content

Commit 2b6ef8e

Browse files
committed
chore: formate auto-complete code
1 parent 16224a1 commit 2b6ef8e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

components/auto-complete/__tests__/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('AutoComplete with Custom Input Element Render', () => {
2626
input.element.value = '123';
2727
input.trigger('input');
2828
Vue.nextTick(() => {
29-
expect($$('.ant-select-dropdown-menu-item').length).toBe(3);
29+
expect($$('.ant-select-item-option').length).toBe(3);
3030
done();
3131
});
3232
});

components/auto-complete/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ const AutoCompleteProps = {
2020
dropdownMenuStyle: PropTypes.style,
2121
optionLabelProp: PropTypes.string,
2222
dropdownMatchSelectWidth: PropTypes.looseBool,
23-
// onChange?: (value: SelectValue) => void;
24-
// onSelect?: (value: SelectValue, option: Object) => any;
2523
};
2624

2725
const AutoComplete = defineComponent({
@@ -86,7 +84,7 @@ const AutoComplete = defineComponent({
8684
render() {
8785
const { size, prefixCls: customizePrefixCls, dataSource } = this;
8886
let optionChildren: any;
89-
const getPrefixCls = this.configProvider.getPrefixCls;
87+
const { getPrefixCls } = this.configProvider;
9088
const prefixCls = getPrefixCls('select', customizePrefixCls);
9189
const { class: className } = this.$attrs as any;
9290
const cls = {

0 commit comments

Comments
 (0)