![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
VUE
CV侠
这个作者很懒,什么都没留下…
展开
-
vue+elementUI文件上传和图片上传
第一种 使用它的action方法 <el-upload class="upload-demo" :headers="token" action="http://120.53.31.103:84/api/public/img" :on-preview="handlePreview" :on-remove="handleRemove" :file-list="sizeForm.fi原创 2022-04-04 22:20:23 · 2148 阅读 · 0 评论 -
Vue+element table 实现横向拖动
有时候表格内容会很多,需要横向滚动查看右边的内容,又不想到底部拖动滚动条,如果能直接在内容中拖动就好了,这个时候就可以用 Vue 的自定义指令来实现了。效果上代码//自定义指令表格横向拖动import Vue from 'vue';Vue.directive('tableDrag', { inserted: function(el) { el = el.getElementsByClassName('el-table__body-wrapper')[0]; ...原创 2022-03-30 16:08:39 · 2650 阅读 · 1 评论