Browse Source

chore(gui-v2): add plugin export from dayjs plugin file

pull/2935/head
braks 2 years ago
parent
commit
1ef0a9d1e0
  1. 11
      packages/nc-gui-v2/plugins/a.dayjs.ts

11
packages/nc-gui-v2/plugins/a.dayjs.ts

@ -3,8 +3,11 @@ import relativeTime from 'dayjs/plugin/relativeTime'
import customParseFormat from 'dayjs/plugin/customParseFormat'
import duration from 'dayjs/plugin/duration'
import utc from 'dayjs/plugin/utc'
import { defineNuxtPlugin } from '#imports'
dayjs.extend(utc)
dayjs.extend(relativeTime)
dayjs.extend(customParseFormat)
dayjs.extend(duration)
export default defineNuxtPlugin(() => {
dayjs.extend(utc)
dayjs.extend(relativeTime)
dayjs.extend(customParseFormat)
dayjs.extend(duration)
})

Loading…
Cancel
Save