摘要: 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 阅读(403) 评论(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 阅读(293) 评论(0) 推荐(0)
摘要: style={{ width: column.width, minWidth: column.width, maxWidth: column.width, height: rowHeight, lineHeight: `${rowHeight}px`, padding: '0 12px', boxS 阅读全文
posted @ 2026-04-02 14:46 小蘑菇123 阅读(3) 评论(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 阅读(2) 评论(0) 推荐(0)
摘要: import React, { useRef, useCallback } from 'react'; import { Table } from 'antd'; const MyTable = () => { // 用 ref 保存定时器和点击次数,避免每次渲染重置 const clickTime 阅读全文
posted @ 2026-03-06 09:27 小蘑菇123 阅读(2) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2026-01-08 14:01 小蘑菇123 阅读(1) 评论(0) 推荐(0)
摘要: const clickTimerRef = useRef<NodeJS.Timeout | number | undefined>(undefined); // 单击处理函数 const handleRowClick = useCallback((rowData: ListItem, rowInde 阅读全文
posted @ 2026-01-08 10:29 小蘑菇123 阅读(5) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2026-01-06 18:27 小蘑菇123 阅读(3) 评论(0) 推荐(0)
摘要: // 原始数据(子节点字段为 subNodes) const rawData = [ { key: '1', name: '父节点', subNodes: [ { key: '1-1', name: '子节点' }, ], }, ]; // 转换函数:递归将 subNodes 改为 children 阅读全文
posted @ 2025-11-10 17:36 小蘑菇123 阅读(32) 评论(0) 推荐(0)
摘要: import React, {useEffect, useState, useRef} from 'react const currentIndex = useRef(0); // 点击事件 const handleClick = (tab: any, index: any) => { curren 阅读全文
posted @ 2025-11-06 08:35 小蘑菇123 阅读(12) 评论(0) 推荐(0)
摘要: import { Table } from 'antd'; import { useState, useEffect } from 'react'; // 计算指定字段的合并跨度(rowSpan) const calculateRowSpan = (data, field) => { if (!da 阅读全文
posted @ 2025-11-04 10:14 小蘑菇123 阅读(17) 评论(0) 推荐(0)