el-date-picker如何取消清除按钮
时间: 2023-08-17 09:05:44 浏览: 406
要取消el-date-picker组件的清除按钮,可以通过设置clearable属性为false来实现。在引用\[2\]中的代码中,将clearable属性设置为false即可取消清除按钮的显示。例如:
```html
<el-date-picker v-model="searchForm.timeRange" class="cus-date" type="daterange" :clearable="false" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="\['00:00:00','23:59:59'\]"></el-date-picker>
```
这样就可以取消el-date-picker组件的清除按钮了。\[2\]
#### 引用[.reference_title]
- *1* [el-date-picker图标颜色](https://blog.csdn.net/qq_43840793/article/details/128445052)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [el-date-picker调试图标](https://blog.csdn.net/weixin_43939111/article/details/130810682)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文