File tree Expand file tree Collapse file tree 5 files changed +52
-7
lines changed
Expand file tree Collapse file tree 5 files changed +52
-7
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,9 @@ English | <a href="README.zh-CN.md">中文</a>
77## Introduction
88This project is a Blazor component library packaged with ZXing
99
10- ## DEMO
10+ ## Demo
1111https://zxingblazor.app1.es
1212
13- ## Screenshot
14- ![ ZXingBlazor] ( https://user-images.githubusercontent.com/8428709/94275844-c28cf500-ff47-11ea-9c65-2370752d2b5b.gif )
15-
1613## Step
1714Pages/_ Host.cshtml
1815
@@ -29,6 +26,8 @@ In your Razor page
2926<input type="text" class="form-control" style="min-width: 100px;"
3027 @bind-value ="BarCode"
3128 placeholder="条码" />
29+
30+
3231@if (ShowScanBarcode)
3332{
3433
@@ -38,6 +37,11 @@ In your Razor page
3837
3938}
4039
40+
41+ ## Screenshot
42+ ![ ZXingBlazor] ( https://user-images.githubusercontent.com/8428709/94275844-c28cf500-ff47-11ea-9c65-2370752d2b5b.gif )
43+
44+
4145## Participate in contribution
4246
43471 . Fork this project
Original file line number Diff line number Diff line change 1010## 演示地址
1111https://zxingblazor.app1.es
1212
13+ ## 使用
14+ Pages/_ Host.cshtml
15+
16+ <script src="_content/ZXingBlazor/lib/barcodereader/zxing.js"></script>
17+ <script src="_content/ZXingBlazor/lib/barcodereader/barcode.js"></script>
18+
19+ In your Razor page
20+
21+ <button class="btn btn-sm btn-light"
22+ type="button"
23+ @onclick ="(() => ShowScanBarcode = !ShowScanBarcode)">
24+ [ 扫码]
25+ </button >
26+ <input type="text" class="form-control" style="min-width: 100px;"
27+ @bind-value ="BarCode"
28+ placeholder="条码" />
29+
30+
31+ @if (ShowScanBarcode)
32+ {
33+
34+ <BarcodeReader ScanResult="((e) => { BarCode=e; ShowScanBarcode = !ShowScanBarcode; })"
35+ ShowScanBarcode="ShowScanBarcode"
36+ Close="(()=>ShowScanBarcode=!ShowScanBarcode)" />
37+
38+ }
39+
40+
41+
1342## 项目截图
1443![ ZXingBlazor] ( https://user-images.githubusercontent.com/8428709/94275844-c28cf500-ff47-11ea-9c65-2370752d2b5b.gif )
15- ![ ZXingBlazor1] ( https://user-images.githubusercontent.com/8428709/94275849-c3258b80-ff47-11ea-843b-ba4b6d8f1a79.jpg )
16- ![ ZXingBlazor2] ( https://user-images.githubusercontent.com/8428709/94275850-c3be2200-ff47-11ea-9728-e81f52a98db0.jpg )
1744
1845
1946## 参与贡献
Original file line number Diff line number Diff line change 1+ {
2+ "version" : 1 ,
3+ "isRoot" : true ,
4+ "tools" : {
5+ "dotnet-ef" : {
6+ "version" : " 3.1.8" ,
7+ "commands" : [
8+ " dotnet-ef"
9+ ]
10+ }
11+ }
12+ }
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <TargetFramework >netcoreapp3.1</TargetFramework >
5+ <UserSecretsId >dc129ef5-8946-4566-b75b-463edf18558a</UserSecretsId >
56 </PropertyGroup >
67
78 <ItemGroup >
Original file line number Diff line number Diff line change 66 <RazorLangVersion >3.0</RazorLangVersion >
77 <IsPackable >true</IsPackable >
88 <PackageIcon >logo.png</PackageIcon >
9- <Version >3.1.16-beta01</Version >
9+ <Version >0.1</Version >
10+ <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
1011 </PropertyGroup >
1112
1213 <ItemGroup >
You can’t perform that action at this time.
0 commit comments