antd
文章平均质量分 53
呆萌王@
这个作者很懒,什么都没留下…
展开
-
2021-04-17 antd Moblie 中hooks listView长列表使用方法,二次进入报错dataSource报错 must be the same
官方使用方法(自定义容器) https://mobile.ant.design/components/list-view-cn/#components-list-view-demo-basic-sticky官方的使用方法出看一眼用着很顺,但是一放上数据就会出现一些意想不到的问题。本人深有体会一些小伙伴看第一眼有可能看不明白官方渲染的sectionIDs,rowIDs,dataBlobs是什么意思,其实也不用理解是什么意思,只要咱们自己的数据和官方创建的key对应上就没有问题了。具体怎么对应...原创 2021-04-17 14:04:31 · 1034 阅读 · 0 评论 -
antd v3升级v4 提示Sorry that there are still some git changes
antd v3升级v4 提示Sorry that there are still some git changes使用 npx -p @ant-design/codemod-v4 antd4-codemod src --force 强制升级 (--force后面有个空格)需手动下载 @ant-design/icons @ant-design/compatible需手动升级 antd到4版本会有些坑 部分样式会乱套 不过没有坑哪来的工作量(smile)...原创 2020-12-03 16:26:39 · 935 阅读 · 0 评论 -
antd Table组件ellipsis: true 不显示省略号
antd Table组件ellipsis: true 不显示省略号render dom 元素的时候不要用块级元素(div) 要用 行内元素(span)原创 2020-11-27 15:18:36 · 6582 阅读 · 1 评论 -
2020-11-27 antd 中 Paragraph无收起按钮
antd 中Paragraph无收起按钮// rows 控制超出几行显示省略// key 保持每一个div的key值 已备diff算法更新onst [fold, setFold] = useState(false);const [key, setKey] = useState(0);// 控制点击展开const onExpand = () => { setFold(true)}//控制收起const onCollapse = (e) =...原创 2020-11-27 12:01:12 · 1027 阅读 · 0 评论