随笔分类 -  Vue

摘要:![](https://img2023.cnblogs.com/blog/1940615/202211/1940615-20221130203517868-2137061632.png) 阅读全文
posted @ 2022-11-30 20:35 LeoShi2020 阅读(18) 评论(0) 推荐(0)
摘要:![](https://img2023.cnblogs.com/blog/1940615/202211/1940615-20221130185737639-265363536.png) 阅读全文
posted @ 2022-11-30 18:57 LeoShi2020 阅读(27) 评论(0) 推荐(0)
摘要:1. vt vue3 template "vue3 template": { "prefix": "vt", "body": [ "<script setup>", " $1", "</script>", "", "<template>", " <div>", " $2", " </div>", & 阅读全文
posted @ 2022-11-30 14:13 LeoShi2020 阅读(134) 评论(0) 推荐(0)
摘要:1. 响应式数据 2. 箭头函数 // 箭头函数后面不加大括号,默认只能有一行代码,默认return; const doubleCount1 = computed(() => count.value * 2) // 箭头函数后面加大括号,默认没有return; const doubleCount2 阅读全文
posted @ 2022-11-30 14:01 LeoShi2020 阅读(679) 评论(0) 推荐(0)
摘要:![](https://img2023.cnblogs.com/blog/1940615/202211/1940615-20221130131301889-1994312766.png) 阅读全文
posted @ 2022-11-30 13:48 LeoShi2020 阅读(63) 评论(0) 推荐(0)
摘要:![](https://img2023.cnblogs.com/blog/1940615/202211/1940615-20221130121629819-656282514.png) ![](https://img2023.cnblogs.com/blog/1940615/202211/1940615-20221130121715809-1152173219.png) 阅读全文
posted @ 2022-11-30 12:18 LeoShi2020 阅读(35) 评论(0) 推荐(0)
摘要:1. 新建VUE项目局域网无法访问 修改 package.json文件 # 重新初始化 npm install # 启动项目 npm run dev VITE v3.2.2 ready in 323 ms ➜ Local: http://10.105.212.1:5173/ ➜ Network: h 阅读全文
posted @ 2022-10-31 19:43 LeoShi2020 阅读(446) 评论(0) 推荐(0)
摘要:1. vite创建vue环境 [root@Python Vue]# npm init vite@latest Need to install the following packages: create-vite@3.2.0 Ok to proceed? (y) ✔ Project name: … 阅读全文
posted @ 2022-10-31 15:45 LeoShi2020 阅读(88) 评论(0) 推荐(0)
摘要:1. 下载地址 curl -O https://nodejs.org/dist/v16.18.0/node-v16.18.0-linux-x64.tar.xz 2. 安装部署 VERSION=v16.18.0 DISTRO=linux-x64 mkdir -p /usr/local/lib/node 阅读全文
posted @ 2022-10-31 15:08 LeoShi2020 阅读(1720) 评论(0) 推荐(0)
摘要:# 安装git yum install -y git # 配置git git config --global user.name "<名称>" git config --global user.email "<邮箱>" # 查看git配置 git config --list # 添加远端仓库 git 阅读全文
posted @ 2021-05-22 08:36 LeoShi2020 阅读(29) 评论(0) 推荐(0)
摘要:下载地址 https://github.com/nvm-sh/nvm/archive/refs/tags/v0.38.0.tar.gz tar zxvf nvm-0.38.0.tar.gz mv nvm-0.38.0 /usr/local/ ln -s /usr/local/nvm-0.38.0 ~ 阅读全文
posted @ 2021-05-22 00:21 LeoShi2020 阅读(130) 评论(0) 推荐(0)
摘要:安装组件 npm WARN ajv keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. npm WARN bootstrap@ 阅读全文
posted @ 2020-03-14 17:20 LeoShi2020 阅读(1150) 评论(0) 推荐(0)
摘要:进入项目目录 安装BootStrap npm WARN ajv keywords@3.4.1 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. npm W 阅读全文
posted @ 2020-03-14 11:12 LeoShi2020 阅读(2458) 评论(0) 推荐(0)
摘要:$ vue init webpack myweb Command vue init requires a global addon to be installed. Please run npm install g @vue/cli init and try again. $ npm install 阅读全文
posted @ 2020-03-14 10:16 LeoShi2020 阅读(897) 评论(0) 推荐(0)
摘要:ESLint抛错(MacOS) TypeError: this.cliEngine is not a constructor 阅读全文
posted @ 2020-03-12 23:29 LeoShi2020 阅读(1277) 评论(0) 推荐(0)
摘要:运行环境MacOS 执行过程 Vue CLI v4.2.3 ✨ Creating project in /Users/Leo/Dropbox/Tutorial/VUE/vue admin. 🗃 Initializing git repository... ⚙️ Installing CLI plu 阅读全文
posted @ 2020-03-12 22:06 LeoShi2020 阅读(445) 评论(0) 推荐(0)
摘要:$ vue ui 🚀 Starting GUI... 🌠 Ready on http://localhost:8000 使用IP访问 vue ui -H 10.0.0.1 END 阅读全文
posted @ 2020-03-10 21:19 LeoShi2020 阅读(642) 评论(0) 推荐(0)
摘要:安装nodejs 安装淘宝镜像 安装webpack 安装vue cli END 阅读全文
posted @ 2020-03-10 21:10 LeoShi2020 阅读(304) 评论(0) 推荐(0)
摘要:watch 用于侦听变量的变化,然后进行相应的处理 尽量不使用watch使用computed代替 示例源代码 END 阅读全文
posted @ 2020-03-06 17:46 LeoShi2020 阅读(194) 评论(0) 推荐(0)
摘要:computed 处理元数据,便于进行二次利用(比如:消费税自动计算功能) 源代码 END 阅读全文
posted @ 2020-03-05 15:44 LeoShi2020 阅读(145) 评论(0) 推荐(0)