22 lines
656 B
TypeScript
22 lines
656 B
TypeScript
import type { ButtonConfig } from '../../../index.type';
|
||
import type { BimEngine } from '../../../../../bim-engine';
|
||
import { getIcon } from '../../../../../utils/icon-manager';
|
||
|
||
/**
|
||
* 设置按钮配置
|
||
*/
|
||
export const createSettingButton = (_engine: BimEngine): ButtonConfig => {
|
||
return {
|
||
id: 'setting',
|
||
groupId: 'group-2',
|
||
type: 'button',
|
||
label: 'toolbar.setting',
|
||
icon: getIcon('设置'),
|
||
keepActive: false,
|
||
onClick: (button) => {
|
||
// 预留:未来接入设置逻辑(此处已注入 engine)
|
||
console.log('设置按钮被点击:', button.id);
|
||
}
|
||
};
|
||
};
|