随笔分类 -  🔥Vue3

摘要:VitePress全局组件封装前言 VuePress 主题默认有 <CodeGroup> 组件用于切换代码很方便。 如图所示: 痛点 使用 VitePress 后,官方没有提供 <CodeGroup> 组件类似的方案。 参考 VuePress 源码 https://github.com/vuejs/vuepress/blob/3 阅读全文
posted @ 2022-07-19 18:41 MegaSu 阅读(799) 评论(0) 推荐(0) 编辑
摘要:https://element-plus.gitee.io/zh-CN/component/icon.html#%E4%BD%BF%E7%94%A8%E5%9B%BE%E6%A0%87 仓库地址:https://github.com/Megasu/element-plus-icons 注册所有图标 阅读全文
posted @ 2022-05-23 11:24 MegaSu 阅读(79) 评论(0) 推荐(0) 编辑
摘要:参考地址 配置源码地址:https://github.com/arco-design/arco-design-pro-vue/blob/main/arco-design-pro-vite/ 按钮组件 源码地址:https://github.com/arco-design/arco-design-vu 阅读全文
posted @ 2022-04-28 21:24 MegaSu 阅读(2016) 评论(0) 推荐(0) 编辑
摘要:Suspense Suspense是 Vue3.x 中新增的特性, 那它有什么用呢?别急,我们通过 Vue2.x 中的一些场景来认识它的作用。 Vue2.x 中应该经常遇到这样的场景: <template> <div> <div v-if="!loading"> ... </div> <div v- 阅读全文
posted @ 2022-03-04 17:00 MegaSu 阅读(171) 评论(0) 推荐(0) 编辑
摘要:5个步骤完成 Vue3 开发调试工具安装教程# Vue3 开发调试工具安装教程 ![image](https://img2022.cnblogs.com/blog/684615/202202/684615-20220214231256570-517679370.png) ## 5个步骤 第一步:点击浏览器右上角,更多工具 – 扩展程序 ![i 阅读全文
posted @ 2022-02-14 23:14 MegaSu 阅读(1877) 评论(3) 推荐(0) 编辑
摘要:Vue3 值得注意的新特性 Vue3 新特性介绍 片段 组合式 API 单文件组件组合式 API 语法糖 (<script setup>) Teleport Suspense 实验性 SFC <style scoped> 现在可以包含全局规则或只针对插槽内容的规则 单文件组件状态驱动的 CSS 变量 阅读全文
posted @ 2022-02-07 23:25 MegaSu 阅读(169) 评论(0) 推荐(0) 编辑
摘要:【Bug记录】[@vue/compiler-sfc] `defineProps` is a compiler macro and no longer needs to be imported.【Bug记录】[@vue/compiler-sfc] defineProps is a compiler macro and no longer needs to be imported. Vue3项目遇到编译警告 或 错误翻译 英文:[@vue/compiler-sfc] 翻译:Vue 单文件组件 阅读全文
posted @ 2022-02-06 14:14 MegaSu 阅读(11405) 评论(0) 推荐(2) 编辑

点击右上角即可分享
微信分享提示