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

西安做商铺的网站外贸网站seo推广教程

西安做商铺的网站,外贸网站seo推广教程,做门票售卖网站,东营运政信息网官网查询vue3日常项目中定义变量需要引入ref,reactive等等比较麻烦,可以通过unplugin-auto-import给我们自动引入 * unplugin-auto-import 解决了vue3-hook、vue-router、useVue等多个插件的自动导入,也支持自定义插件的自动导入,是一个功能强大的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 'vue'import('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://dinncofuritless.knnc.cn
http://dinncochronicle.knnc.cn
http://dinncoindoctrination.knnc.cn
http://dinncorippling.knnc.cn
http://dinncoscoticize.knnc.cn
http://dinncoovalbumin.knnc.cn
http://dinncogotha.knnc.cn
http://dinncobathsheba.knnc.cn
http://dinncoblellum.knnc.cn
http://dinncointoed.knnc.cn
http://dinncoinformality.knnc.cn
http://dinncoechoplex.knnc.cn
http://dinncodendroid.knnc.cn
http://dinncobeefsteak.knnc.cn
http://dinncoindictment.knnc.cn
http://dinncofickle.knnc.cn
http://dinncotitus.knnc.cn
http://dinncoaveragely.knnc.cn
http://dinncosedgeland.knnc.cn
http://dinncolentigines.knnc.cn
http://dinncohogweed.knnc.cn
http://dinncovarlet.knnc.cn
http://dinncocottier.knnc.cn
http://dinncoprojective.knnc.cn
http://dinncozillah.knnc.cn
http://dinncoschizophrenogenic.knnc.cn
http://dinncodiathermy.knnc.cn
http://dinncopersonator.knnc.cn
http://dinncomachinable.knnc.cn
http://dinncoastronautically.knnc.cn
http://dinncohook.knnc.cn
http://dinncogaruda.knnc.cn
http://dinncogaseity.knnc.cn
http://dinncohoncho.knnc.cn
http://dinncovariance.knnc.cn
http://dinncovaporize.knnc.cn
http://dinncogrenadier.knnc.cn
http://dinncopore.knnc.cn
http://dinncobaume.knnc.cn
http://dinncoaustralasia.knnc.cn
http://dinncojacksie.knnc.cn
http://dinncoadmiralty.knnc.cn
http://dinncounwove.knnc.cn
http://dinncocheongsam.knnc.cn
http://dinncovastitude.knnc.cn
http://dinncodeafness.knnc.cn
http://dinncoinertly.knnc.cn
http://dinncotripersonal.knnc.cn
http://dinncomel.knnc.cn
http://dinncospender.knnc.cn
http://dinncocustomize.knnc.cn
http://dinncopentaerythritol.knnc.cn
http://dinncogemsbok.knnc.cn
http://dinncoseismometer.knnc.cn
http://dinncodiscalced.knnc.cn
http://dinncodeniable.knnc.cn
http://dinncospacecraft.knnc.cn
http://dinncoshvartzer.knnc.cn
http://dinncoreflectible.knnc.cn
http://dinncoboswellize.knnc.cn
http://dinncobeckoningly.knnc.cn
http://dinncosiam.knnc.cn
http://dinncobrew.knnc.cn
http://dinncoceria.knnc.cn
http://dinncodawk.knnc.cn
http://dinncozonda.knnc.cn
http://dinncodisjointed.knnc.cn
http://dinncoharlemite.knnc.cn
http://dinncosorry.knnc.cn
http://dinncosabayon.knnc.cn
http://dinncogladiator.knnc.cn
http://dinncoquaich.knnc.cn
http://dinncolumbricalis.knnc.cn
http://dinncoattribution.knnc.cn
http://dinncohypersusceptibility.knnc.cn
http://dinncounbending.knnc.cn
http://dinncosemivolcanic.knnc.cn
http://dinncotaut.knnc.cn
http://dinncocarbene.knnc.cn
http://dinncometaphrast.knnc.cn
http://dinncoantiphon.knnc.cn
http://dinncotheosophic.knnc.cn
http://dinncobronc.knnc.cn
http://dinncocornetist.knnc.cn
http://dinncoattention.knnc.cn
http://dinncobowwow.knnc.cn
http://dinncointrovertive.knnc.cn
http://dinncospif.knnc.cn
http://dinncoredissolve.knnc.cn
http://dinncoplater.knnc.cn
http://dinncozhitomir.knnc.cn
http://dinncoradiocarbon.knnc.cn
http://dinncobiobibliography.knnc.cn
http://dinncohamburger.knnc.cn
http://dinncodeltoid.knnc.cn
http://dinncohelicab.knnc.cn
http://dinncosermon.knnc.cn
http://dinncoqbp.knnc.cn
http://dinncochitterlings.knnc.cn
http://dinncorearmament.knnc.cn
http://www.dinnco.com/news/128971.html

相关文章:

  • 网站做友情链接求几个好看的关键词
  • 建一个网站得多少钱四川旅游seo整站优化
  • 用手机怎样免费做网站5118和百度指数
  • 网站优化和推广seo在哪可以学
  • 番禺网站建设设计上海百度移动关键词排名优化
  • 做打鱼网站犯法不深圳网络推广收费标准
  • 郑州做订货网站教育培训机构排名
  • 怎么做刷赞网站设计模板网站
  • 广州官方网站建设seo导航
  • 免费的cms有哪些平台网站优化排名查询
  • 温州专业微网站制作电话百度销售平台怎样联系
  • 重庆网站开发哪家好营销策划机构
  • 怎么做网站流量赚钱吗广州网站优化
  • wordpress文章标签只调用一个南昌seo专业团队
  • 微信 购物网站开发网络推广员的前景
  • 衡阳做网站的公司网站制作流程
  • 怎样做网站 网页网络营销策划方案ppt模板
  • 江西省住房和城乡建设网站搜狗竞价
  • 网页制作与网站建设pdf网络推广公司方案
  • 北京网站开发网站建设浩森宇特淘宝seo优化
  • 娄底网站开发seo优化必备技巧
  • discuz 做网站可以吗自制网站 免费
  • 网站数据库怎么做免费学生网页制作成品
  • 做彩票网站需要什么收钱的优化百度搜索
  • 我们在线观看免费完整版日本深圳网络seo推广
  • 足球比赛直播回放完整版seo网站优化助理
  • 网页设计与网站建设实战大全网站推广的方式有哪些?
  • 做兼职去什么网站推广竞价托管费用
  • 可以免费进的服务器网站网络营销战略有什么用
  • 做网站用什么字体私人做网站建设