vue3
文章平均质量分 57
呆呆bg
时光短暂
展开
-
Monaco-Editor配置
【代码】Monaco-Editor配置。原创 2022-08-25 10:27:03 · 1811 阅读 · 1 评论 -
vue2的 vuex 模块化引入 require.context
store的index.js文件中:Vue.use(Vuex);const modulesFiles = require.context('./modules', true, /\.js$/)const modules = modulesFiles.keys().reduce((modules, modulePath) => { const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1') const value = mod原创 2020-11-25 09:52:31 · 657 阅读 · 0 评论 -
vue2与vue3打包大小与文件对比
用的vue-cli 4.5.0做的测试首先是打包文件 图1 vue2 看到各个文件大小 图2 vue2 看到打包后文件与路由关系#### vue3 看到各个文件大小原创 2020-11-03 09:03:51 · 1779 阅读 · 0 评论 -
vue3 reactive ref getCurrentInstance watch 与生命周期 (简单todolist)
<template> <div class="user_list"> <p>{{aa}}</p> <p>{{userlist.adddata.name}}</p> <p>{{num}}</p> <input type="text" v-model="userlist.adddata.name"> <input原创 2020-10-12 21:14:51 · 4994 阅读 · 0 评论 -
vuecli4手机端 px自适应配置 (px转rem)
npm install amfe-flexible --Snpm install postcss-pxtorem --S在vue.config.js里面配置 ;如果没有这个文件夹在根目录下面创建一个module.exports = { css: { loaderOptions: { postcss: { plugins: [ require("autoprefixer")({ // 配置使用原创 2020-08-19 16:08:38 · 358 阅读 · 1 评论 -
vuecli4 vue3.0改变路径为hash路径
history: createWebHashHistory(process.env.BASE_URL), hash 路由createWebHistory history 路由createMemoryHistory 带缓存 history 路由parseQuery 查询参数反序列化stringifyQuery 查询参数序列化onBeforeRouteLeave 路由离开钩子作者:直立猿链接:https://www.jianshu.com/p/2b7001c0b6e0来源:简书著作权归作者转载 2020-08-19 16:05:17 · 2499 阅读 · 0 评论