Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"dependencies": {
"@rc-component/trigger": "^3.0.0",
"@rc-component/util": "^1.3.0",
"@rc-component/virtual-list": "^1.0.1",
"clsx": "^2.1.1",
"rc-overflow": "^1.5.0",
"rc-virtual-list": "^3.5.2"
"rc-overflow": "^1.5.0"
},
"devDependencies": {
"@rc-component/father-plugin": "^2.0.2",
Expand All @@ -76,7 +76,7 @@
"prettier": "^3.1.1",
"querystring": "^0.2.1",
"rc-dialog": "^9.0.0",
"rc-test": "^7.0.9",
"rc-test": "^7.1.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.2.2"
Expand Down
2 changes: 1 addition & 1 deletion src/BaseSelect/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { AlignType, BuildInPlacements } from '@rc-component/trigger/lib/interface';
import { clsx } from 'clsx';
import { getDOM } from '@rc-component/util/lib/Dom/findDOMNode';
import type { ScrollConfig, ScrollTo } from 'rc-virtual-list/lib/List';
import type { ScrollConfig, ScrollTo } from '@rc-component/virtual-list/lib/List';
import * as React from 'react';
import { useAllowClear } from '../hooks/useAllowClear';
import { BaseSelectContext } from '../hooks/useBaseProps';
Expand Down
6 changes: 3 additions & 3 deletions src/OptionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import KeyCode from '@rc-component/util/lib/KeyCode';
import useMemo from '@rc-component/util/lib/hooks/useMemo';
import omit from '@rc-component/util/lib/omit';
import pickAttrs from '@rc-component/util/lib/pickAttrs';
import type { ListRef } from 'rc-virtual-list';
import List from 'rc-virtual-list';
import type { ScrollConfig } from 'rc-virtual-list/lib/List';
import type { ListRef } from '@rc-component/virtual-list';
import List from '@rc-component/virtual-list';
import type { ScrollConfig } from '@rc-component/virtual-list/lib/List';
import * as React from 'react';
import { useEffect } from 'react';
import type { BaseOptionType, RawValueType } from './Select';
Expand Down
4 changes: 2 additions & 2 deletions tests/OptionList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { spyElementPrototypes } from '@rc-component/util/lib/test/domHook';
jest.mock('../src/utils/platformUtil');

// Mock VirtualList
jest.mock('rc-virtual-list', () => {
jest.mock('@rc-component/virtual-list', () => {
const OriReact = jest.requireActual('react');
const OriList = jest.requireActual('rc-virtual-list').default;
const OriList = jest.requireActual('@rc-component/virtual-list').default;

return OriReact.forwardRef((props, ref) => {
const oriRef = OriReact.useRef();
Expand Down
2 changes: 1 addition & 1 deletion tests/Select.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import KeyCode from '@rc-component/util/lib/KeyCode';
import { spyElementPrototypes } from '@rc-component/util/lib/test/domHook';
import { resetWarned } from '@rc-component/util/lib/warning';
import type { ScrollConfig } from 'rc-virtual-list/lib/List';
import type { ScrollConfig } from '@rc-component/virtual-list/lib/List';
import React, { StrictMode } from 'react';
import type { SelectProps } from '../src';
import Select, { OptGroup, Option, useBaseProps } from '../src';
Expand Down
2 changes: 1 addition & 1 deletion tests/__mocks__/rc-virtual-list.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import List from 'rc-virtual-list/lib/mock';
import List from '@rc-component/virtual-list/lib/mock';

export default List;
12 changes: 6 additions & 6 deletions tests/__snapshots__/Select.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports[`Select.Basic does not filter when filterOption value is false 1`] = `
>
<div
class="rc-virtual-list-holder"
style="max-height: 200px; overflow-y: auto;"
style="max-height: 200px; overflow-y: hidden;"
>
<div>
<div
Expand Down Expand Up @@ -298,7 +298,7 @@ exports[`Select.Basic render should support fieldName 1`] = `
>
<div
class="rc-virtual-list-holder"
style="max-height: 200px; overflow-y: auto;"
style="max-height: 200px; overflow-y: hidden;"
>
<div>
<div
Expand Down Expand Up @@ -344,7 +344,7 @@ exports[`Select.Basic render should support fieldName 2`] = `
>
<div
class="rc-virtual-list-holder"
style="max-height: 200px; overflow-y: auto;"
style="max-height: 200px; overflow-y: hidden;"
>
<div>
<div
Expand Down Expand Up @@ -390,7 +390,7 @@ exports[`Select.Basic render should support fieldName 3`] = `
>
<div
class="rc-virtual-list-holder"
style="max-height: 200px; overflow-y: auto;"
style="max-height: 200px; overflow-y: hidden;"
>
<div>
<div
Expand Down Expand Up @@ -463,7 +463,7 @@ exports[`Select.Basic should contain falsy children 1`] = `
>
<div
class="rc-virtual-list-holder"
style="max-height: 200px; overflow-y: auto;"
style="max-height: 200px; overflow-y: hidden;"
>
<div>
<div
Expand Down Expand Up @@ -560,7 +560,7 @@ exports[`Select.Basic should render custom dropdown correctly 1`] = `
>
<div
class="rc-virtual-list-holder"
style="max-height: 200px; overflow-y: auto;"
style="max-height: 200px; overflow-y: hidden;"
>
<div>
<div
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/Tags.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ exports[`Select.Tags OptGroup renders correctly 1`] = `
>
<div
class="rc-virtual-list-holder"
style="max-height: 200px; overflow-y: auto;"
style="max-height: 200px; overflow-y: hidden;"
>
<div>
<div
Expand Down
Loading