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;
  }
}


相关推荐
蒲公英源码3 天前
uniapp开源ERP多仓库管理系统
mysql·elementui·uni-app·php
533_7 天前
[vue3] h函数,阻止事件冒泡
javascript·vue.js·elementui
Jeffrey__Lin8 天前
解决Grid布局下el-table自适应缩小失败的问题
vue.js·elementui·html
天天向上102411 天前
在 Vue3 项目中使用 el-tree
javascript·vue.js·elementui
天天向上102411 天前
vue2 vue3 修改elementUI和elementPlus主题颜色
前端·javascript·elementui
D_C_tyu13 天前
Vue3 + Element Plus 实现前端手动分页
javascript·vue.js·elementui
星光一影13 天前
供应链进销存源码uniapp全开源ERP多仓库管理系统pc+app手机端
mysql·elementui·uni-app·开源·php·phpstorm·1024程序员节
xu_duo_i13 天前
vue2+elementUI后端返回二进制流,前端下载实现
前端·javascript·elementui
我家媳妇儿萌哒哒14 天前
Vue2 elementUI年份区间选择组件
前端·javascript·elementui
asdfsdgss15 天前
Axure 组件不用手绘:ElementUI/Plus 元件库 + 大厂规范现成资源
elementui·axure·photoshop