样式代码:
<el-date-picker v-model="value1" popper-class="picker-date" type="date" style="width:180px" placeholder="选择月份和日期" format="MM月dd日" value-format="MM-dd"> </el-date-picker>
CSS代码:
<style> .picker-date .el-date-picker__header span:nth-child(3) { display: none; } .picker-date .el-date-picker__header button:nth-child(1) { display: none; } .picker-date .el-date-picker__header button:nth-child(5) { display: none; } </style>
示例图如下: