Browse Source

feat(gui-v2): drag-n-drop on sidebar item in form view

pull/3030/head
Wing-Kam Wong 2 years ago
parent
commit
be50a6bde1
  1. 6
      packages/nc-gui-v2/components/smartsheet/Form.vue

6
packages/nc-gui-v2/components/smartsheet/Form.vue

@ -250,13 +250,13 @@ watch(
</div> </div>
</div> </div>
</div> </div>
<draggable :list="hiddenColumns" item-key="title" handle=".nc-child-draggable-icon"> <draggable :list="hiddenColumns" draggable=".item" group="a-card">
<template #item="{ element }"> <template #item="{ element }">
<a-card size="small" class="ma-0 pa-0 cursor-pointer"> <a-card size="small" class="ma-0 pa-0 cursor-pointer item mb-2">
<div class="flex"> <div class="flex">
<div class="flex flex-row flex-1"> <div class="flex flex-row flex-1">
<SmartsheetHeaderVirtualCell v-if="isVirtualCol(element)" :column="element" /> <SmartsheetHeaderVirtualCell v-if="isVirtualCol(element)" :column="element" />
<SmartsheetHeaderCell v-else :column="element" /> <SmartsheetHeaderCell v-else class="w-full" :column="element" />
</div> </div>
<div class="flex flex-row"> <div class="flex flex-row">
<MdiDragIcon class="flex flex-1" /> <MdiDragIcon class="flex flex-1" />

Loading…
Cancel
Save