Foveluy / Dragact

a dragger layout system with React style .
MIT License
764 stars 188 forks source link

Dragact嵌套图片问题 #32

Closed netbuggang closed 6 years ago

netbuggang commented 6 years ago

Dragact嵌套图片,图片宽高是100%,点击图片拖拽就出现BUG了 `<Dragact className="plant-layout" //必填项 col={16} //必填项 layout={fakeData} //必填项 margin={[5, 5]} //必填项 placeholder //必填项 rowHeight={300} //必填项 style={{ background: '#333' }} //非必填项 width={800}

{(item, provided) => ( <div {...provided.props} {...provided.dragHandle} style={{ ...provided.props.style, ...getblockStyle(provided.isDragging), }}

{/provided.isDragging ? '正在抓取' : '停放'/} <img alt="" src="https://img.alicdn.com/imgextra/i3/1928865133/O1CN011nmxSUvVK566HsW_!!1928865133.jpg" style={{ width: "50px", height: "50px", }} />

)} `

netbuggang commented 6 years ago

脑子迷糊了,用背景图就可以