import { Tag } from 'antd' import { InfoCircleOutlined, BulbOutlined, WarningOutlined, CloseOutlined, } from '@ant-design/icons' import './BottomHintBar.css' /** * 底部固定提示栏组件 * 在页面底部显示当前悬停按钮的实时说明 * @param {Object} props * @param {boolean} props.visible - 是否显示提示栏 * @param {Object} props.hintInfo - 当前提示信息 * @param {Function} props.onClose - 关闭回调 * @param {string} props.theme - 主题:light, dark, gradient */ function BottomHintBar({ visible = false, hintInfo = null, onClose, theme = 'gradient' }) { if (!visible || !hintInfo) return null return (
e.stopPropagation()} >
{/* 左侧:图标和标题 */}
{hintInfo.icon}

{hintInfo.title}

{hintInfo.badge && ( {hintInfo.badge.text} )}
{/* 中间:主要信息 */}
{/* 描述 */} {hintInfo.description && (
{hintInfo.description}
)} {/* 快速提示 */} {hintInfo.quickTip && (
{hintInfo.quickTip}
)} {/* 警告 */} {hintInfo.warning && (
{hintInfo.warning}
)}
{/* 右侧:快捷键和关闭 */}
{hintInfo.shortcut && (
快捷键 {hintInfo.shortcut}
)} {onClose && ( )}
{/* 进度指示条 */}
) } export default BottomHintBar