feat: 统一函数命名

This commit is contained in:
2026-08-02 12:02:17 +08:00
parent 97235386ca
commit 99d5392a68
64 changed files with 331 additions and 1459 deletions

View File

@@ -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: '菜单名称',