Skip to content

Instantly share code, notes, and snippets.

/**
 * @see https://typicode.github.io/husky/#/?id=with-a-custom-script
 */

const { spawn } = require('child_process')
const { join } = require('path')
const husky = require('husky')

const dotHuskyPath = join(__dirname, '../.husky')
@condorheroblog
condorheroblog / why-set-scrollY-to-initial-in-antd.md
Created June 22, 2025 07:54
动态表格中为什么设置 scrollY 为 initial

动态表格中为什么设置 scrollY 为 initial

未设置 scrollY 的时候,antd 的表格布局是纯 table 结构,布局如下:

image

antd 中垂直方向上表格的滚动是通过设置 scrollY 来实现的,设置 scrollY 则会改变 antd table 的 DOM 结构结构如下:

image

@condorheroblog
condorheroblog / 官网产品图 SVG 压缩导致蒙玻璃失效.md
Last active September 10, 2025 10:15
官网产品图 SVG 压缩导致蒙玻璃失效

原因:开启 Style to attributes 导致样式错乱

原因见图:shapes at 25-09-10 18 09 03