将addFloatingArea函数名称修改为addFloatingPanel
This commit is contained in:
@@ -49,8 +49,8 @@ const dockLayoutRef = ref(null)
|
||||
// 区域ID计数器
|
||||
let areaIdCounter = 1
|
||||
|
||||
// 添加新的浮动区域
|
||||
const addFloatingArea = () => {
|
||||
// 添加新的浮动面板
|
||||
const addFloatingPanel = () => {
|
||||
// 获取父容器尺寸以计算居中位置
|
||||
let x = 50 + (areaIdCounter - 2) * 20
|
||||
let y = 50 + (areaIdCounter - 2) * 20
|
||||
@@ -124,7 +124,7 @@ const onToggleToolbar = (id) => {
|
||||
|
||||
// 暴露方法给父组件
|
||||
defineExpose({
|
||||
addFloatingArea
|
||||
addFloatingPanel
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user