pickup-grid-view-engine.ts 848 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
import GridViewEngine from './grid-view-engine';

/**
 * 实体选择表格视图(部件视图)界面引擎
 *
 * @export
 * @class PickupGridViewEngine
 * @extends {GridViewEngine}
 */
export default class PickupGridViewEngine extends GridViewEngine {

    /**
     * Creates an instance of PickupGridViewEngine.
     * 
     * 
     * @memberof PickupGridViewEngine
     */
    constructor() {
        super();
    }

    /**
     * 选中激活数据
     *
     * @param {string} eventName
     * @param {*} args
     * @memberof PickupGridViewEngine
     */
    public MDCtrlEvent(eventName: string, args: any): void {
        if (Object.is(eventName, 'rowdblclick') && this.gridRowAllowActive(2)) {
            this.view.$emit('viewdatasactivated', args);
            return ;
        }
        super.MDCtrlEvent(eventName, args);
    }
}