mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-15 09:21:25 +08:00
30 lines
518 B
JavaScript
30 lines
518 B
JavaScript
const autoAdjustOverflow = {
|
|
adjustX: 1,
|
|
adjustY: 1,
|
|
};
|
|
|
|
export const placements = {
|
|
topLeft: {
|
|
points: ['bl', 'tl'],
|
|
overflow: autoAdjustOverflow,
|
|
offset: [0, -7],
|
|
},
|
|
bottomLeft: {
|
|
points: ['tl', 'bl'],
|
|
overflow: autoAdjustOverflow,
|
|
offset: [0, 7],
|
|
},
|
|
leftTop: {
|
|
points: ['tr', 'tl'],
|
|
overflow: autoAdjustOverflow,
|
|
offset: [-4, 0],
|
|
},
|
|
rightTop: {
|
|
points: ['tl', 'tr'],
|
|
overflow: autoAdjustOverflow,
|
|
offset: [4, 0],
|
|
},
|
|
};
|
|
|
|
export default placements;
|