Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
557 views
in Technique[技术] by (71.8m points)

vue2-datepicker控件放在ElementUI的dialog或drawer中点击没效果

<el-drawer title="测试" :visible="visible"  @close="()=>{$emit('close')}">
<el-form ref="editForm" :model="form">
<el-form-item label="升级策略:">
         <date-picker
              v-model="timepic"
              type="datetime"
              value-type="format"
              format="YYYY-MM-DD HH:mm"
              :disabled-date="(date) => date < $moment().subtract(1, 'days')"
              :disabled-time="(date) => date < $moment().subtract(1, 'minutes')"
            />
</el-form-item>
</el-form>
</el-drawer>


timepic: this.$moment().format('YYYY-MM-DD HH:mm')

在ElementUI中
使用了这个时间控件。在第一次打开这个弹出层的时候显示这个时间选择控件是可以正常使用的;但是在第二次在打开的时候这个控件在页面上,但是点击控件不会再弹出时间选择面板了,就是点击这个控件没有任何反应。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

名字写错了 el-date-picker


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...