将addFloatingArea函数名称修改为addFloatingPanel
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user