first commit
This commit is contained in:
34
frontend/node_modules/antd/es/select/mergedBuiltinPlacements.js
generated
vendored
Normal file
34
frontend/node_modules/antd/es/select/mergedBuiltinPlacements.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
const getBuiltInPlacements = popupOverflow => {
|
||||
const htmlRegion = popupOverflow === 'scroll' ? 'scroll' : 'visible';
|
||||
const sharedConfig = {
|
||||
overflow: {
|
||||
adjustX: true,
|
||||
adjustY: true,
|
||||
shiftY: true
|
||||
},
|
||||
htmlRegion,
|
||||
dynamicInset: true
|
||||
};
|
||||
return {
|
||||
bottomLeft: Object.assign(Object.assign({}, sharedConfig), {
|
||||
points: ['tl', 'bl'],
|
||||
offset: [0, 4]
|
||||
}),
|
||||
bottomRight: Object.assign(Object.assign({}, sharedConfig), {
|
||||
points: ['tr', 'br'],
|
||||
offset: [0, 4]
|
||||
}),
|
||||
topLeft: Object.assign(Object.assign({}, sharedConfig), {
|
||||
points: ['bl', 'tl'],
|
||||
offset: [0, -4]
|
||||
}),
|
||||
topRight: Object.assign(Object.assign({}, sharedConfig), {
|
||||
points: ['br', 'tr'],
|
||||
offset: [0, -4]
|
||||
})
|
||||
};
|
||||
};
|
||||
function mergedBuiltinPlacements(buildInPlacements, popupOverflow) {
|
||||
return buildInPlacements || getBuiltInPlacements(popupOverflow);
|
||||
}
|
||||
export default mergedBuiltinPlacements;
|
||||
Reference in New Issue
Block a user