UNPKG

@wjya/ngx-webapp-icpc.group.pms

Version:

angular webapp : icpc.group.pms

26 lines 1.76 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); var WxQrcodeComponent = /** @class */ (function () { function WxQrcodeComponent() { this.modalIsVisible = false; } WxQrcodeComponent.prototype.ngOnInit = function () { }; WxQrcodeComponent.prototype.handleCancel = function () { this.modalIsVisible = false; }; WxQrcodeComponent.decorators = [ { type: core_1.Component, args: [{ selector: 'zx-wx-qrcode', template: "<nz-modal [nzVisible]=\"modalIsVisible\" [nzWidth]=\"600\" [nzTitle]=\"modalTitle\" [nzContent]=\"modalContent\" [nzFooter]=\"modalFooter\" (nzOnCancel)=\"handleCancel()\"><ng-template #modalTitle><span>\u4E8C\u7EF4\u7801</span></ng-template><ng-template #modalContent><img [src]=\"qrcodeValue\" alt=\"\u4E8C\u7EF4\u7801\" *ngIf=\"qrcodeValue\" style=\"width:425px\"> <a [href]=\"qrcodeUrl\" download=\"\u4E8C\u7EF4\u7801\" style=\"display: block;width: 56px;margin: 0 auto;margin-top: 10px;\">\u70B9\u51FB\u4E0B\u8F7D</a></ng-template><ng-template #modalFooter><button nz-button [nzType]=\"'default'\" [nzSize]=\"'large'\" (click)=\"handleCancel()\"><span>\u53D6 \u6D88</span></button></ng-template></nz-modal>", styles: [ "\n :host ::ng-deep .ant-modal-body{\n text-align: center;\n height:500px;\n }\n " ] },] }, ]; /** @nocollapse */ WxQrcodeComponent.ctorParameters = function () { return []; }; return WxQrcodeComponent; }()); exports.WxQrcodeComponent = WxQrcodeComponent; //# sourceMappingURL=wx-qrcode.component.js.map