mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-09 04:12:26 +03:00
添加自定义time-picker-option
This commit is contained in:
@@ -134,6 +134,9 @@ export default {
|
||||
if (!options) {
|
||||
return []
|
||||
}
|
||||
if (typeof options === 'function') {
|
||||
return options() || []
|
||||
}
|
||||
const start = parseTime(options.start)
|
||||
const end = parseTime(options.end)
|
||||
const step = parseTime(options.step)
|
||||
|
||||
@@ -123,9 +123,9 @@ export default {
|
||||
validator: val => val >= 0 && val <= 60
|
||||
},
|
||||
timePickerOptions: {
|
||||
type: Object,
|
||||
type: [Object, Function],
|
||||
default () {
|
||||
return {}
|
||||
return null
|
||||
}
|
||||
},
|
||||
confirm: {
|
||||
|
||||
Reference in New Issue
Block a user