diff --git a/components/auto-complete/demo/certain-category.vue b/components/auto-complete/demo/certain-category.vue index 8ad061445..3b6e86f82 100644 --- a/components/auto-complete/demo/certain-category.vue +++ b/components/auto-complete/demo/certain-category.vue @@ -20,7 +20,7 @@ Lookup-Patterns - Certain Category. { const children = flattenChildren(slots.default?.()); @@ -132,6 +137,7 @@ const AutoComplete = defineComponent({ notFoundContent, // placeholder: '', class: cls, + popupClassName: props.popupClassName || props.dropdownClassName, ref: selectRef, }, ['dataSource', 'loading'], diff --git a/components/auto-complete/index.zh-CN.md b/components/auto-complete/index.zh-CN.md index 79caa5384..120664c61 100644 --- a/components/auto-complete/index.zh-CN.md +++ b/components/auto-complete/index.zh-CN.md @@ -34,6 +34,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/qtJm4yt45/AutoComplete.svg | defaultActiveFirstOption | 是否默认高亮第一个选项。 | boolean | true | | | defaultOpen | 是否默认展开下拉菜单 | boolean | - | | | disabled | 是否禁用 | boolean | false | | +| popupClassName | 下拉菜单的 className 属性 | string | - | 4.0 | | dropdownMatchSelectWidth | 下拉菜单和选择器同宽。默认将设置 `min-width`,当值小于选择框宽度时会被忽略。false 时会关闭虚拟滚动 | boolean \| number | true | | | dropdownMenuStyle | dropdown 菜单自定义样式 | object | | 1.5.0 | | filterOption | 是否根据输入项进行筛选。当其为一个函数时,会接收 `inputValue` `option` 两个参数,当 `option` 符合筛选条件时,应返回 `true`,反之则返回 `false`。 | boolean or function(inputValue, option) | true | | diff --git a/components/auto-complete/style/index.less b/components/auto-complete/style/index.less deleted file mode 100644 index 571e79691..000000000 --- a/components/auto-complete/style/index.less +++ /dev/null @@ -1,16 +0,0 @@ -@import '../../style/themes/index'; -@import '../../style/mixins/index'; -@import '../../input/style/mixin'; - -@input-prefix-cls: ~'@{ant-prefix}-input'; -@select-prefix-cls: ~'@{ant-prefix}-select'; -@autocomplete-prefix-cls: ~'@{select-prefix-cls}-auto-complete'; - -.@{autocomplete-prefix-cls} { - .reset-component(); - - // https://github.com/ant-design/ant-design/issues/22302 - .@{select-prefix-cls}-clear { - right: 13px; - } -} diff --git a/components/auto-complete/style/index.tsx b/components/auto-complete/style/index.tsx deleted file mode 100644 index 17626c8e4..000000000 --- a/components/auto-complete/style/index.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import '../../style/index.less'; -import './index.less'; - -// style dependencies -import '../../select/style'; diff --git a/components/style.ts b/components/style.ts index 1d0ffa3f1..f36fcfa02 100644 --- a/components/style.ts +++ b/components/style.ts @@ -25,7 +25,7 @@ import './radio/style'; // import './spin/style'; // import './select/style'; // import './switch/style'; -import './auto-complete/style'; +// import './auto-complete/style'; // import './affix/style'; // import './cascader/style'; // import './back-top/style';