mirror of
https://gitee.com/dromara/go-view.git
synced 2024-11-30 02:38:30 +08:00
feat:扩展eventsFn 事件
This commit is contained in:
parent
419098f7f3
commit
316bca8032
7
src/packages/index.d.ts
vendored
7
src/packages/index.d.ts
vendored
@ -126,7 +126,12 @@ export interface PublicConfigType {
|
||||
},
|
||||
advancedEvents: {
|
||||
[K in EventLife]?: string
|
||||
}
|
||||
},
|
||||
eventsFn: {
|
||||
on: 'change' | 'click' | undefined
|
||||
components: string | undefined
|
||||
fn: { [name: string]: string }
|
||||
}[],
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,8 @@ export class PublicConfigClass implements PublicConfigType {
|
||||
advancedEvents: {
|
||||
[EventLife.VNODE_MOUNTED]: undefined,
|
||||
[EventLife.VNODE_BEFORE_MOUNT]: undefined
|
||||
}
|
||||
},
|
||||
eventsFn: []
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,8 @@ const componentVersionUpdatePolyfill = (newObject: any, sources: any) => {
|
||||
advancedEvents: {
|
||||
[EventLife.VNODE_MOUNTED]: undefined,
|
||||
[EventLife.VNODE_BEFORE_MOUNT]: undefined
|
||||
}
|
||||
},
|
||||
eventsFn: []
|
||||
}
|
||||
}
|
||||
return newObject
|
||||
|
Loading…
Reference in New Issue
Block a user