![](https://img-blog.csdnimg.cn/2019092715111047.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Element-UI
Element-UI 学习笔记
xiaoShengSanYue
这个作者很懒,什么都没留下…
展开
-
element 表单中使用 flex 布局对齐方式失效
在使用 element 的表单的时候, 想要让两个 input 输入框放在一排上, 所以代码如下:此时, justify-content: space-between 失效了, 两个 input 输入框并不能两端对齐, 两端还留有一部分距离出现上述问题的原因是在 el-row 中有 after 和 before 这两个伪类, 他们两个的宽度虽然是 0, 但是也占了位置解决方法是把伪类去掉.el-row:before, .el-row:after { content: none}...原创 2021-11-15 17:09:49 · 1912 阅读 · 0 评论 -
element-ui 中手动上传文件
代码如下<el-upload ref="upload" :auto-upload="false" :http-request="uploadWord"> <el-button size="small" type="primary">选择文件</el-button></el-upload><el-button size="small" type="primary" @click='upload'>点击上传</el-button>.原创 2021-08-31 14:41:40 · 933 阅读 · 1 评论 -
element-ui 中自定义上传回调函数参数
element-ui 文档中上传成功回调函数如下:其中三个参数, 但是如果想要在该钩子中新增参数的话, 可以如下操作:<el-upload class="avatar-uploader" :show-file-list="false" :action="uploadImageUrl" :on-success="response => uploadImageSuccess(response, index)"> <img v-if="teamItem.usericon" :sr.原创 2021-08-31 11:49:24 · 1467 阅读 · 0 评论