将addFloatingArea函数名称修改为addFloatingPanel

This commit is contained in:
zqm
2025-11-04 10:31:12 +08:00
parent bf9d58ed68
commit e11553e122

View File

@@ -49,8 +49,8 @@ const dockLayoutRef = ref(null)
// 区域ID计数器 // 区域ID计数器
let areaIdCounter = 1 let areaIdCounter = 1
// 添加新的浮动区域 // 添加新的浮动面板
const addFloatingArea = () => { const addFloatingPanel = () => {
// 获取父容器尺寸以计算居中位置 // 获取父容器尺寸以计算居中位置
let x = 50 + (areaIdCounter - 2) * 20 let x = 50 + (areaIdCounter - 2) * 20
let y = 50 + (areaIdCounter - 2) * 20 let y = 50 + (areaIdCounter - 2) * 20
@@ -124,7 +124,7 @@ const onToggleToolbar = (id) => {
// 暴露方法给父组件 // 暴露方法给父组件
defineExpose({ defineExpose({
addFloatingArea addFloatingPanel
}) })
</script> </script>