We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.10.15
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.
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); } }); }
正在开发,还没有链接可以用,望解决
就是dataPicker的change事件不触发,试了其他的都可以。
vue: 2.5.17 better-scroll: 1.13.0
The text was updated successfully, but these errors were encountered:
谢谢反馈,确实有个bug,我们会在下个版本 v1.10.17 修复,预计这周五发版
Sorry, something went wrong.
1.11 fixed
AmyFoxFN
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: