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

请问下为什么dataPicker的change事件不触发,试了其他的都可以。 #323

Closed
Vitaminaq opened this issue Sep 28, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@Vitaminaq
Copy link

Version

1.10.15

Reproduction link

https://fanyi.baidu.com/translate?aldtype=16047&query=&keyfrom=baidu&smartresult=dict&lang=auto2zh#en/zh/Cannot%20assign%20to%20'defaultValue'%20because%20it%20is%20a%20constant%20or%20a%20read-only%20property.

Steps to reproduce

if (!(this as any).datePicker) {
(this as any).datePicker = (this as any).$createDatePicker({
title: '选择时间',
min: new Date(2008, 7, 8),
max: new Date(2020, 9, 20),
value: new Date(),
format: {
year: 'YYYY年',
month: 'MM月',
date: '第 D 日'
},
columnCount: 2,
onSelect: (date, selectedVal) => {
console.log(selectedVal);
},
onCancel: () => {
console.log(1);
},
onChange: () => {
console.log(111);
}
});
}

What is expected?

正在开发,还没有链接可以用,望解决

What is actually happening?

就是dataPicker的change事件不触发,试了其他的都可以。

Dependencies Version

vue: 2.5.17
better-scroll: 1.13.0

@AmyFoxFN AmyFoxFN added the bug label Oct 10, 2018
@AmyFoxFN AmyFoxFN modified the milestones: v1.10.16, v1.10.17 Oct 10, 2018
@AmyFoxFN
Copy link
Contributor

谢谢反馈,确实有个bug,我们会在下个版本 v1.10.17 修复,预计这周五发版

@dolymood dolymood modified the milestones: v1.10.17, v1.11.0 Oct 10, 2018
@dolymood
Copy link
Contributor

1.11 fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants