chore: 移除dayjs的自动导入

This commit is contained in:
peerless_hero
2023-08-30 16:46:10 +08:00
parent 82c9337a6d
commit 3adffd5ca7
2 changed files with 3 additions and 7 deletions

View File

@ -33,7 +33,6 @@ declare global {
const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn'] const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn']
const createVNode: typeof import('vue')['createVNode'] const createVNode: typeof import('vue')['createVNode']
const customRef: typeof import('vue')['customRef'] const customRef: typeof import('vue')['customRef']
const dayjs: typeof import('element-plus')['dayjs']
const debouncedRef: typeof import('@vueuse/core')['debouncedRef'] const debouncedRef: typeof import('@vueuse/core')['debouncedRef']
const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch'] const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch']
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
@ -327,7 +326,6 @@ declare module 'vue' {
readonly createUnrefFn: UnwrapRef<typeof import('@vueuse/core')['createUnrefFn']> readonly createUnrefFn: UnwrapRef<typeof import('@vueuse/core')['createUnrefFn']>
readonly createVNode: UnwrapRef<typeof import('vue')['createVNode']> readonly createVNode: UnwrapRef<typeof import('vue')['createVNode']>
readonly customRef: UnwrapRef<typeof import('vue')['customRef']> readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
readonly dayjs: UnwrapRef<typeof import('element-plus')['dayjs']>
readonly debouncedRef: UnwrapRef<typeof import('@vueuse/core')['debouncedRef']> readonly debouncedRef: UnwrapRef<typeof import('@vueuse/core')['debouncedRef']>
readonly debouncedWatch: UnwrapRef<typeof import('@vueuse/core')['debouncedWatch']> readonly debouncedWatch: UnwrapRef<typeof import('@vueuse/core')['debouncedWatch']>
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']> readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
@ -615,7 +613,6 @@ declare module '@vue/runtime-core' {
readonly createUnrefFn: UnwrapRef<typeof import('@vueuse/core')['createUnrefFn']> readonly createUnrefFn: UnwrapRef<typeof import('@vueuse/core')['createUnrefFn']>
readonly createVNode: UnwrapRef<typeof import('vue')['createVNode']> readonly createVNode: UnwrapRef<typeof import('vue')['createVNode']>
readonly customRef: UnwrapRef<typeof import('vue')['customRef']> readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
readonly dayjs: UnwrapRef<typeof import('element-plus')['dayjs']>
readonly debouncedRef: UnwrapRef<typeof import('@vueuse/core')['debouncedRef']> readonly debouncedRef: UnwrapRef<typeof import('@vueuse/core')['debouncedRef']>
readonly debouncedWatch: UnwrapRef<typeof import('@vueuse/core')['debouncedWatch']> readonly debouncedWatch: UnwrapRef<typeof import('@vueuse/core')['debouncedWatch']>
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']> readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>

View File

@ -1,8 +1,8 @@
/* /*
* @Author: zhaojinfeng 121016171@qq.com * @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-06-15 13:22:04 * @Date: 2023-06-15 13:22:04
* @LastEditors: zhaojinfeng 121016171@qq.com * @LastEditors: peerless_hero peerless_hero@outlook.com
* @LastEditTime: 2023-07-21 12:26:14 * @LastEditTime: 2023-08-30 16:30:47
* @FilePath: \vue3\vite.config.ts * @FilePath: \vue3\vite.config.ts
* @Description: * @Description:
* *
@ -51,8 +51,7 @@ export default defineConfig({
'vue-router', 'vue-router',
'@vueuse/core', '@vueuse/core',
{ {
'vue': ['createVNode'], vue: ['createVNode'],
'element-plus': ['dayjs'],
}, },
], ],
vueTemplate: true, vueTemplate: true,