mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
docs: fix the wrong way to import react-dnd-html5-backend (#25151)
* Fix the wrong way to import react-dnd-html5-backend * chore: update react-dnd * Update custom-tab-bar-node.md
This commit is contained in:
parent
bf4b72a76a
commit
e13bb39c1d
@ -16,7 +16,7 @@ By using custom components, we can integrate table with react-dnd to implement d
|
||||
```jsx
|
||||
import { Table } from 'antd';
|
||||
import { DndProvider, DragSource, DropTarget } from 'react-dnd';
|
||||
import HTML5Backend from 'react-dnd-html5-backend';
|
||||
import { HTML5Backend } from 'react-dnd-html5-backend';
|
||||
import update from 'immutability-helper';
|
||||
|
||||
let dragingIndex = -1;
|
||||
|
@ -16,7 +16,7 @@ Use `react-dnd` to make tabs draggable.
|
||||
```jsx
|
||||
import { Tabs } from 'antd';
|
||||
import { DndProvider, DragSource, DropTarget } from 'react-dnd';
|
||||
import HTML5Backend from 'react-dnd-html5-backend';
|
||||
import { HTML5Backend } from 'react-dnd-html5-backend';
|
||||
|
||||
const { TabPane } = Tabs;
|
||||
|
||||
|
@ -217,8 +217,8 @@
|
||||
"react": "^16.5.2",
|
||||
"react-color": "^2.17.3",
|
||||
"react-copy-to-clipboard": "^5.0.1",
|
||||
"react-dnd": "^10.0.2",
|
||||
"react-dnd-html5-backend": "^10.0.2",
|
||||
"react-dnd": "^11.1.1",
|
||||
"react-dnd-html5-backend": "^11.1.1",
|
||||
"react-dom": "^16.5.2",
|
||||
"react-github-button": "^0.1.11",
|
||||
"react-helmet-async": "^1.0.4",
|
||||
|
Loading…
Reference in New Issue
Block a user