07 2021 档案

摘要:1.Vue脚手架配置插件image-webpack-loader 图片压缩(这个不怎么好用,因为安装插件会有问题) 1.cnpm install image-webpack-loader 2.代码配置 module.exports = { chainWebpack: config => { conf 阅读全文
posted @ 2021-07-20 10:10 阿臻 阅读(225) 评论(0) 推荐(0) 编辑
摘要:vue3.0 使用setup 语法糖 使用 props import { defineProps} from 'vue' const props = defineProps({ total: { type: Number, default: 0 }, page: { type: Number, de 阅读全文
posted @ 2021-07-09 10:10 阿臻 阅读(2971) 评论(0) 推荐(1) 编辑
摘要:.sync使用方法改变 带参数的 v-model 2.x <ChildComponent :title.sync="pageTitle" /> 3.x <ChildComponent v-model:title="pageTitle" /> 不带参数的 v-model 3.x <ChildCompo 阅读全文
posted @ 2021-07-09 09:59 阿臻 阅读(919) 评论(0) 推荐(0) 编辑
摘要:vue3.0 中 如何在setup中使用async await 第一种方法 使用suspense 包裹你的组件 感觉不太好 文档 <template> <suspense> <router-view></router-view> </suspense> </template> <script> ex 阅读全文
posted @ 2021-07-08 15:53 阿臻 阅读(20077) 评论(0) 推荐(1) 编辑

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