dev: hotfix, cleaning data-table

This commit is contained in:
2025-10-15 07:37:57 +07:00
parent 0e43bff367
commit 32c815a6e5
83 changed files with 2260 additions and 2487 deletions

No files matched your search

+5 -30
View File
@@ -9,32 +9,6 @@ export interface ListItemDto {
export type ComponentType = Component
export interface RecComponent {
idx?: number
rec: object
props?: any
component: ComponentType
}
export interface Col {
span?: number
classVal?: string
style?: string
width?: number // specific for width
widthUnit?: string // specific for width
}
export interface Th {
label: string
colSpan?: number
rowSpan?: number
classVal?: string
childClassVal?: string
style?: string
childStyle?: string
hideOnSm?: boolean
}
export interface ButtonNav {
variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link'
classVal?: string
@@ -82,10 +56,6 @@ export interface KeyLabel {
key: string
label: string
}
export type FuncRecUnknown = (rec: unknown, idx: number) => unknown
export type FuncComponent = (rec: unknown, idx: number) => RecComponent
export type RecStrFuncUnknown = Record<string, FuncRecUnknown>
export type RecStrFuncComponent = Record<string, FuncComponent>
export interface KeyNames {
key: string
@@ -107,3 +77,8 @@ export const ActionEvents = {
showDetail: 'showDetail',
showProcess: 'showProcess',
}
export interface DataTableLoader {
isTableLoading: boolean
[key: string]: boolean
}