Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Feb 25, 2025
1 parent 76f2c97 commit 430ad8a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class Demo extends React.Component {
choiceTransitionName="rc-tree-select-selection__choice-zoom"
style={{ width: 300 }}
// dropdownStyle={{ height: 200, overflow: 'auto' }}
dropdownAlign={{
popupAlign={{
overflow: { adjustY: 0, adjustX: 0 },
offset: [0, 2],
}}
Expand Down Expand Up @@ -327,7 +327,7 @@ class Demo extends React.Component {
<h2>Testing in extreme conditions (Boundary conditions test) </h2>
<TreeSelect
style={{ width: 200 }}
dropdownStyle={{ maxHeight: 200, overflow: 'auto' }}
popupStyle={{ maxHeight: 200, overflow: 'auto' }}
defaultValue="leaf1"
multiple
treeCheckable
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function Demo() {
placeholder={<span>Please Select</span>}
transitionName="rc-tree-select-dropdown-slide-up"
style={{ width: 300 }}
dropdownStyle={{ maxHeight: 200, overflow: 'auto', zIndex: 1500 }}
popupStyle={{ maxHeight: 200, overflow: 'auto', zIndex: 1500 }}
showSearch
allowClear
{...iconProps}
Expand All @@ -99,7 +99,7 @@ function Demo() {
placeholder={<span>Please Select</span>}
transitionName="rc-tree-select-dropdown-slide-up"
style={{ width: 300 }}
dropdownStyle={{ maxHeight: 200, overflow: 'auto', zIndex: 1500 }}
popupStyle={{ maxHeight: 200, overflow: 'auto', zIndex: 1500 }}
showSearch
allowClear
{...iconPropsFunction}
Expand Down
2 changes: 1 addition & 1 deletion examples/filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Demo extends React.Component {
<h2>use treeDataSimpleMode</h2>
<TreeSelect
style={{ width: 300 }}
dropdownStyle={{ maxHeight: 200, overflow: 'auto' }}
popupStyle={{ maxHeight: 200, overflow: 'auto' }}
placeholder={<i>请下拉选择</i>}
treeLine
maxTagTextLength={10}
Expand Down
4 changes: 2 additions & 2 deletions tests/Select.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ describe('TreeSelect.basic', () => {
it('renders tree correctly', () => {
const wrapper = mount(
<TreeSelect
dropdownClassName="awesome"
dropdownStyle={{ width: 300 }}
popupClassName="awesome"
popupStyle={{ width: 300 }}
multiple
treeCheckable
treeDefaultExpandAll
Expand Down

0 comments on commit 430ad8a

Please sign in to comment.