Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Nov 22, 2023
1 parent 2f3ad3c commit a72e35a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 2 additions & 7 deletions lib/components/STableCellPills.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
<script setup lang="ts">
import { computed } from 'vue'
import { type TableCellPillColor } from '../composables/Table'
import { type TableCellPillItem } from '../composables/Table'
import STableCellPill from './STableCellPill.vue'
export interface Pill {
label: string
color: TableCellPillColor
}
const props = defineProps<{
value: string[]
record: any
pills(value: string[], record: any): Pill[]
pills(value: string[], record: any): TableCellPillItem[]
}>()
const items = computed(() => props.pills(props.value, props.record))
Expand Down
5 changes: 3 additions & 2 deletions lib/components/STableCellText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import SIcon from './SIcon.vue'
import SLink from './SLink.vue'
export type Color =
| 'neutral'
| 'soft'
| 'default'
| 'mute'
| 'neutral'
| 'info'
| 'success'
| 'warning'
| 'danger'
| 'soft'
const props = defineProps<{
value?: any
Expand Down

0 comments on commit a72e35a

Please sign in to comment.