当前位置: 首页 > news >正文

山东省住房与建设厅网站首页个人简历制作

山东省住房与建设厅网站首页,个人简历制作,wordpress 小清新,环保部网站建设项目验收方案vue3日常项目中定义变量需要引入ref,reactive等等比较麻烦#xff0c;可以通过unplugin-auto-import给我们自动引入 * unplugin-auto-import 解决了vue3-hook、vue-router、useVue等多个插件的自动导入#xff0c;也支持自定义插件的自动导入#xff0c;是一个功能强大的typ…vue3日常项目中定义变量需要引入ref,reactive等等比较麻烦可以通过unplugin-auto-import给我们自动引入 * unplugin-auto-import 解决了vue3-hook、vue-router、useVue等多个插件的自动导入也支持自定义插件的自动导入是一个功能强大的typescript支持工具 一、安装依赖 npm i unplugin-auto-import -D二、在vite.config.ts文件中添加配置 plugins: [vue(), eslintPlugin(),AutoImport({imports:[vue,vue-router],dts:src/auto-import.d.ts, // 路径下自动生成文件夹存放全局指令}) ],三、在src目录下自动生成auto-import.d.ts文件用于存放全局指令 /* eslint-disable */ /* prettier-ignore */ // ts-nocheck // noinspection JSUnusedGlobalSymbols // Generated by unplugin-auto-import export {} declare global {const EffectScope: typeof import(vue)[EffectScope]const computed: typeof import(vue)[computed]const createApp: typeof import(vue)[createApp]const customRef: typeof import(vue)[customRef]const defineAsyncComponent: typeof import(vue)[defineAsyncComponent]const defineComponent: typeof import(vue)[defineComponent]const effectScope: typeof import(vue)[effectScope]const getCurrentInstance: typeof import(vue)[getCurrentInstance]const getCurrentScope: typeof import(vue)[getCurrentScope]const h: typeof import(vue)[h]const inject: typeof import(vue)[inject]const isProxy: typeof import(vue)[isProxy]const isReactive: typeof import(vue)[isReactive]const isReadonly: typeof import(vue)[isReadonly]const isRef: typeof import(vue)[isRef]const markRaw: typeof import(vue)[markRaw]const nextTick: typeof import(vue)[nextTick]const onActivated: typeof import(vue)[onActivated]const onBeforeMount: typeof import(vue)[onBeforeMount]const onBeforeRouteLeave: typeof import(vue-router)[onBeforeRouteLeave]const onBeforeRouteUpdate: typeof import(vue-router)[onBeforeRouteUpdate]const onBeforeUnmount: typeof import(vue)[onBeforeUnmount]const onBeforeUpdate: typeof import(vue)[onBeforeUpdate]const onDeactivated: typeof import(vue)[onDeactivated]const onErrorCaptured: typeof import(vue)[onErrorCaptured]const onMounted: typeof import(vue)[onMounted]const onRenderTracked: typeof import(vue)[onRenderTracked]const onRenderTriggered: typeof import(vue)[onRenderTriggered]const onScopeDispose: typeof import(vue)[onScopeDispose]const onServerPrefetch: typeof import(vue)[onServerPrefetch]const onUnmounted: typeof import(vue)[onUnmounted]const onUpdated: typeof import(vue)[onUpdated]const provide: typeof import(vue)[provide]const reactive: typeof import(vue)[reactive]const readonly: typeof import(vue)[readonly]const ref: typeof import(vue)[ref]const resolveComponent: typeof import(vue)[resolveComponent]const shallowReactive: typeof import(vue)[shallowReactive]const shallowReadonly: typeof import(vue)[shallowReadonly]const shallowRef: typeof import(vue)[shallowRef]const toRaw: typeof import(vue)[toRaw]const toRef: typeof import(vue)[toRef]const toRefs: typeof import(vue)[toRefs]const toValue: typeof import(vue)[toValue]const triggerRef: typeof import(vue)[triggerRef]const unref: typeof import(vue)[unref]const useAttrs: typeof import(vue)[useAttrs]const useCssModule: typeof import(vue)[useCssModule]const useCssVars: typeof import(vue)[useCssVars]const useLink: typeof import(vue-router)[useLink]const useRoute: typeof import(vue-router)[useRoute]const useRouter: typeof import(vue-router)[useRouter]const useSlots: typeof import(vue)[useSlots]const watch: typeof import(vue)[watch]const watchEffect: typeof import(vue)[watchEffect]const watchPostEffect: typeof import(vue)[watchPostEffect]const watchSyncEffect: typeof import(vue)[watchSyncEffect] } // for type re-export declare global {// ts-ignoreexport type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from vueimport(vue) } 四、运行项目、和eslintrc产生冲突解决方法如下 在vite.config.ts中补充配置 plugins: [vue(), eslintPlugin(),AutoImport({imports:[vue,vue-router],dts:src/auto-import.d.ts, // 路径下自动生成文件夹存放全局指令eslintrc: {enabled: true, // 1、改为true用于生成eslint配置。2、生成后改回false避免重复生成消耗}}) ]这里自动生成.eslintrc-auto-import.json配置文件最后在.eslintrc.json中加入配置 extends: [./.eslintrc-auto-import.json]五、tsconfig.json文件中添加如下配置 include: [src/**/*.ts, src/**/*.tsx, src/**/*.vue,src/auto-imports.d.ts],这样重新启动项目就可以正常使用了
http://www.hkea.cn/news/14313551/

相关文章:

  • 建设厅网站怎么查询安全员c考试成绩seo的概念是什么
  • 昌吉州住房和城乡建设局网站系统做网站的地方
  • 做酷炫网站能卖钱吗烟台做网站的价格
  • 无锡网站建设系统宣汉网站建设
  • 网站小图标 免费wordpress网页图片加载很慢
  • 网站制作的预算除了91还有什么关键词
  • 有经验的永州网站建设最火的网络推广平台
  • 有专门教做家具的网站2022年中国企业500强名单
  • 本墨陈黑做网站有版权怎么自己做网站赚钱
  • 厦门专业建站系统制作公司南通哪里有做网站的
  • ppt模板下载的网站有哪些品牌软文案例
  • 大学生做爰网站长沙公司建设网站
  • 旅游做攻略的网站有哪些个人博客首页
  • 济南建公司网站毕业设计网站用什么做
  • 白名单 网站明星百度指数排行
  • 网站建设合作协议模板深圳app开发公司大概
  • 岳阳卖房网站网络推广服务外包
  • 搭建发卡网站要多少钱前端页面设计软件
  • 酒庄企业网站织梦网站地图样式
  • 如何建设学校的微网站网页版梦幻西游三借芭蕉扇
  • 锡林郭勒盟网站建设移动建站是什么意思
  • 做自己的外贸网站怎样赚钱个人网站建设计划报告
  • 网站安全防护建筑企业和建设企业区别
  • 网页设计建网站流程门户网站建设相关需求
  • 专做品牌网站企业网站轮播图怎么做
  • 烟台北京网站建设公司网站关键字让别人做超链接了怎么办
  • 家居网站源码网页设计师的主要工作
  • 建网站北京建设部网站预应力资质
  • 西餐甜点网站建设百度推广帮做网站
  • 西安代做网站国家企业信用网查询系统