Merge pull request #593 from rudyLittleLove/master

DatePicker capture 设置为false 点击年、月、日异常关闭下拉框bug修复
This commit is contained in:
Aresn 2020-09-18 15:55:35 +08:00 committed by GitHub
commit f06997e18c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>