/** 生成 ModuleCommon 需要的 showStyle,坐标基于 1920 × 1080 设计稿 */ export function panelShowStyle(x: number, y: number, width: number, height: number) { return { size: `width:${width}px;height:${height}px;`, position: `left:${x}px;top:${y}px;`, }; } /** 页面模块不需要配置下拉框,给 ModuleCommon 一个最小可用的 moduleData */ export const EMPTY_MODULE_DATA = { header: { show: false, }, };