Interface PopViewParams

弹框层回调对象定义(废弃)

Hierarchy

Properties

onAdded?: ((node: Node, params: any) => void)

Type declaration

    • (node: Node, params: any): void
    • 节点添加到层级以后的回调

      Parameters

      • node: Node

        当前界面节点

      • params: any

        外部传递参数

      Returns void

onBeforeRemove?: ((node: Node, next: Function) => void)

Type declaration

    • (node: Node, next: Function): void
    • 如果指定onBeforeRemoved,则next必须调用,否则节点不会被正常删除。

      比如希望节点做一个FadeOut然后删除,则可以在onBeforeRemoved当中播放action动画,动画结束后调用next

      Parameters

      • node: Node

        当前界面节点

      • next: Function

        回调方法

      Returns void

onLoadFailure?: (() => void)

Type declaration

    • (): void
    • 网络异常时,窗口加载失败回调

      Returns void

onRemoved?: ((node: null | Node, params: any) => void)

Type declaration

    • (node: null | Node, params: any): void
    • 窗口节点 destroy 之后回调

      Parameters

      • node: null | Node

        当前界面节点

      • params: any

        外部传递参数

      Returns void

opacity?: number

控制暗色背景的透明度 默认为190

touchClose?: boolean

是否触摸背景关闭弹窗

Generated using TypeDoc