12 2021 档案

摘要:我们在做vue2项目的时候,往往弹窗设置都挺负责的需要各种z-indx,而vue3推荐的做法是使用Teleport <!-- index.html--> <body> <div id="app"></div> <div id="teleport-target"></div> <script type 阅读全文
posted @ 2021-12-26 11:26 王小美丶 阅读(225) 评论(0) 推荐(0)
摘要:import { defineAsyncComponent, ref, provide } from 'vue'; // 父组件 const emit = defineAsyncComponent(() => import('../../components/edit/index.vue')) co 阅读全文
posted @ 2021-12-20 22:28 王小美丶 阅读(7945) 评论(0) 推荐(1)
摘要:var MyCubeRect = echarts.graphic.extendShape({ shape: { x: 0, y: 0, }, buildPath: function (ctx, shape) { const api = shape.api; const xAxisPoint = ap 阅读全文
posted @ 2021-12-15 15:31 王小美丶 阅读(574) 评论(0) 推荐(0)
摘要:vue项目打包压缩 vue-cli-service build --report 打包完成会产生report.html 通过这个文件可以得知项目体积以及个个依赖大小,打包完成后开启nginx压缩 安装压缩包 npm i compression-webpack-plugin -D vue.config 阅读全文
posted @ 2021-12-12 15:04 王小美丶 阅读(1131) 评论(0) 推荐(0)
摘要:(async () => { const fetchData = () => { return new Promise((resolve, reject) => { setTimeout(() => { resolve('fetch data is me') }, 1000) }) } // 抽离成 阅读全文
posted @ 2021-12-01 18:05 王小美丶 阅读(450) 评论(0) 推荐(0)