工作日常分享:今天有个需求,在表头上家一个?号,还是圆圈中带一个问号
实现方法:饿了么组件库中自带的参数
使用方法:slot="header"代表着表头,设置表头内容,但是slot-scope="scope"需要加上,否则不会显示,然后再设置列的内容即可
<el-table-column>
<!-- 自定义表头 -->
<template slot="header" slot-scope="scope">
<span>排序 <i class="el-icon-question" ></i></span>
</template>
<!-- 当前列内容 -->
<template slot-scope="scope">
<span>{
{
scope.row.product_sort}}</span>
</template>
</el-table-column>
其他工作日常分享:
统一输入框只能输入数字且不能小于1
使用循环总是拿到最后的值
将参数或者数据当做属性使用
el-form 动态控制rules是否校验
vue 实现只有中评好评差评功能