![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
element
ygkyufcl
这个作者很懒,什么都没留下…
展开
-
element中一些小问题总结
一、标题el-input 添加回车事件 @keyup.enter.native 二、标题el-input同时添加blur和keyup.enter.native会触发两次 @blur='changeData' @keyup.enter.native='$event.target.blur' 三、el-table表格在苹果浏览器上间隔线错位 body .el-table th.gutter { display: table-cell !important; } body .el-table colgro原创 2021-02-23 16:14:35 · 423 阅读 · 1 评论 -
element-dialog实现拖拽
@/el-drag-dialog/drag.js import drag from './drag' const install = function(Vue) { Vue.directive('el-drag-dialog', drag) } if (window.Vue) { window['el-drag-dialog'] = drag Vue.use(install); // eslint-disable-line } drag.install = install export d原创 2021-01-11 15:37:24 · 143 阅读 · 0 评论 -
Element为el-tree添加指示虚线
<div class='tree-container'> <el-tree class="tree" :indent='0' ></el-tree> </div> .tree-container { overflow: hidden; } .tree /deep/ .el-tree-node { position: relative; padding-left: 0 ; } .tree /deep/ .el-tree-node__child原创 2020-12-28 15:03:55 · 1766 阅读 · 1 评论 -
element-实现表格内修改
一、 <el-table-column prop="serial" label="序号" ><template slot-scope="scope"> <span @click.stop="scope.row.showInput = true" style="display: inline-block;width: 100%;" v-if="!scope.row.showInput" >{{ scope.原创 2020-10-29 17:22:45 · 490 阅读 · 0 评论