使用 Dragula 拖放保存拖动项目的位置

问题描述

我正在使用 react-dragula 拖放卡片。拖动后我需要保存它。拖放后如何保存卡片位置?

这是函数

const dragDropRow1 = (componentbackingInstance) => {
    if (componentbackingInstance) {
      let options = { };
      Dragula([componentbackingInstance],options);
        console.log("find1",options)
        console.log("find2",componentbackingInstance)
        console.log("find3",dragDropRow1)
    }
};

这就是我在正文中使用函数的方式。

<Grid container ref={dragDropRow1} spacing={2} className="dragdrop-container">

这是我在正文中使用的卡片。

< Typography variant = "subtitle1"
component = "h2"
className = "widget-title" > {
    getLabel({
      module: "frontOfficerDashboard",label: "opd appointments"
    })
  } <
  /Typography> <
  Box className = "widget-table" >
  <
  Box display = "flex" >
  <
  Box flexGrow = {
    1
  } >
  <
  Typography variant = "body2"
component = "p"
className = "color-primary" > {
    getLabel({
      module: "frontOfficerDashboard",label: "today total"
    })
  } <
  /Typography> <
  /Box>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)