"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var global_api_1 = require("/src/app/global-api");
var $app = global_api_1.app;
/*
* 可通过 this.$WEAPPS_COMP.handler.xxx 访问这里定义的方法
*
* 如果需要 async-await，请修改成 export default async function() {}
*/
function default_1(_a) {
    var event = _a.event;
    var value = event.detail;
    var _b = this.$WEAPPS_COMP.props.data, route = _b.route, routeType = _b.routeType;
    if (route) {
        var action = global_api_1.app[routeType] || global_api_1.app.navigateTo;
        action({ pageId: value });
    }
    else {
        this.$WEAPPS_COMP.props.events.change(value);
    }
}
exports.default = default_1;
;
//# sourceMappingURL=onTabItemClick.js.map