Skip to content

Commit

Permalink
test: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
aojunhao123 committed Feb 26, 2025
1 parent 5d7c1ad commit cb69bfa
Show file tree
Hide file tree
Showing 53 changed files with 640 additions and 2,655 deletions.
6 changes: 3 additions & 3 deletions components/auto-complete/AutoComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const AutoComplete: React.ForwardRefRenderFunction<RefSelectProps, AutoCompleteP
const prefixCls = getPrefixCls('select', customizePrefixCls);

// ============================ zIndex ============================
const [zIndex] = useZIndex('SelectLike', props.dropdownStyle?.zIndex as number);
const [zIndex] = useZIndex('SelectLike', props.popupStyle?.zIndex as number);

return (
<Select
Expand All @@ -137,8 +137,8 @@ const AutoComplete: React.ForwardRefRenderFunction<RefSelectProps, AutoCompleteP
{...omit(props, ['dataSource', 'dropdownClassName'])}
prefixCls={prefixCls}
popupClassName={popupClassName || dropdownClassName}
dropdownStyle={{
...props.dropdownStyle,
popupStyle={{
...props.popupStyle,
zIndex,
}}
className={classNames(`${prefixCls}-auto-complete`, className)}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ exports[`renders components/auto-complete/demo/allowClear.tsx correctly 1`] = `
Array [
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -42,8 +40,6 @@ Array [
<br />,
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-allow-clear ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -83,8 +79,6 @@ exports[`renders components/auto-complete/demo/basic.tsx correctly 1`] = `
Array [
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -121,8 +115,6 @@ Array [
<br />,
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -161,9 +153,6 @@ Array [
exports[`renders components/auto-complete/demo/certain-category.tsx correctly 1`] = `
<div
class="ant-select ant-select-lg ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-customize-input ant-select-show-search"
dropdownclassname="certain-category-search-dropdown css-var-test-id ant-select-css-var"
dropdownmatchselectwidth="500"
dropdownstyle="[object Object]"
style="width:250px"
>
<div
Expand Down Expand Up @@ -240,8 +229,6 @@ exports[`renders components/auto-complete/demo/certain-category.tsx correctly 1`
exports[`renders components/auto-complete/demo/custom.tsx correctly 1`] = `
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-customize-input ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -307,8 +294,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
>
<div
class="ant-select ant-select-outlined ant-select-in-form-item ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
>
<div
class="ant-select-selector"
Expand Down Expand Up @@ -370,8 +355,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
>
<div
class="ant-select ant-tree-select ant-select-outlined ant-select-in-form-item css-var-test-id ant-select-css-var ant-tree-select-css-var ant-select-single ant-select-show-arrow"
dropdownclassname="ant-tree-select-dropdown css-var-test-id ant-select-css-var ant-tree-select-css-var"
dropdownstyle="[object Object]"
>
<div
class="ant-select-selector"
Expand Down Expand Up @@ -465,8 +448,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
>
<div
class="ant-select ant-tree-select ant-select-outlined css-var-test-id ant-select-css-var ant-tree-select-css-var ant-select-single ant-select-show-arrow"
dropdownclassname="ant-tree-select-dropdown css-var-test-id ant-select-css-var ant-tree-select-css-var"
dropdownstyle="[object Object]"
style="width:30%"
>
<div
Expand Down Expand Up @@ -528,8 +509,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
</div>
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
>
<div
class="ant-select-selector"
Expand Down Expand Up @@ -592,8 +571,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
>
<div
class="ant-select ant-select-outlined ant-select-in-form-item ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-customize-input ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
>
<div
class="ant-select-selector"
Expand Down Expand Up @@ -685,8 +662,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
>
<div
class="ant-select ant-tree-select ant-select-outlined css-var-test-id ant-select-css-var ant-tree-select-css-var ant-select-single ant-select-show-arrow"
dropdownclassname="ant-tree-select-dropdown css-var-test-id ant-select-css-var ant-tree-select-css-var"
dropdownstyle="[object Object]"
style="width:30%"
>
<div
Expand Down Expand Up @@ -748,8 +723,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
</div>
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-customize-input ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
>
<div
class="ant-select-selector"
Expand Down Expand Up @@ -842,8 +815,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
>
<div
class="ant-select ant-tree-select ant-select-outlined css-var-test-id ant-select-css-var ant-tree-select-css-var ant-select-single ant-select-show-arrow"
dropdownclassname="ant-tree-select-dropdown css-var-test-id ant-select-css-var ant-tree-select-css-var"
dropdownstyle="[object Object]"
style="width:30%"
>
<div
Expand Down Expand Up @@ -905,8 +876,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
</div>
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-customize-input ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
>
<div
class="ant-select-selector"
Expand Down Expand Up @@ -1012,8 +981,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
>
<div
class="ant-select ant-tree-select ant-select-outlined css-var-test-id ant-select-css-var ant-tree-select-css-var ant-select-single ant-select-show-arrow"
dropdownclassname="ant-tree-select-dropdown css-var-test-id ant-select-css-var ant-tree-select-css-var"
dropdownstyle="[object Object]"
style="width:20%"
>
<div
Expand Down Expand Up @@ -1075,8 +1042,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
</div>
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-customize-input ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
>
<div
class="ant-select-selector"
Expand Down Expand Up @@ -1189,8 +1154,6 @@ exports[`renders components/auto-complete/demo/form-debug.tsx correctly 1`] = `
exports[`renders components/auto-complete/demo/non-case-sensitive.tsx correctly 1`] = `
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -1228,8 +1191,6 @@ exports[`renders components/auto-complete/demo/non-case-sensitive.tsx correctly
exports[`renders components/auto-complete/demo/options.tsx correctly 1`] = `
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -1302,8 +1263,6 @@ exports[`renders components/auto-complete/demo/render-panel.tsx correctly 1`] =
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownalign="[object Object]"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:120px;margin:0"
>
<div
Expand Down Expand Up @@ -1346,8 +1305,6 @@ exports[`renders components/auto-complete/demo/status.tsx correctly 1`] = `
>
<div
class="ant-select ant-select-outlined ant-select-status-error ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -1384,8 +1341,6 @@ exports[`renders components/auto-complete/demo/status.tsx correctly 1`] = `
>
<div
class="ant-select ant-select-outlined ant-select-status-warning ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -1423,9 +1378,6 @@ exports[`renders components/auto-complete/demo/status.tsx correctly 1`] = `
exports[`renders components/auto-complete/demo/uncertain-category.tsx correctly 1`] = `
<div
class="ant-select ant-select-lg ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-customize-input ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownmatchselectwidth="252"
dropdownstyle="[object Object]"
style="width:300px"
>
<div
Expand Down Expand Up @@ -1506,8 +1458,6 @@ exports[`renders components/auto-complete/demo/variant.tsx correctly 1`] = `
>
<div
class="ant-select ant-select-outlined ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -1542,8 +1492,6 @@ exports[`renders components/auto-complete/demo/variant.tsx correctly 1`] = `
</div>
<div
class="ant-select ant-select-filled ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down Expand Up @@ -1578,8 +1526,6 @@ exports[`renders components/auto-complete/demo/variant.tsx correctly 1`] = `
</div>
<div
class="ant-select ant-select-borderless ant-select-auto-complete css-var-test-id ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="css-var-test-id ant-select-css-var"
dropdownstyle="[object Object]"
style="width:200px"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
exports[`AutoComplete rtl render component should be rendered correctly in RTL direction 1`] = `
<div
class="ant-select ant-select-rtl ant-select-outlined ant-select-auto-complete css-var-root ant-select-css-var ant-select-single ant-select-show-search"
dropdownclassname="ant-select-dropdown-rtl css-var-root ant-select-css-var"
dropdownstyle="[object Object]"
>
<div
class="ant-select-selector"
Expand Down
Loading

0 comments on commit cb69bfa

Please sign in to comment.