修复两卡片拖拽显示错误的问题

Signed-off-by: zhangchao <zhangchao338@huawei.com>
This commit is contained in:
zhangchao 2022-08-22 20:30:51 +08:00
parent 88aa27f9fb
commit 1aa2132712

View File

@ -142,7 +142,7 @@ export default struct SwiperPage {
.rowEnd(item.row + item.area[1] - 1)
.columnEnd(item.column + item.area[0] - 1)
}, (item) => {
if (item.typeId == CommonConstants.TYPE_FOLDER) {
if (item.typeId == CommonConstants.TYPE_FOLDER || item.typeId == CommonConstants.TYPE_CARD) {
return JSON.stringify(item);
} else {
return `${item.typeId}${item.row}${item.column}`;