shadow-sm transition-all duration-300 hover:shadow-mdborder: noneborder-radius: 6pxhover:shadow-lg transition-all duration-200focus:border-primary focus:ring-1 focus:ring-primaryborderedrowClassName={(record, index) => index % 2 === 0 ? 'bg-white' : 'bg-gray-50'}scroll={{ x: 'max-content' }}flex items-center justify-between 布局Title level={2} 组件mb-6 flex justify-between items-center 样式bg-gradient-to-br from-blue-50 to-indigo-100shadow-lgStatistic 组件展示loading 属性hover:shadow-md transition-all duration-300hover:shadow-lg transition-all duration-200destroyOnClose 属性确保每次打开都是新实例centeredmaskClosable={false}message 组件提供反馈loading 属性显示加载指示器Popconfirm 组件二次确认统一使用App.useApp()获取message实例
import { App } from 'antd';
const { message } = App.useApp();
消息提示使用明确的类型区分:
message.success('操作成功');
message.error('操作失败');
message.warning('警告信息');
message.info('提示信息');
消息显示时长统一使用默认值,重要操作可适当延长:message.success('操作成功', 3);
Button type="link" 样式