Skip to content

Commit

Permalink
fix(useTimeAgo): add showSecond prop to component (#2547)
Browse files Browse the repository at this point in the history
  • Loading branch information
CS-Birb committed Dec 16, 2022
1 parent cfcc295 commit 0c333bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useTimeAgo/component.ts
Expand Up @@ -9,7 +9,7 @@ interface UseTimeAgoComponentOptions extends Omit<UseTimeAgoOptions<true>, 'cont

export const UseTimeAgo = defineComponent<UseTimeAgoComponentOptions>({
name: 'UseTimeAgo',
props: ['time', 'updateInterval', 'max', 'fullDateFormatter', 'messages'] as unknown as undefined,
props: ['time', 'updateInterval', 'max', 'fullDateFormatter', 'messages', 'showSecond'] as unknown as undefined,
setup(props, { slots }) {
const data = reactive(useTimeAgo(() => props.time as number, { ...props, controls: true }))

Expand Down

0 comments on commit 0c333bd

Please sign in to comment.