refactor: 优化 GiTable 列类型使用

This commit is contained in:
2024-04-16 20:20:57 +08:00
parent 2e2927a189
commit 35c59e219e
11 changed files with 32 additions and 28 deletions

View File

@@ -70,9 +70,9 @@
<script setup lang="ts">
import { listRole, deleteRole, type RoleResp } from '@/apis'
import type { TableInstance } from '@arco-design/web-vue'
import AddRoleModal from './AddRoleModal.vue'
import RoleDetailDrawer from './RoleDetailDrawer.vue'
import type { TableInstanceColumns } from '@/components/GiTable/type'
import { useTable } from '@/hooks'
import { useDict } from '@/hooks/app'
import { isMobile } from '@/utils'
@@ -82,7 +82,7 @@ defineOptions({ name: 'Role' })
const { data_scope_enum } = useDict('data_scope_enum')
const columns: TableInstance['columns'] = [
const columns: TableInstanceColumns[] = [
{
title: '序号',
width: 66,