// declare module 'crypto-js/md5' // declare module '@/api/login/index' // declare module '@/api/authority/index' // declare module '@/api/authority/AuthorityModel' // declare module '@/api/user/index' // declare module '@/api/user/UserModel' // declare module '@/api/news/index...
declare module 'vue' { export interface GlobalComponents { IconAboutBox: typeof import("~icons/about/box")["default"]; IconAboutCar: typeof import("~icons/about/car")["default"]; IconAboutLogout: typeof import("~icons/about/logout")["default"]; IconSpinnersBlocksShuffle2: typeof import...
// Read more: https://github.com/vuejs/core/pull/3399 import '@vue/runtime-core' export {} declare module '@vue/runtime-core' { export interface GlobalComponents { AAffix: typeof import('@arco-design/web-vue')['Affix'] AAlert: typeof import('@arco-design/web-vue')['Alert'] A...
declare module '*.vue' { 16 changes: 16 additions & 0 deletions 16 src/utils/string.ts Original file line numberDiff line numberDiff line change @@ -161,3 +161,19 @@ export function escapeHTML(str: string) { * @example ' Hello \nWorld ' => 'Hello World' */ export const re...
"@vitejs/plugin-legacy": "^1.5.0", "@vueuse/core": "^5.2.0", "ant-design-vue": "^2.2.2", "axios": "^0.21.1", "crypto-js": "^4.1.0", "mockjs": "^1.1.0", "nprogress": "^0.2.0", "vite-plugin-components": "^0.13.0", "vite-plugin-components": "^0.13.2", "...
export {}; declare module "vue" { /** 定义在vue实例上自定义的全局属性的类型 */ export interface ComponentCustomProperties { $filters: typeof import("@/utils/filters"); } } 如何访问? // 模板中 <template> {{ $filters }} </template> // setup中 const vm = getCurrentInstance()!; ...
declare module '@vue/runtime-core' { export interface GlobalComponents { AAlert: typeof import('ant-design-vue/es')['Alert'] AAvatar: typeof import('ant-design-vue/es')['Avatar'] ABadge: typeof import('ant-design-vue/es')['Badge'] AButton: typeof import('ant-design-vue/es...