ion-oui
Version:
The client library of oui builder for ionic
43 lines (42 loc) • 1.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OUIIonElement = void 0;
var OUIIonElement = /** @class */ (function () {
function OUIIonElement() {
this.mode = 'ios';
}
Object.defineProperty(OUIIonElement.prototype, "deepStyle", {
get: function () {
return {};
},
enumerable: false,
configurable: true
});
OUIIonElement.prototype.ownClick = function (ev) {
var _a;
if (this.data.click_event) {
(_a = this.clickHandler) === null || _a === void 0 ? void 0 : _a.onClick({ ev: ev, data: this.data.click_event });
}
};
Object.defineProperty(OUIIonElement.prototype, "click", {
get: function () {
var _this = this;
if (!this.clickHandler) {
return this.clickHandler;
}
return {
vm: this.clickHandler.vm,
page: this.clickHandler.page,
onClick: function (ev) {
var _a;
ev.ev.stopImmediatePropagation();
(_a = _this.clickHandler) === null || _a === void 0 ? void 0 : _a.onClick(ev);
}
};
},
enumerable: false,
configurable: true
});
return OUIIonElement;
}());
exports.OUIIonElement = OUIIonElement;