elment小结

1 日期选择(年选择后高亮)

bash 复制代码
 <el-form-item label="年度选择">
        <el-date-picker
          type="year"
          v-model="years"
          value-format="yyyy"
          placeholder="年度选择"
          popper-class="date_form"
          @change="pickerStatus1">
        </el-date-picker>
      </el-form-item>

其中popper-class是官网的

bash 复制代码
.date_form {
  .el-year-table td.current:not(.disabled) .cell{
    color: #1890ff;
    font-weight: bold !important;
    background-color: var(--el-datepicker-active-color); // 这里应用的是项目的默认样式颜色,跟整个系统保持统一
    border-radius: 100px;
  }
  .el-year-table td.today .cell {
    font-weight: normal;
    color: #606266;
  }
}


相关推荐
森林的尽头是阳光5 天前
tree回显问题
javascript·vue.js·elementui
Bad_Shepherd6 天前
vue-element-plus-admin添加自定义svg图标,并且图标选择组件可选自定义图标
vue.js·elementui·前端框架
不甘平凡的小鸟13 天前
Element-UI记录
javascript·vue.js·ui·elementui
chushiyunen1 个月前
vue el-pagination实现分页
javascript·vue.js·elementui
一坨阿亮1 个月前
使用e-tree开发树形穿梭框
javascript·vue.js·elementui
北极星日淘2 个月前
可买免税店货物与安耐晒——特殊商品代购技术方案
javascript·vue.js·elementui
chushiyunen2 个月前
vue插件element ui,element plus,ElMessage消息框,ref,动态绑定语法
vue.js·ui·elementui
流浪码农~2 个月前
Element Plus DatePicker 动态设置每周起始日
前端·vue.js·elementui
依托偶尔宁2 个月前
element-plus:el-table设置展开图标所在列的位置
前端·elementui
吠品2 个月前
PyTorch 踩坑:libtorch_cpu.so 找不到 iJIT_NotifyEvent 符号
前端·vue.js·elementui