摘要: /** * @description: 处理数据(格式转换) * @param {*} obj { x0: [11, 12, 13],x1: [21, 22, 23] } * @return {*} data 表格正常数据格式 */ export function dealData(obj) { c 阅读全文
posted @ 2022-11-28 15:29 xiaoxiao95 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1,dataEcharts.vue <template> <div ref="chartDom" class="chartDom"> <div class="content"> <div class="items"> <div class="line"> <div class="left"> <sv 阅读全文
posted @ 2022-08-22 17:46 xiaoxiao95 阅读(88) 评论(0) 推荐(0) 编辑
摘要: let datalist = [ { 'skuId': 1, 'skuName': 'test1', 'number': 11 }, { 'skuId': 2, 'skuName': 'test2', 'number': 22 }, { 'skuId': 3, 'skuName': 'test3', 阅读全文
posted @ 2022-06-24 12:02 xiaoxiao95 阅读(1757) 评论(0) 推荐(0) 编辑
摘要: 一,step1页面 <template> <div class="add-data card" v-loading="loading" :element-loading-text="loadingText" > <div class="add-data-box"> <div class="steps 阅读全文
posted @ 2022-06-20 17:44 xiaoxiao95 阅读(65) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue' import router from '@/router' import store from '@/store' import axios from 'axios' import { Message } from 'element-ui' const p 阅读全文
posted @ 2022-06-17 13:17 xiaoxiao95 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 页面渲染性能的优化衡量指标window.performance是w3c提供的用来测量网页和Web应用程序的性能api。其中performance timing提供了延时相关的性能信息,可以高精度测量网站性能 。 白屏时间=页面开始展示的时间点(PerformanceTiming.domLoading 阅读全文
posted @ 2022-06-08 10:24 xiaoxiao95 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 在 vue cli2 项目中使用Vuex时,ie浏览器会出现“Vuex requires a Promise polyfill in this browser”的错误提示,这是因为使用了ES6 Promise,而IE浏览器不支持,解决方案如下: 1. 安装babel-polyfill 执行以下命令, 阅读全文
posted @ 2022-06-08 09:48 xiaoxiao95 阅读(5686) 评论(0) 推荐(0) 编辑
摘要: 1、新建websocket.js /** * 发起websocket请求函数 * @param {object} wsObj - ws对象 * @param {string} type - 操作websocket:销毁close、创建create * @param {number} timeout 阅读全文
posted @ 2022-06-07 14:53 xiaoxiao95 阅读(1547) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <!-- 创建容器 --> <div id="mountNode"></div> </div></template> import G6 from '@antv/g6' export default { mounted() { const data = { labe 阅读全文
posted @ 2022-06-07 13:30 xiaoxiao95 阅读(994) 评论(0) 推荐(0) 编辑
摘要: 组件代码 <template> <div> <div class="slider" ref="slider"> <div class="process" :style="{ width }"></div> <div class="thunk" ref="trunk" :style="{ left } 阅读全文
posted @ 2022-06-07 13:23 xiaoxiao95 阅读(319) 评论(0) 推荐(0) 编辑