Handle new change event data structure
masterThe data structure returned by the change event has changed in Vue 2.x:
- No Array Wrapper: The Vue 1.x version wrapped the event data in an array
[]. The Vue 2.x version returns the object directly. - Full Value Package: Unlike Vue 1.x, which only returned predefined tokens, the Vue 2.x version always returns a full object containing all supported time tokens (e.g.,
HH,H,hh,h,mm,m,ss,s,a,A, etc.).
// Vue 1.x data structure
[
{
data: {
HH:...,
mm:...
}
}
]
// Vue 2.x data structure
{
data: {
HH:...,
mm:...
}
}