当前位置: 首页 > news >正文

elementUI 中el-date-picker和el-select的样式调整

1.  el-date-picker

<el-date-picker class="select1" size="small" v-model="timeRangeArr" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" format="yyyy-MM-dd" value-format="yyyy-MM-dd">
</el-date-picker>pickerOptions: {shortcuts: [{text: '最近一周',onClick(picker) {const end = new Date();const start = new Date();start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);picker.$emit('pick', [start, end]);}}, {text: '最近一个月',onClick(picker) {const end = new Date();const start = new Date();start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);picker.$emit('pick', [start, end]);}}, {text: '最近三个月',onClick(picker) {const end = new Date();const start = new Date();start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);picker.$emit('pick', [start, end]);}}]},timeRangeArr: []style.select1 {margin-top: 10px;margin-left: 13px;outline: none;width: 240px;background-color: transparent;
}.select1>>>.el-range-input {font-size: 13px;width: 80px;color: white;background-color: transparent;
}.select1>>>.el-range-separator {color: white;
}

2. el-select

<el-select v-model="value" placeholder="" size="mini" class="select1"><el-option  v-for="item in options":key="item.Id":label="item.Wcname":value="item.Id"></el-option>
</el-select>.select1{margin-top: 10px;margin-left: 13px;outline: none;}.select1>>> .el-input--mini{font-size: 8px;width: 80px;color: white;
}
/* selecte 框的高度设置,默认是 40px*/
.select1>>>.el-input__inner{height: 20px;padding: 0px;padding-left: 8px;padding-right: 18px;color: white;background-color: #598684;
}
/* 下面设置右侧按钮居中 */
.select1>>> .el-input__suffix {top: 3px;/* margin-left: 0px; */
}
.select1>>>.el-input__icon {line-height: inherit;width: 15px;color: white;}
.select1>>>.el-input__suffix-inner {display: inline-block;
}
/deep/ .el-select-dropdown__item {color: #0957f5;height: 20px;line-height: 20px;font-size: 9px;
}

相关文章:

  • 自由开发者计划 001:创建一个用于查看 Jupyter Notebook 的谷歌浏览器插件
  • 从零搭建SpringBoot Web 单体项目【基础篇】2、SpringBoot 整合数据库
  • transformer归一化层优化:深度解读 RMSNorm (Root Mean Square Layer Normalization,均方根层归一化)
  • R语言学习--Day05--绘图技巧
  • Vue.js教学第八章:深入掌握Vue组件生命周期
  • 【沉浸式求职学习day46】【华为5.7暑期机试题目讲解】
  • 机器学习第二十一讲:正则化 → 给模型带定位手环防走极端路线
  • 【ffmpeg】SPS与PPS的概念
  • java中定时任务的实现及使用场景
  • 现网割接步骤,慢慢总结版
  • Spring Boot接口通用返回值设计与实现最佳实践
  • spring中的Interceptor使用说明
  • svn 提交后报错 : is scheduled for addtion,but is missing
  • aws平台s3存储桶夸域问题处理
  • JavaScript性能优化实战(14):跨端JavaScript性能优化
  • 从版本控制到协同开发:深度解析 Git、SVN 及现代工具链
  • 【Redis】二、Redis常用数据类型命令学习
  • 【STM32】自定义打印函数
  • SQL 多表关联与分组聚合:解密答题正确率分析
  • “零风险”探究,化学虚拟仿真实训​
  • wordpress+相应太慢/谷歌seo靠谱吗
  • axure怎么做网站首页/什么是优化
  • 网站备案把二级域名放在国外/seo站长工具综合查询
  • 挂马网站教程/广州seo公司
  • 松江手机网站建设/河北seo
  • 门户网站建设内容/it行业培训机构哪个好