chore: formate auto-complete code

pull/3053/head
Amour1688 4 years ago
parent 16224a1d47
commit 2b6ef8e10f

@ -26,7 +26,7 @@ describe('AutoComplete with Custom Input Element Render', () => {
input.element.value = '123';
input.trigger('input');
Vue.nextTick(() => {
expect($$('.ant-select-dropdown-menu-item').length).toBe(3);
expect($$('.ant-select-item-option').length).toBe(3);
done();
});
});

@ -20,8 +20,6 @@ const AutoCompleteProps = {
dropdownMenuStyle: PropTypes.style,
optionLabelProp: PropTypes.string,
dropdownMatchSelectWidth: PropTypes.looseBool,
// onChange?: (value: SelectValue) => void;
// onSelect?: (value: SelectValue, option: Object) => any;
};
const AutoComplete = defineComponent({
@ -86,7 +84,7 @@ const AutoComplete = defineComponent({
render() {
const { size, prefixCls: customizePrefixCls, dataSource } = this;
let optionChildren: any;
const getPrefixCls = this.configProvider.getPrefixCls;
const { getPrefixCls } = this.configProvider;
const prefixCls = getPrefixCls('select', customizePrefixCls);
const { class: className } = this.$attrs as any;
const cls = {

Loading…
Cancel
Save