feat: 统一函数命名
This commit is contained in:
@@ -4,14 +4,14 @@ import { StatusLabel } from '@/components/label'
|
||||
import { MenuIcon } from '@/components/menu-icon'
|
||||
import { menuTypeDict, type MenuTypeValues, type StatusValues } from '@/enum'
|
||||
import { formatDate, hasPermission } from '@/lib'
|
||||
import type { SysMenuTree } from '@/schemas'
|
||||
import type { MenuTree } from '@/schemas'
|
||||
|
||||
import { RowActions } from './row-actions.tsx'
|
||||
|
||||
export const createColumns = (): ColumnDef<SysMenuTree>[] => {
|
||||
export const createColumns = (): ColumnDef<MenuTree>[] => {
|
||||
const showAction = hasPermission(['menu:update', 'menu:delete'], 'any')
|
||||
|
||||
const columns: ColumnDef<SysMenuTree>[] = [
|
||||
const columns: ColumnDef<MenuTree>[] = [
|
||||
{
|
||||
accessorKey: 'name',
|
||||
header: '菜单名称',
|
||||
|
||||
Reference in New Issue
Block a user