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:
njzy 2020-06-23 17:25:47 +08:00 committed by GitHub
parent bf4b72a76a
commit e13bb39c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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",