Skip to content

Commit 8537e3e

Browse files
committed
build: release 2.0.0
1 parent 313e4dd commit 8537e3e

File tree

7 files changed

+24244
-10449
lines changed

7 files changed

+24244
-10449
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# [2.0.0](https://github.com/fengyuanchen/vue-barcode/compare/v2.0.0-beta...v2.0.0) (2022-02-07)
2+
3+
4+
15
# [2.0.0-beta](https://github.com/fengyuanchen/vue-barcode/compare/v2.0.0-alpha...v2.0.0-beta) (2021-06-12)
26

37

README.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# vue-barcode
22

3-
[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-barcode.svg)](https://codecov.io/gh/fengyuanchen/vue-barcode) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-barcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-barcode) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-barcode/next.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-barcode) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-barcode.svg)](https://unpkg.com/@chenfengyuan/vue-barcode/dist/vue-barcode.js)
3+
[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-barcode.svg)](https://codecov.io/gh/fengyuanchen/vue-barcode) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-barcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-barcode) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-barcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-barcode) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-barcode.svg)](https://unpkg.com/@chenfengyuan/vue-barcode/dist/vue-barcode.js)
44

5-
> Bar code component for Vue 3, bases on [JsBarcode](https://github.com/lindell/JsBarcode).
5+
> Bar code component for Vue 3, bases on [JsBarcode](https://github.com/lindell/JsBarcode). For Vue 2, check out the [`v1`](https://github.com/fengyuanchen/vue-barcode/tree/v1) branch.
66
77
- [Docs](src/README.md)
88
- [Demo](https://fengyuanchen.github.io/vue-barcode)
@@ -14,23 +14,38 @@ dist/
1414
├── vue-barcode.js (UMD, default)
1515
├── vue-barcode.min.js (UMD, compressed)
1616
├── vue-barcode.esm.js (ECMAScript Module)
17-
└── vue-barcode.esm.min.js (ECMAScript Module, compressed)
17+
├── vue-barcode.esm.min.js (ECMAScript Module, compressed)
18+
└── vue-barcode.d.ts (TypeScript Declaration File)
1819
```
1920

2021
## Getting started
2122

2223
### Installation
2324

25+
Using npm:
26+
27+
```shell
28+
npm install vue@3 jsbarcode@3 @chenfengyuan/vue-barcode@2
29+
```
30+
31+
Using pnpm:
32+
33+
```shell
34+
pnpm add vue@3 jsbarcode@3 @chenfengyuan/vue-barcode@2
35+
```
36+
37+
Using Yarn:
38+
2439
```shell
25-
npm install vue@next jsbarcode @chenfengyuan/vue-barcode@next
40+
yarn add vue@3 jsbarcode@3 @chenfengyuan/vue-barcode@2
2641
```
2742

28-
In browser:
43+
Using CDN:
2944

3045
```html
31-
<script src="/path/to/vue.js"></script><!-- Vue.js is required -->
32-
<script src="/path/to/JsBarcode.all.js"></script><!-- JsBarcode is required -->
33-
<script src="/path/to/vue-barcode.js"></script>
46+
<script src="https://unpkg.com/vue@3"></script><!-- Vue.js is required -->
47+
<script src="https://unpkg.com/jsbarcode@3/dist/JsBarcode.all.min.js"></script><!-- JsBarcode is required -->
48+
<script src="https://unpkg.com/@chenfengyuan/vue-barcode@2"></script>
3449
```
3550

3651
### Usage

docs/app.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
</div>
7474
</div>
7575
</div>
76-
<div class="container">
76+
<div class="container pt-4">
7777
<div class="markdown-body">
7878
<readme />
7979
</div>
@@ -145,6 +145,7 @@ export default defineComponent({
145145
.markdown-body {
146146
table {
147147
display: table;
148+
width: 100%;
148149
}
149150
150151
code {

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="description" content="Number input component for Vue.js.">
99
<meta name="author" content="Chen Fengyuan">
1010
<link href="https://unpkg.com/bootstrap@5/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
11-
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css@4/github-markdown.css" crossorigin="anonymous">
11+
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css@5/github-markdown.css" crossorigin="anonymous">
1212
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11/styles/github.min.css" crossorigin="anonymous">
1313
</head>
1414
<body>
@@ -18,6 +18,6 @@
1818
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js" crossorigin="anonymous"></script>
1919
<script src="https://unpkg.com/jsbarcode@3.11.3/dist/JsBarcode.all.min.js" crossorigin="anonymous"></script>
2020
<script src="https://fengyuanchen.github.io/shared/google-analytics.js" crossorigin="anonymous"></script>
21-
<script>hljs.initHighlightingOnLoad();</script>
21+
<script>hljs.highlightAll();</script>
2222
</body>
2323
</html>

0 commit comments

Comments
 (0)