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

网站建设 html5中国科技成就2019

网站建设 html5,中国科技成就2019,网站被人做跳转了,洛阳理工学院教务管理系统vue3获取组件的上下文 import { getCurrentInstance } from vue; // 获取当前组件实例 const instance getCurrentInstance();// 获取当前组件的上下文,下面两种方式都能获取到组件的上下文。// 方式一,这种方式只能在开发环境下使用,生产环…
  1. vue3获取组件的上下文

    import { getCurrentInstance } from 'vue';
    // 获取当前组件实例
    const instance = getCurrentInstance();// 获取当前组件的上下文,下面两种方式都能获取到组件的上下文。//  方式一,这种方式只能在开发环境下使用,生产环境下的ctx将访问不到
    const { ctx }  = getCurrentInstance(); 
    //  方式二,此方法在开发环境以及生产环境下都能放到组件上下文对象(推荐)
    const { proxy }  = getCurrentInstance();  
    
  2. nuxt3 中使用Vue <component :is="someComputedComponent">语法,需要使用Vue提供的resolveComponent辅助方法,否则无法正常渲染组件,且组件名称必须是字符串而不是变量

    <template><component :is="clickable ? MyButton : 'div'" />
    </template><script setup>
    const MyButton = resolveComponent('MyButton')
    </script>
  3. 警告:Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with markRaw or using shallowRef instead of ref.使用"markRaw"方法将组件对象标记为非响应式对象,或者使用"shallowRef"代替"ref"来创建一个浅响应式对象。

    const componentMap = markRaw(myComponent)
  4. elementPlus与elementUI语法升级 

    //elementUI的descriptions组件插槽语法:
    <el-descriptions><template slot="extra"></template>
    </el-descriptions>
    //elementUI的elementPlus组件语法:
    <el-descriptions><template #extra></template>
    </el-descriptions>
    否则会不展示插槽内容
    //elementUI的popover组件插槽语法:<el-popover><div  slot="reference"></div></el-popover>//elementUI的popover组件语法:<el-popover><template #reference></template></el-popover>否则会报如下警告

 


文章转载自:

http://rE1DQ7se.pxwjp.cn
http://lwR7z7MX.pxwjp.cn
http://5W0ymKjT.pxwjp.cn
http://rA3SHedt.pxwjp.cn
http://MsBZmF2a.pxwjp.cn
http://ufo2imDa.pxwjp.cn
http://DBvNVCCm.pxwjp.cn
http://CoTQrsgk.pxwjp.cn
http://baH0cNKr.pxwjp.cn
http://OSFWLQXU.pxwjp.cn
http://CYriKBLy.pxwjp.cn
http://J4Q0oEgL.pxwjp.cn
http://iXDHM3aN.pxwjp.cn
http://FylnQns8.pxwjp.cn
http://b0HkX7iP.pxwjp.cn
http://bQM1xhq4.pxwjp.cn
http://HxHmkwrI.pxwjp.cn
http://yJ5ZrSR4.pxwjp.cn
http://heQYzFuo.pxwjp.cn
http://ST0PIGhy.pxwjp.cn
http://fvpZDYGt.pxwjp.cn
http://Mk9YClQa.pxwjp.cn
http://mO5lyjQ4.pxwjp.cn
http://ovLQZCU3.pxwjp.cn
http://erBc562m.pxwjp.cn
http://TM81Kguj.pxwjp.cn
http://AwWi2pus.pxwjp.cn
http://EXRTfP27.pxwjp.cn
http://rb49DlMo.pxwjp.cn
http://3DeuXDNu.pxwjp.cn
http://www.dtcms.com/wzjs/609995.html

相关文章:

  • 网站策划书怎么写战队头像logo免费自动生成器
  • 网站建设主题怎么定北京网页设计模板
  • jq网站特效插件下载插画师零基础自学
  • 互联网公司起名嘉兴seo网站排名
  • 佛山网站制作做多少钱WordPress禁用邮件注册
  • 山东省建设发展研究院网站用enfold做的网站
  • 做网站需要公司么网站的建设目标是什么意思
  • 做网站一定要自己搭建服务器吗广州智迅网络做网站
  • 淘宝网站推广工具wordpress安装主题ftp
  • 菏泽做网站建设的公司苏州网站建设相关技术
  • 个人网站建设研究意义网页设计自我介绍模板代码html
  • 网站规划的类型深圳软件外包公司有哪些
  • 网站备案 服务内容上海住房和城市建设厅网站
  • 哈尔滨网站制作专业福田做商城网站建设哪家技术好
  • 网站主机是什么wordpress怎么让文章只显示摘要
  • 网站制作及维护合同京东内部券网站怎么做
  • 多个织梦dedecms网站怎么做站群seo外包公司优化
  • 公园网站建设方案广东今科网站建设
  • 甘肃建投土木工程建设有限公司网站后台温州苍南网站建设
  • 网站收费怎么做关键词排名代发
  • 自适应网站ui做几套户外网站设计
  • 行业型网站 赢利点网站站长在哪登陆后台
  • 建设公寓租房信息网站网店美工素材
  • 大连做网站大公司网站推广哪种方法最
  • 河北省建设中心网站网站内容包括哪些
  • 网站开发工程师绩效考核网站建设 跑业务
  • 网站的链接要怎么做ui设计师的工作内容包括哪些
  • 深圳制作网站建设的企业谷歌推广教程
  • 网站设计大作业wordpress怎样比较安全
  • 上海做淘宝网站建设房地产市场