Skip to content

actionpanel用esui的方法监听不到事件 #52

@iyuxy

Description

@iyuxy
/**
         * 代理子Action的事件
         *
         * @param {mini-event.Event} e 事件对象
         */
        function delegateActionEvent(e) {
            var event = require('mini-event').fromEvent(e, { preserveData: true, syncState: true });
            event.type = 'action@' + e.type;
            this.fire(event);
        }

上面的这个方法在普获到actionpanel里面的事件的时候会fire出来,但是在view中通的actionpanel的ID去绑定fire的事件却不能正常捕获,发现直接在上面函数中fire(event.type)是可以成功的,但是本身却不能正常捕获到事件。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions