Merge pull request #593 from rudyLittleLove/master
DatePicker capture 设置为false 点击年、月、日异常关闭下拉框bug修复
This commit is contained in:
commit
f06997e18c
3 changed files with 5 additions and 3 deletions
|
@ -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));
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<span
|
||||
:class="getCellCls(cell)"
|
||||
v-for="cell in cells"
|
||||
@click="handleClick(cell)"
|
||||
@click="handleClick(cell, $event)"
|
||||
@mouseenter="handleMouseMove(cell)"
|
||||
|
||||
>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue