chengpeiquan / learning-vue3 Goto Github PK
View Code? Open in Web Editor NEW超过 230w+ 阅读人次的《Vue3 入门指南与实战案例》,关于前端工程化开发的基础知识点,以及 TypeScript 、 Vue 3 、 Pinia 的入门学习指南。
Home Page: https://vue3.chengpeiquan.com
License: MIT License
超过 230w+ 阅读人次的《Vue3 入门指南与实战案例》,关于前端工程化开发的基础知识点,以及 TypeScript 、 Vue 3 、 Pinia 的入门学习指南。
Home Page: https://vue3.chengpeiquan.com
License: MIT License
如题,vsc 插件 volar 带了支持
作者您好,您的vue.chengpeiquan.com目前无法访问,请问方便修复吗
// main.ts
...
app.use(ElForm).use(ElFormItem).use(ElInput).use(ElButton).use(ElCard).use(ElMessage)
...
// Login.vue
<script setup lang="ts">
// 下面这一行不加进来vscode会报下图的错,但实际run serve又完全没问题,求问🧠是插件的问题么,应该怎么设置呢。
// import { ElForm, ElMessage } from "element-plus";
...
const form = ref<typeof ElForm | null>(null);
...
ElMessage.success("Login successfull");
<script>
建议结合Vue3中文官网看...
~
最近一个vue版本中有这样一个提示:
useContext()
has been deprecated and will be removed in the next minor release. Use useSlots()
and useAttrs()
instead.
我当前用在父子组件间的调用,用法是这样:
const ctx = useContext()
const msb = () => {
ctx.emit('update:msb')
}
我在网上没找到相关说明,该如何用useSlots() 和 useAttrs()呢
~
之前使用vue2+webpack的时候在谷歌调试工具中是可以直接调试script中的代码的,现在换成vue3+vite之后谷歌调试工具中源代码里可以找到vue文件,但是底下会自动生成一些文件,然后在方法处加断点后会加到底下生成的代码中,没有办法对方法进行调试。从网上搜了一堆解决方案,但是目前我还没找到能用到的,请问大佬十vite没有办法在源代码调试吗?如果能在源代码中调试可以告诉一下吗。谢谢大佬,祝大佬新年快乐。
您好,看了这个地址vue3.chengpeiquan.com的教案帮助很大,发现代码主题风格也相当nice,能告知一下是什么吗?谢谢了。
~
~
~
~
~
~
找遍全网都没找到过一个好的setup-script的详细教程,文章让我受益匪浅
npm run build
指令时, 需确保 Node.js 的版本 >= 12.0.0。利用nvm进行node版本切换,确保正确运行。"exclude": ["./node_modules"]
注释。How to contribute articles to this repo?
~
我通过preset生成项目,由于我之前写的vue2+js,新项目有的文件不是很理解其作用,比如为什么有的类型文件写在同一个目录,有的单独放在一个types文件内?等等... ... 希望可以出个文档解释一下,类似于vben的文档解释❤️,https://doc.vvbin.cn/guide/settings.html
看 了你的教程很不错,有微信群吗,否考虑建一个
~
Vue VSCode Snippets依赖Vetor,安装后会提示错误。
需要卸载后安装插件Vue Language Features (Volar)。
首先感谢learning-vue3
,边学习边落地了一个vue3+vite+ts
新项目。
项目最开始用的是vuex4
,当然也非常能满足需求。
但是近日看到pinia
简洁和随处可用的API后,果断重构了项目的store
部分。
在官方文档上学习pinia
过程中,发现虽然pinia
是vue3
优先且兼容vue2
,但文档store
中的大部分例子都是基于options API
写法,很多composition API
的写法需要自己摸索。
所以较为好奇有没有考虑加入Pinia
学习教程?
万分感谢。
Hello World!
需要借助ES6动态属性值 [key] ,要不然对象会把 activeClass1、activeClass2 直接当做属性名Hello World!
and there is no problem with Google translation now
Translate your translated stuff back, and tell me. Dont you see a problem? 😉
请问 https://vue3.chengpeiquan.com 这个网站是用那个UI框架做的?
按照天猪的说法 淘宝镜像源的域名要更换了, http://registry.npm.taobao.org 域名将于 2022 年 05 月 31 日零时起停止服务. 详见https://zhuanlan.zhihu.com/p/430580607
希望能更新 避免将来可能出现的错误
教程里面的部分示例代码是相互关联的,但是示例代码的最上方没有显示代码的文件名。阅读起来比较困难。
非常感谢作者写出来这么好的文章 对我自己帮助很大、在这里支持一下。希望能保持更新,不要断更,我自己也会一直支持。大佬方便的话加个v 🤭,也希望出一期打包 自己的npm包 例如构建一个简单的vue3组件库 发布到npm 、 构建自己的函数工具库发布到npm
在看到进行本地调试的时候就有点懵了,很混乱。比如为什么会出现“path/to/xxx”这样的目录,本地测试的npm link作用机制是什么,等等
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.