Ai
2 Star 1 Fork 0

react-component/menu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
placements.ts 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
MadCcc 提交于 2023-05-26 16:22 +08:00 . fix: rtl placement (#639)
const autoAdjustOverflow = {
adjustX: 1,
adjustY: 1,
};
export const placements = {
topLeft: {
points: ['bl', 'tl'],
overflow: autoAdjustOverflow,
},
topRight: {
points: ['br', 'tr'],
overflow: autoAdjustOverflow,
},
bottomLeft: {
points: ['tl', 'bl'],
overflow: autoAdjustOverflow,
},
bottomRight: {
points: ['tr', 'br'],
overflow: autoAdjustOverflow,
},
leftTop: {
points: ['tr', 'tl'],
overflow: autoAdjustOverflow,
},
leftBottom: {
points: ['br', 'bl'],
overflow: autoAdjustOverflow,
},
rightTop: {
points: ['tl', 'tr'],
overflow: autoAdjustOverflow,
},
rightBottom: {
points: ['bl', 'br'],
overflow: autoAdjustOverflow,
}
};
export const placementsRtl = {
topLeft: {
points: ['bl', 'tl'],
overflow: autoAdjustOverflow,
},
topRight: {
points: ['br', 'tr'],
overflow: autoAdjustOverflow,
},
bottomLeft: {
points: ['tl', 'bl'],
overflow: autoAdjustOverflow,
},
bottomRight: {
points: ['tr', 'br'],
overflow: autoAdjustOverflow,
},
rightTop: {
points: ['tr', 'tl'],
overflow: autoAdjustOverflow,
},
rightBottom: {
points: ['br', 'bl'],
overflow: autoAdjustOverflow,
},
leftTop: {
points: ['tl', 'tr'],
overflow: autoAdjustOverflow,
},
leftBottom: {
points: ['bl', 'br'],
overflow: autoAdjustOverflow,
}
};
export default placements;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_react-component/menu.git
git@gitee.com:mirrors_react-component/menu.git
mirrors_react-component
menu
menu
master

搜索帮助