Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日期选择如果mode是['year', 'year'],面板点击选择的年份样式不会改变 #1321

Closed
1 task
atzw1988 opened this issue Oct 21, 2019 · 1 comment
Labels

Comments

@atzw1988
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.1

Environment

vue 3.9.3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<a-range-picker
:placeholder="['Start year', 'End year']"
format="YYYY"
:value.sync="valueYear"
:mode="modeYear"
@panelChange="handlePanelChange"
@change="handleChange"/>

modeYear: ['year', 'year'],
valueYear: []

handleChange (value) {
console.log(value)
this.valueYear = value
},
handlePanelChange (value, mode) {
console.log(mode)
this.valueYear = value
this.mode2 = [
mode[0] === 'date' ? 'year' : mode[0],
mode[1] === 'date' ? 'year' : mode[1]
]
}

What is expected?

面板点击的年份样式会发生变化

What is actually happening?

点击时不会发生变化,需要重新打开面板才会改变

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant