提交代码
This commit is contained in:
@@ -70,8 +70,7 @@ export class SectionAxisDialogManager extends BaseDialogManager {
|
||||
}
|
||||
},
|
||||
onReverse: () => {
|
||||
// 反向功能:第三方引擎无 API,仅输出日志
|
||||
console.log('[SectionAxisDialogManager] 反向剖切(暂不支持)');
|
||||
this.engineComponent?.reverseSection();
|
||||
},
|
||||
onAxisChange: (axis) => {
|
||||
console.log('[SectionAxisDialogManager] 切换轴向:', axis);
|
||||
@@ -85,13 +84,13 @@ export class SectionAxisDialogManager extends BaseDialogManager {
|
||||
/** 对话框创建后的回调,自适应高度 */
|
||||
protected onDialogCreated(): void {
|
||||
this.dialog?.fitHeight(false);
|
||||
|
||||
|
||||
// 检查 Engine 是否已初始化
|
||||
if (!this.engineComponent) {
|
||||
console.error('[SectionAxisDialogManager] Engine not initialized. Call initEngine() first.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// 自动激活默认轴向剖切(X轴)
|
||||
this.engineComponent.activeSection('x');
|
||||
}
|
||||
@@ -104,7 +103,7 @@ export class SectionAxisDialogManager extends BaseDialogManager {
|
||||
/** 销毁前的清理,销毁面板实例 */
|
||||
protected onBeforeDestroy(): void {
|
||||
this.engineComponent?.deactivateSection();
|
||||
|
||||
|
||||
if (this.panel) {
|
||||
this.panel.destroy();
|
||||
this.panel = null;
|
||||
|
||||
Reference in New Issue
Block a user