Files
bim_engine/src/components/button-group/toolbar/buttons/setting/index.ts

22 lines
656 B
TypeScript
Raw Normal View History

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-24 19:02:34 +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);
}
};
};