为什么Ionic会生成QR码而不是条形码?

时间:2018-09-24 05:56:05

标签: typescript ionic-framework barcode-scanner

执行以下操作:-

deleteRow() {
const selectedData = this.gridApi.getSelectedRows();
this.assetTypeService.deleteAssetType(selectedData[0].AssetTypeID)
  .subscribe((result) => {
    this.gridApi.refreshInfiniteCache();
  })
}

}

为什么它会在屏幕上生成QR码,我想生成条形码,该如何在离子中实现呢?

1 个答案:

答案 0 :(得分:0)

很抱歉,根据this的说法,@ ionic-native / barcode-scanner到目前为止不支持条形码编码。

  

我建议使用节点包,例如this

尽管它不是离子型的,您仍然可以使用<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content " app:cardElevation="0dp" android:layout_margin="9dp"> 并导入模块