日期组件去掉“此刻”,为定时任务推送:
默认如下:
目标如下:
实现如下:
<el-date-picker
v-model="form.timingSendTime"
type="datetime"
placeholder="选择日期时间"
:picker-options="pickerOptions"
@focus="focus">
</el-date-picker>
mothed:
focus() {
this.$nextTick(() => {
document
.getElementsByClassName('el-button--text')[0]
.setAttribute('style', 'display:none')
})
},