Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Oct 27, 2023
1 parent 6140e8b commit 73ff438
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/elements/Meter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import type { SlotsType, PropType } from 'vue'
import { twJoin, twMerge } from 'tailwind-merge'
import { useUI } from '../../composables/useUI'
import { mergeConfig } from '../../utils'
import type { Strategy, MeterColors, MeterSize } from '../../types'
import type { Strategy, MeterColor, MeterSize } from '../../types'
// @ts-expect-error
import appConfig from '#build/app.config'
import { meter } from '#ui/ui.config'
Expand Down Expand Up @@ -75,7 +75,7 @@ export default defineComponent({
}
},
color: {
type: String as PropType<MeterColors>,
type: String as PropType<MeterColor>,
default: () => config.default.color,
validator (value: string) {
return [...appConfig.ui.colors, ...Object.keys(config.color)].includes(value)
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/types/meter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { meter } from '../ui.config'
import colors from '#ui-colors'

export type MeterSize = keyof typeof meter.meter.size
export type MeterColors = keyof typeof meter.color | typeof colors[number]
export type MeterColor = keyof typeof meter.color | typeof colors[number]

0 comments on commit 73ff438

Please sign in to comment.