fix: 引入 naiveui NCountdown 组件

This commit is contained in:
tnt group 2022-09-29 15:21:04 +08:00
parent daa6458a26
commit db8fd7582b

View File

@ -1,4 +1,4 @@
import type { App } from 'vue'; import type { App } from 'vue'
import { import {
create, create,
NA, NA,
@ -8,6 +8,7 @@ import {
NH3, NH3,
NH4, NH4,
NCode, NCode,
NCountdown,
NText, NText,
NTime, NTime,
NEllipsis, NEllipsis,
@ -98,7 +99,7 @@ import {
NWatermark, NWatermark,
NEmpty, NEmpty,
NCollapseTransition NCollapseTransition
} from 'naive-ui'; } from 'naive-ui'
const naive = create({ const naive = create({
components: [ components: [
@ -109,6 +110,7 @@ const naive = create({
NH3, NH3,
NH4, NH4,
NCode, NCode,
NCountdown,
NText, NText,
NTime, NTime,
NEllipsis, NEllipsis,
@ -199,9 +201,9 @@ const naive = create({
NWatermark, NWatermark,
NEmpty, NEmpty,
NCollapseTransition NCollapseTransition
], ]
}); })
export function setupNaive(app: App<Element>) { export function setupNaive(app: App<Element>) {
app.use(naive); app.use(naive)
} }