Element UI 使用过程中的一点笔记

  1. element-ui的table列超出部分省略加悬浮提示:

     :show-overflow-tooltip="true"
    复制代码
  2. :show-overflow-tooltip=”true” prop=”sign” label=”签名” width=”200″>

  3. 禁止拉伸textarea: style=”resize:none”;

  4. 想要实现左右两边同高, 只需要设置父元素为display:flex; 即可. (当然, 父元素样式采用:display:table;, 子元素样式采用:display:table-cell; 也是可以实现的)。

  5. 文本溢出省略号:overflow:hidden;text-overflow:ellipsis;white-space:nowrap

  6. 阻止默认事件(表单或者a标签)

  7. this.preventDefault()

  8. 三元运算符;

  9. v-if else判断,为1是教练,否则为普通会员 :教练普通会员

  10. {{scope.row.type == 1?’教练’:’普通会员’}}

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享