import { RhLabelService } from './../../label.service'; import { Component, OnInit, Input } from '@angular/core'; @Component({ selector: 'rh-download-printer-plugin', templateUrl: './download-printer-plugin.component.html', styleUrls: ['./download-printer-plugin.component.less'] }) export class DownloadPrinterPluginComponent implements OnInit { url = ''; /** * @rhPrintPlugin 是否需要下载打印插件 是:true;否:false * @rhPrintDriver 是否需要安装驱动程序 是:true;否:false */ @Input() rhPrintPlugin = true; @Input() rhPrintDriver = true; constructor(private operator: RhLabelService) {} ngOnInit(): void { this.url = this.operator.DownLoadLabelPrintTools(); } downloadPrintPlugin() { this.url = this.operator.DownLoadLabelPrintTools(); } downloadPrintDriver() { this.operator.DownLoadNetFramework(); } }