MCPcopy Create free account
hub / github.com/chunshand/qdev / on

Function on

admin/src/components/Qdev/Modal/help.ts:14–21  ·  view source on GitHub ↗
(ModalName: string, modalOptions: ModalOptions)

Source from the content-addressed store, hash-verified

12 * @param modalOptions
13 */
14export const on = (ModalName: string, modalOptions: ModalOptions) => {
15 mitter.on(`${MODELKEY}${ModalName}:open`, (arg: any) => {
16 modalOptions.open(arg)
17 })
18 mitter.on(`${MODELKEY}${ModalName}:close`, (arg: any) => {
19 modalOptions.close(arg)
20 })
21}
22/**
23 * 取消监听
24 * @param ModalName

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected