/**
 * 命令式 API：显示消息提示
 * @example
 * import { showMessage } from 'huibo-ui/dist/components/Message/show-message.js';
 * showMessage({ message: '操作成功', type: 'success' });
 */
export function showMessage(options) {
    let container = document.getElementById('hb-message-container');
    if (!container) {
        container = document.createElement('div');
        container.id = 'hb-message-container';
        container.style.cssText =
            'position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:1100;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;';
        document.body.appendChild(container);
    }
    const msg = document.createElement('hb-message');
    msg.message = options.message;
    msg.type = options.type || 'info';
    msg.duration = options.duration ?? 3000;
    msg.closable = options.closable ?? false;
    container.appendChild(msg);
    return msg;
}
//# sourceMappingURL=show-message.js.map
