Browse Source
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
pull/25699/head
njzy
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
4 deletions
-
components/table/demo/drag-sorting.md
-
components/tabs/demo/custom-tab-bar-node.md
-
package.json
|
|
@ -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", |
|
|
|