Skip to content

Commit c2f6a02

Browse files
committed
.
1 parent cbce569 commit c2f6a02

File tree

5 files changed

+52
-7
lines changed

5 files changed

+52
-7
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ English | <a href="README.zh-CN.md">中文</a>
77
## Introduction
88
This project is a Blazor component library packaged with ZXing
99

10-
## DEMO
10+
## Demo
1111
https://zxingblazor.app1.es
1212

13-
## Screenshot
14-
![ZXingBlazor](https://user-images.githubusercontent.com/8428709/94275844-c28cf500-ff47-11ea-9c65-2370752d2b5b.gif)
15-
1613
## Step
1714
Pages/_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

4347
1. Fork this project

README.zh-CN.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,37 @@
1010
## 演示地址
1111
https://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
## 参与贡献
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}

ZXingBlazor.Server/ZXingBlazor.Server.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<UserSecretsId>dc129ef5-8946-4566-b75b-463edf18558a</UserSecretsId>
56
</PropertyGroup>
67

78
<ItemGroup>

src/ZXingBlazor/ZXingBlazor.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
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>

0 commit comments

Comments
 (0)