Skip to content

Commit

Permalink
fix: 修复 select 弹窗定位问题
Browse files Browse the repository at this point in the history
  • Loading branch information
韩高钶 committed Aug 19, 2024
1 parent 618d040 commit b72ffb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/components/Select/placements.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const autoAdjustOverflow = {
adjustX: 1,
adjustY: 1,
alwaysByViewport: true,
};

export default {
Expand All @@ -22,16 +23,16 @@ export default {
topLeft: {
points: ['bl', 'tl'],
overflow: autoAdjustOverflow,
offset: [0, -8]
offset: [0, -8],
},
topCenter: {
points: ['bc', 'tc'],
overflow: autoAdjustOverflow,
offset: [0, -8]
offset: [0, -8],
},
topRight: {
points: ['br', 'tr'],
overflow: autoAdjustOverflow,
offset: [0, -8]
offset: [0, -8],
},
};

0 comments on commit b72ffb0

Please sign in to comment.