摘要: 1、例如(登录/注册): 1、position: absolute : header 引入 bootstrap : <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstra 阅读全文
posted @ 2021-02-02 15:03 小蘑菇123 阅读(404) 评论(0) 推荐(0)
摘要: < 多行文本超出 > overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 4; //行数 line-clamp: 4;//行数 -webkit-box-orient: vertica 阅读全文
posted @ 2017-08-14 23:43 小蘑菇123 阅读(303) 评论(0) 推荐(0)
摘要: import React, { useState, useMemo, useRef, useEffect } from 'react'; import { Select, Spin } from 'antd'; import debounce from 'lodash/debounce'; cons 阅读全文
posted @ 2026-05-26 15:48 小蘑菇123 阅读(5) 评论(0) 推荐(0)
摘要: import moment from 'moment'; import { message } from 'antd'; // ✅ 唯一需要修改的地方:字段配置(新增下拉框只加这里) const logFields = [ { field: 'theNative', label: '中外', ds: 阅读全文
posted @ 2026-05-22 08:11 小蘑菇123 阅读(8) 评论(0) 推荐(0)
摘要: const download = async () => { if (!tableProps || tableProps.length 0) { message.warning('没有数据可导出'); return; } // 1. 构建表头(和原来一样,仅过滤和解析标题) const header 阅读全文
posted @ 2026-05-15 10:44 小蘑菇123 阅读(4) 评论(0) 推荐(0)
摘要: 1、手动过滤: import React, { useState, useMemo } from 'react'; import { Select } from 'antd'; const AirportSelect = ({ UCQRAirportData }) => { const [searc 阅读全文
posted @ 2026-04-24 11:18 小蘑菇123 阅读(10) 评论(0) 推荐(0)
摘要: /** * 前端导出CSV工具函数 * @param data 对象数组(如 [{name: '张三', age: 28}, ...]) * @param filename 导出文件名(不含后缀) */ const exportCSV = (data: any[], filename: string 阅读全文
posted @ 2026-04-08 09:10 小蘑菇123 阅读(4) 评论(0) 推荐(0)
摘要: import React, { useMemo, useRef, useCallback } from 'react'; import { FixedSizeList as List } from 'react-window'; interface TableColumn<T> { key: str 阅读全文
posted @ 2026-04-02 14:46 小蘑菇123 阅读(6) 评论(0) 推荐(0)
摘要: import React, { useState, FC } from 'react'; import { Popover, Button, Space, Typography, Input } from 'antd'; import { SketchPicker, ColorChangeHandl 阅读全文
posted @ 2026-04-02 11:50 小蘑菇123 阅读(8) 评论(0) 推荐(0)
摘要: import React, { useRef, useCallback } from 'react'; import { Table } from 'antd'; const MyTable = () => { // 用 ref 保存定时器和点击次数,避免每次渲染重置 const clickTime 阅读全文
posted @ 2026-03-06 09:27 小蘑菇123 阅读(3) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2026-01-08 14:01 小蘑菇123 阅读(4) 评论(0) 推荐(0)
摘要: const clickTimerRef = useRef<NodeJS.Timeout | number | undefined>(undefined); // 单击处理函数 const handleRowClick = useCallback((rowData: ListItem, rowInde 阅读全文
posted @ 2026-01-08 10:29 小蘑菇123 阅读(12) 评论(0) 推荐(0)