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

吴中区做网站福州企业网站

吴中区做网站,福州企业网站,做公益网站的原因,社区微网站建设需求分析选择菜单里的 文件 > 首选项 > 用户代码片段 vscode模板 {"Print to conaole":{"prefix": "v-ts", //在新建立的页面中输入C就会有智能提示&#xff0c;Tab就自动生成好了"body": ["<template>"," <…

选择菜单里的 文件 > 首选项 > 用户代码片段
vscode模板

{"Print to conaole":{"prefix": "v-ts",    //在新建立的页面中输入C++就会有智能提示,Tab就自动生成好了"body": ["<template>"," <div class='con'>",     //这个头文件可以删除,我为了使用方便就加了"   <header></header>","   <section></section>"," </div>", //空行"</template>", //标准命名空间"<script lang='ts' setup>","/** 接口 */",   //main()函数"export interface propsForm {","}","import { reactive, toRefs, defineProps, withDefaults, defineEmits, ref, computed } from 'vue';","import useCurrentInstance from '@/api/useCurrentInstance';","const { proxy } = useCurrentInstance()","const emit = defineEmits(['searchFunction'])","/** prop */","const props = withDefaults(defineProps<propsForm>(), {","})","/** 计算属性*/","const xx = computed(() => [])","/** data */",    //最终光标会在这里等待输入"const state = reactive({","})","const { searchForm } = toRefs(state)","/** 监听 */",    //标准C++的等待用户动作"/** 生命周期 */", //结束"/** methods */","/** 接口 */","</script>","<style>","</style>"],"description": "vue3 template."   //用户输入后智能提示的内容(你可以用中文写“生成C++模板”)}
}

结果

<template><div class='con'><header></header><section></section></div>
</template>
<script lang='ts' setup>
/** 接口 */
export interface propsForm {
}
import { reactive, toRefs, defineProps, withDefaults, defineEmits, ref, computed } from 'vue';
import useCurrentInstance from '@/api/useCurrentInstance';
const { proxy } = useCurrentInstance()
const emit = defineEmits(['searchFunction'])
/** prop */
const props = withDefaults(defineProps<propsForm>(), {
})
/** 计算属性*/
const xx = computed(() => [])
/** data */
const state = reactive({
})
const { searchForm } = toRefs(state)
/** 监听 */
/** 生命周期 */
/** methods */
/** 接口 */
</script>
<style>
</style>

useCurrentInstance.ts

import { ComponentInternalInstance, getCurrentInstance } from 'vue'
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export default function useCurrentInstance() {const { appContext } = getCurrentInstance() as ComponentInternalInstanceconst proxy = appContext.config.globalPropertiesreturn {proxy}
}
http://www.yayakq.cn/news/886884/

相关文章:

  • 网站信息内容建设责任制落实情况知末网官网
  • 网站开发工作室简介养生网站源码下载
  • 德州市平原县建设局网站网站怎么做微博链接
  • 北京企业网站优化深圳软件产业基地
  • 成品网站 代理开公司需要多少钱
  • 广州h5网站建设公司电视购物平台
  • 北京市工程建设交易中心网站那个网站的公众后推广做的好
  • 自己做的网站怎么发布到网上做网站的话术
  • 山东网络建站推广门户网站是不是新媒体
  • 网站设计论文3000字网站开发公司排行
  • 网站建设推荐信息网站开发 数据库对比
  • 推广 网站的优秀文案南网站建设
  • 做么网站有黄网站 扁平化
  • 自己做网站什么网站比较好网站建设百度贴吧
  • 电子商务网站建设与开发wordpress is post
  • 如何做企业网站排名优化网络营销外包要多少钱
  • 长沙58同城招聘信息seo系统是什么意思
  • 长沙营销型网站设计兰州又发现一例
  • 建设高流量网站抖音搜索优化
  • 网站申请空间教育网站建站需求
  • 上海网站设计公司电话wordpress 区块编辑器
  • 怎么找合适的网站开发sun v2.1 wordpress主题
  • 通州北苑网站建设中国采招网官方网站
  • 北京网站建设公司哪些好企业建设网站个人总结报告
  • 做图片视频的网站有哪些问题企业宣传片制作公司收费
  • 私人做网站要多少钱北京公关公司
  • 腾讯云做的网站会被拦截么龙华网站建设yihe kj
  • 临安网站设计wordpress主题安装在哪里
  • 阿里云速美建站威海网站建设怎么样
  • 网络推广有哪些网站湖南酒店网站建设