fix snapshot

This commit is contained in:
afc163 2021-03-12 15:58:42 +08:00
parent 2c262dd3ec
commit 462c7fcdf8
2 changed files with 4 additions and 7 deletions

View File

@ -1629,7 +1629,7 @@ exports[`renders ./components/table/demo/drag-sorting-handler.md correctly 1`] =
aria-label="menu"
class="anticon anticon-menu"
role="img"
style="cursor:pointer;color:#999"
style="cursor:grab;color:#999"
>
<svg
aria-hidden="true"
@ -1672,7 +1672,7 @@ exports[`renders ./components/table/demo/drag-sorting-handler.md correctly 1`] =
aria-label="menu"
class="anticon anticon-menu"
role="img"
style="cursor:pointer;color:#999"
style="cursor:grab;color:#999"
>
<svg
aria-hidden="true"
@ -1715,7 +1715,7 @@ exports[`renders ./components/table/demo/drag-sorting-handler.md correctly 1`] =
aria-label="menu"
class="anticon anticon-menu"
role="img"
style="cursor:pointer;color:#999"
style="cursor:grab;color:#999"
>
<svg
aria-hidden="true"

View File

@ -19,9 +19,7 @@ import { sortableContainer, sortableElement, sortableHandle } from 'react-sortab
import { MenuOutlined } from '@ant-design/icons';
import arrayMove from 'array-move';
const DragHandle = sortableHandle(() => (
<MenuOutlined style={{ cursor: 'pointer', color: '#999' }} />
));
const DragHandle = sortableHandle(() => <MenuOutlined style={{ cursor: 'grab', color: '#999' }} />);
const columns = [
{
@ -135,7 +133,6 @@ ReactDOM.render(<SortableTable />, mountNode);
.row-dragging td {
padding: 16px;
visibility: hidden;
}
.row-dragging .drag-visible {