我有一个嵌套的数据.and,我必须在antd树表中显示该数据。我希望将展开的图标放在单独的列中,行选择如下 https://ant.design/components/table/#components-table-demo-expand 对于像这样的数据的第一列,不是这样的https://ant.design/components/table/#components-table-demo-expand-children const data
我想用样式组件来包装我的蚂蚁设计组件,我知道这是可能的(),但是我在TypeScript上做同样的事情有困难。styledComponents<IButtonProps>(AntButton)``;如您所见,为了使其工作,我正在用as any定义ant设计按钮,否则我会得到一些不兼容的类型,如:
Argument of type 'typeof Button' is not assignabl
使用带有ant设计的"@apollo/client": "^3.0.2"时,我得到一个错误的Cannot add property key, object is not extensible。为了让我的数据在ant设计表中工作,我必须传入从服务器返回的data对象中获得的数组数据。但是,如果我不添加它,react将报警表中的条目都缺少key值。这是我的变通方法,因为ant设计中的<em