提交 d440ceb7 编写于 作者: D dolymood

Merge branch 'dev' of github.com:didi/cube-ui into dev

......@@ -26,7 +26,10 @@
max: new Date(2020, 9, 20),
value: new Date(),
onSelect: this.selectHandle,
onCancel: this.cancelHandle
onCancel: this.cancelHandle,
onChange: () => {
console.log('change')
}
})
}
......
......@@ -2,7 +2,7 @@ import createAPI from '../../common/helpers/create-api'
import { tip } from '../../common/helpers/debug'
export default function addDatePicker (Vue, DatePicker) {
const datePickerAPI = createAPI(Vue, DatePicker, ['select', 'cancel', 'value-change'])
const datePickerAPI = createAPI(Vue, DatePicker, ['select', 'cancel', 'change'])
datePickerAPI.before((data, renderFn, single) => {
if (single) {
tip('DatePicker component can not be a singleton.')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册