2025-12-04 15:24:44 +08:00
|
|
|
|
import type { ButtonConfig } from '../../../index.type';
|
2025-12-24 19:02:34 +08:00
|
|
|
|
import type { BimEngine } from '../../../../../bim-engine';
|
2025-12-25 18:57:09 +08:00
|
|
|
|
import { getIcon } from '../../../../../utils/icon-manager';
|
2025-12-03 15:46:18 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
2025-12-24 19:02:34 +08:00
|
|
|
|
* 设置按钮配置
|
2025-12-03 15:46:18 +08:00
|
|
|
|
*/
|
2025-12-24 19:02:34 +08:00
|
|
|
|
export const createSettingButton = (_engine: BimEngine): ButtonConfig => {
|
|
|
|
|
|
return {
|
|
|
|
|
|
id: 'setting',
|
|
|
|
|
|
groupId: 'group-2',
|
|
|
|
|
|
type: 'button',
|
|
|
|
|
|
label: 'toolbar.setting',
|
2025-12-25 18:57:09 +08:00
|
|
|
|
icon: getIcon('设置'),
|
2025-12-24 19:02:34 +08:00
|
|
|
|
keepActive: false,
|
|
|
|
|
|
onClick: (button) => {
|
|
|
|
|
|
// 预留:未来接入设置逻辑(此处已注入 engine)
|
|
|
|
|
|
console.log('设置按钮被点击:', button.id);
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
2025-12-03 15:46:18 +08:00
|
|
|
|
};
|