Skip to content

Commit

Permalink
optimize(components): accuracy draggable area for TableColumnSetting …
Browse files Browse the repository at this point in the history
…with animation (#465)
  • Loading branch information
orangelckc authored Jun 1, 2024
1 parent 3ad4389 commit 2aa85c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/advanced/table-column-setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const columns = defineModel<NaiveUI.TableColumnCheck[]>('columns', {
{{ $t('common.columnSetting') }}
</NButton>
</template>
<VueDraggable v-model="columns">
<VueDraggable v-model="columns" :animation="150" filter=".none_draggable">
<div v-for="item in columns" :key="item.key" class="h-36px flex-y-center rd-4px hover:(bg-primary bg-opacity-20)">
<icon-mdi-drag class="mr-8px cursor-move text-icon" />
<NCheckbox v-model:checked="item.checked">
<icon-mdi-drag class="mr-8px h-full cursor-move text-icon" />
<NCheckbox v-model:checked="item.checked" class="none_draggable flex-1">
{{ item.title }}
</NCheckbox>
</div>
Expand Down

0 comments on commit 2aa85c6

Please sign in to comment.