Skip to content

Commit

Permalink
fix(table): invalid prop type error thrown on color prop (#157) (#161)
Browse files Browse the repository at this point in the history
fix #157
  • Loading branch information
kiaking committed Oct 20, 2022
1 parent c656801 commit 48c465d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/components/STableCellPill.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<script setup lang="ts">
import { computed } from 'vue'
import type { TableCellPillColor } from '../composables/Table'
export type Color = 'info' | 'success' | 'warning' | 'danger' | 'mute'
const props = defineProps<{
value?: any
record: any
getter?: string | ((value: any) => string)
color?: TableCellPillColor | ((value: any) => TableCellPillColor)
color?: Color | ((value: any) => Color)
}>()
const _value = computed(() => {
Expand Down

0 comments on commit 48c465d

Please sign in to comment.