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

浙公网安备 33010602011771号