Skip to content

Commit

Permalink
feat: 代码生成字段配置列表支持拖拽排序
Browse files Browse the repository at this point in the history
Closes #IAG7UD
  • Loading branch information
Charles7c committed Aug 20, 2024
1 parent f321030 commit fcbc3eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/views/tool/generator/GenConfigDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
:loading="loading"
:scroll="{ x: '100%', y: 800, minWidth: 900 }"
:pagination="false"
:draggable="{ type: 'handle', width: 40 }"
:disabled-tools="['setting', 'refresh']"
:disabled-column-keys="['tableName']"
@change="handleChangeSort"
>
<template #custom-left>
<a-popconfirm
Expand Down Expand Up @@ -189,6 +191,11 @@ const handleRefresh = async (tableName: string) => {
await getDataList(tableName, true)
}
// 拖拽排序
const handleChangeSort = (newDataList: FieldConfigResp[]) => {
dataList.value = newDataList
}
const activeKey = ref('1')
// 保存
const save = async () => {
Expand Down

0 comments on commit fcbc3eb

Please sign in to comment.