Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Nov 21, 2023
1 parent 2991d52 commit 65d6a18
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions lib/composables/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ export type TableCellType =
| 'component'
| 'actions'

export type ColorModes = 'default' | 'mute' | 'neutral' | 'info' | 'success' | 'warning' | 'danger'
export type ColorModes =
| 'default'
| 'mute'
| 'neutral'
| 'info'
| 'success'
| 'warning'
| 'danger'

export interface TableCellBase {
type: TableCellType
Expand All @@ -94,7 +101,9 @@ export interface TableCellText<V = any, R = any> extends TableCellBase {
value?: string | null | ((value: V, record: R) => string | null)
link?: string | null | ((value: V, record: R) => string)
color?: TableCellValueColor | ((value: V, record: R) => TableCellValueColor)
iconColor?: TableCellValueColor | ((value: V, record: R) => TableCellValueColor)
iconColor?:
| TableCellValueColor
| ((value: V, record: R) => TableCellValueColor)
onClick?(value: V, record: R): void
}

Expand Down Expand Up @@ -149,7 +158,9 @@ export interface TableCellAvatar<V = any, R = any> extends TableCellBase {

export interface TableCellAvatars<V = any, R = any> extends TableCellBase {
type: 'avatars'
avatars: TableCellAvatarsOption[] | ((value: V, record: R) => TableCellAvatarsOption[])
avatars:
| TableCellAvatarsOption[]
| ((value: V, record: R) => TableCellAvatarsOption[])
color?: 'neutral' | 'soft' | 'mute'
}

Expand Down Expand Up @@ -183,7 +194,7 @@ export interface TableCellActions<R = any> extends TableCellBase {
actions: TableCellAction<R>[]
}

export interface TableCellAction<R = any > {
export interface TableCellAction<R = any> {
mode?: Mode
icon?: any
iconMode?: Mode
Expand Down

0 comments on commit 65d6a18

Please sign in to comment.