Skip to content

Commit

Permalink
fix: 为预览div添加默认的class
Browse files Browse the repository at this point in the history
方便通过 css 自定义样式
  • Loading branch information
limaofeng committed Sep 9, 2022
1 parent 3ba0dc5 commit 38a2b64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,11 @@ export function dragPreview(
const props = { data, drag: () => undefined, ...options } as any;
if (!!options?.scale) {
return (
<div style={style}>
<div style={getScaleItemStyles(style, typeof options.scale == 'function' ? options.scale() : options.scale)}>
<div className="sortable-drag-preview" style={style}>
<div
className="sortable-drag-preview-container"
style={getScaleItemStyles(style, typeof options.scale == 'function' ? options.scale() : options.scale)}
>
{renderItem(itemRender, props)}
</div>
</div>
Expand Down

0 comments on commit 38a2b64

Please sign in to comment.