import { globalShareState } from '@vben/common-ui'; import { notification } from 'ant-design-vue'; /** * 框架共享消息适配。 * * common-ui 内部只声明消息场景,这里绑定到当前 UI 库的 notification 实现。 */ export function defineComponentAdapterMessage() { globalShareState.defineMessage({ copyPreferencesSuccess: (title, content) => { notification.success({ description: content, message: title, placement: 'bottomRight', }); }, }); }