Element UI removes the moment button in the date and time selector

There is a function to execute tasks on a regular basis. There is a logical problem in the time selection. If the timing is at this moment, it is the same as real-time operation, and the meaning of timing is lost.

So here need to remove the function of selecting the time point at the moment 

As Vue Caigou, I haven’t found a way to directly disable this function for a long time, so I can only make this bad strategy and hide this button directly in CSS style.

Solution

 

1. Define a class attribute for the  el-date-picker tag

2. Modify the display property of the upper label in the global css properties of the vue project

.el-picker-panel__footer .el-button--text.el-picker-panel__link-btn {
  display: none;
}

After the modification is completed, restart the vue project to see the changes

Guess you like

Origin blog.csdn.net/weixin_41822224/article/details/107561462