DatePicker capture 设置为false 点击年、月、日异常关闭下拉框bug修复

This commit is contained in:
zhouyu 2020-07-21 16:03:45 +08:00
parent edd93e3116
commit dff1eb1a14
3 changed files with 5 additions and 3 deletions

View file

@ -40,7 +40,9 @@ export default {
},
},
methods: {
handleClick (cell) {
handleClick (cell, e) {
e.stopPropagation();
if (cell.disabled || cell.type === 'weekLabel') return;
const newDate = new Date(clearHours(cell.date));

View file

@ -3,7 +3,7 @@
<span
:class="getCellCls(cell)"
v-for="cell in cells"
@click="handleClick(cell)"
@click="handleClick(cell, $event)"
@mouseenter="handleMouseMove(cell)"
>

View file

@ -3,7 +3,7 @@
<span
:class="getCellCls(cell)"
v-for="cell in cells"
@click="handleClick(cell)"
@click="handleClick(cell, $event)"
@mouseenter="handleMouseMove(cell)"
>
<em>{{ cell.date.getFullYear() }}</em>