mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 20:28:54 +00:00
parent
fb13930096
commit
bc5b92adde
2
types/options.d.ts
vendored
2
types/options.d.ts
vendored
@ -181,7 +181,7 @@ export interface ComponentOptions<
|
||||
propsData?: object
|
||||
computed?: Accessors<Computed>
|
||||
methods?: Methods
|
||||
watch?: Record<string, WatchOptionsWithHandler<any> | WatchHandler<any>>
|
||||
watch?: Record<string, WatchOptionsWithHandler<any> | WatchHandler<any> | Array<WatchOptionsWithHandler<any> | WatchHandler<any>>>
|
||||
|
||||
setup?: (
|
||||
this: void,
|
||||
|
@ -172,7 +172,14 @@ Vue.component('component', {
|
||||
d: {
|
||||
handler: 'someMethod',
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
e: [
|
||||
'handle1',
|
||||
function handle2 (val, oldVal) {},
|
||||
{
|
||||
handler: function handle3 (val, oldVal) {},
|
||||
}
|
||||
],
|
||||
},
|
||||
el: '#app',
|
||||
template: '<div>{{ message }}</div>',
|
||||
|
Loading…
Reference in New Issue
Block a user