摘要: 1、新建websocket.js /** * 发起websocket请求函数 * @param {object} wsObj - ws对象 * @param {string} type - 操作websocket:销毁close、创建create * @param {number} timeout 阅读全文
posted @ 2022-06-07 14:53 xiaoxiao95 阅读(1563) 评论(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 阅读(1016) 评论(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 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 子组件 <template> <div> <el-form :ref="form" :rules="rules" :model="form" label-width="110px" style="overflow: hidden; margin-left: 300px; margin-top: 30 阅读全文
posted @ 2022-06-07 13:20 xiaoxiao95 阅读(883) 评论(0) 推荐(0) 编辑
摘要: 安装依赖: //xlsx 与 file-saver依赖npm install --save xlsx file-saver 封装组件(Excel.vue)直接上代码: <template> <div> <el-button type="primary" style="background-color 阅读全文
posted @ 2022-06-07 13:11 xiaoxiao95 阅读(408) 评论(0) 推荐(0) 编辑