-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
1.3.8
Environment
系统版本 :window10 浏览器版本:chrome Vue 版本:2.5
Reproduction link
Steps to reproduce
<template>
<div style="margin: 24px">
<a-range-picker
:placeholder="['Start Year', 'End Year']"
format="YYYY"
v-model="value"
:mode="mode2"
@panelChange="handlePanelChange2"
/>
</div>
</template>
<script>
import moment from "moment";
export default {
name: "App",
data() {
return {
moment,
mode2: ['year', 'year'],
value: [],
};
},
methods: {
handlePanelChange2 (value, mode) {
this.value = value
this.mode2 = ['year','year']
},
}
};
</script>
<style></style>
What is expected?
选中年份的时候,为选中状态
What is actually happening?
选中年份的时候,无变化
另外,当我使用mode=month的时候,第二个选择完毕的时候,无法自动关闭,只能移动鼠标关闭