Fairyshi

Results comments of Fairyshi

困扰了很久,终于解决了,贴一下防止别人犯同样的问题。https://ant.design/components/tree-cn/ 中有提到原因和解决方案,只是在最后所以可能没被留意到: 注意# 树节点可以有很多,但在设置checkable时、将会花费更多的计算时间,因此我们缓存了一些计算结果(像this.treeNodesStates)来复用、避免多次重复计算、以此提高性能。但这也带来了一些限制,当你异步加载树节点时,你需要这样渲染树:{this.state.treeData.length ? {this.state.treeData.map(t => )} : 'loading tree'}

当前版本V2.5.0,placeholder仍然不能显示: const jsxTreeSelect = ( ); return ( {jsxTreeSelect} )

antd会根据 Table的 rowKey={record => record.uid} 对 CheckboxPropsCache进行缓存控制,要保证 getCheckboxProps 获取预期效果,请务必确保设置了 ....} />,排查这个问题花了点时间,最后翻了源码才解决。见下面的链接中 155-170行: https://github.com/ant-design/ant-design/blob/5d72c6d7e51dbe70ded98da0c87befd0f61c76d8/components/table/Table.tsx#L208-L210

Solution: ....} /> Reason: Make sure the rowKey set correctly for accessing CheckboxPropsCache of the Table, or the getCheckboxProps won't run as expected. Ref (Rows from 155 to 170) of...

import { dva } from '...'; // path to dva instance: dva({ ...createLoading({ effects: true }), history: createHistory(), onError(error) {} }) Modal.confirm({ title: '操作确认?', content: hehe, onOk() { dva._store.dispatch({ type:...

onOk中经过用户交互确认后执行 effects or reducers 中的异步方法的实现方式

tooltip : { trigger: 'axis', axisPointer: { animation: false }, formatter: function (params) { var colorSpan = color => ''; let rez = ''; params.forEach(item => { let num =...

it will work by add the second step of the "Getting started" in the offical doc. That is add the "iframeResizer.contentWindow.min.js" doc into the iframe content page

Solved! it will work by add the second step of the "Getting started" in the offical doc. That is add the "iframeResizer.contentWindow.min.js" doc into the iframe content page.