Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.7k views
in Technique[技术] by (71.8m points)

antd 树组件展开动画掉帧严重?

RT,使用了ANTD 4.5.3版本的树组件,即使只有十来个节点,展开也异常的卡顿。data层级最高只有二级,而且即使只有一两个二级子节点展开也会异常的卡顿,完全就是PPT级别的。。。应该不是数据量的问题。。。

        <Tree
          showLine
          treeData={data}
          selectable={false}
          titleRender={(nodeData: any) => {
            return (
              /** 自定义tree节点渲染 */
            );
          }}
        ></Tree>

为什么会这么卡顿呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

有点严重,不太喜欢用antd


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...