Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion components/vc-select/OptionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const OptionList = defineComponent({
if (!baseProps.multiple && baseProps.open && props.rawValues.size === 1) {
const value = Array.from(props.rawValues)[0];
const index = toRaw(memoFlattenOptions.value).findIndex(
({ data }) => data.value === value,
({ data }) => data[props.fieldNames.value] === value,
);
if (index !== -1) {
setActive(index);
Expand Down
2 changes: 1 addition & 1 deletion components/vc-virtual-list/hooks/useScrollTo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function useScrollTo(
});
};

syncScroll(3);
syncScroll(5);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个改动原因是什么

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个改动原因是什么

3的话,我发现第一次出现的时候,高度会对不上

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个改动原因是什么

就是没有精确聚焦到active的那一项

}
};
}