ViewUIPlus icon indicating copy to clipboard operation
ViewUIPlus copied to clipboard

vue3 + vite 的项目 使用 modal 弹框时 设置 draggable ,动态设置ref,拖拽时会重新设置ref

Open skyLoveSnap opened this issue 2 years ago • 0 comments

    <MoneyUpdateItem
      v-for="(item, index) in dataList"
      :ref="setRefAction"
      :key="index"
      :index="index + 1"
      :item-data="item"
    ></MoneyUpdateItem>

/**

  • ref设定 */ function setRefAction(el: any) { if (el) { refArr.push(el); } }

拖拽时 一直执行 setRefAction 函数

skyLoveSnap avatar Apr 25 '23 02:04 skyLoveSnap