vue
一两米阳光
这个作者很懒,什么都没留下…
展开
-
【TypeError: Cannot read properties of undefined (reading ‘__ob__‘)】
vue项目控制台打印TypeError: Cannot read properties of undefined (reading '__ob__')原创 2023-06-13 16:13:35 · 930 阅读 · 0 评论 -
vue项目中bus事件的使用
bus事件的使用原创 2022-06-30 10:59:08 · 750 阅读 · 0 评论 -
element的el-table组件实现分页复选功能及解决批量删除后仍会选中已删除的值问题
1.在标签中加入:row-key=“getRowKeys”<el-table :data="list" :row-key="getRowKeys" style="width: 100%" @selection-change="handleSelectionChange">2.在显示复选框一栏中添加:reserve-selection=“true”,只对type="selection"有效,作用在数据更新之后保留之前选中的数据(需指定 row-key)<el-table-column原创 2022-04-27 14:32:54 · 1832 阅读 · 0 评论 -
图片/文件上传与下载
一.下载export function downloadObjects({ name= '', key = '' }) { return request({ url: 'url', method: 'get', responseType: 'blob',//请求返回的文件流转为blob });}主要利用a标签的download属性进行下载export function downloadFile(data,fileName) { const url = windo原创 2022-02-23 15:07:43 · 174 阅读 · 0 评论 -
vue结合element的checkbox实现多项全选反选
<div v-for="res in resLists" :key="res.id"> <!-- 分类 --> <div style="padding: 20px; background-color: #eee"> <el-checkbox v-model="res.checked" :indeterminate="res.indeterminate" ...原创 2021-08-17 16:43:31 · 1320 阅读 · 0 评论