ci-plus 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/package.json +2 -10
- package/src/components.d.ts +1 -0
- package/src/identificationCard/barCode.vue +2 -2
- package/src/identificationCard/jsbarcode.js +2893 -0
- package/src/identificationCard/qrcode.ts +4 -0
- package/src/identificationCard/qrcode.vue +72 -0
- package/src/index.ts +2 -1
package/README.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
## 安装本组件库
|
|
2
2
|
|
|
3
|
+
## 特别注意:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
# 本组件库是二次封装,所以依赖一些其他库,需要安装以下库:
|
|
7
|
+
"lodash": "^4.17.21", # 工具库
|
|
8
|
+
"less": "^4.2.0", # less库
|
|
9
|
+
"sortablejs": "^1.15.1", # 拖拽库
|
|
10
|
+
"vite-plugin-svg-icons": "^2.0.1", # svg图标库
|
|
11
|
+
"jsbarcode": "^3.11.6", # 条形码库
|
|
12
|
+
"dayjs": "^1.11.9", # 日期处理库
|
|
13
|
+
"vue-draggable-plus": "^0.4.0", # 拖拽库
|
|
14
|
+
"qrcode": "^1.5.3", #二维码库
|
|
15
|
+
```
|
|
16
|
+
|
|
3
17
|
```sh
|
|
4
18
|
# 1、安装组件
|
|
5
19
|
pnpm install ci-plus -S
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ci-plus",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "ci组件库",
|
|
5
5
|
"main": "./index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -15,15 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"author": "cc",
|
|
17
17
|
"license": "ISC",
|
|
18
|
-
"dependencies": {
|
|
19
|
-
"lodash": "^4.17.21",
|
|
20
|
-
"less": "^4.2.0",
|
|
21
|
-
"sortablejs": "^1.15.1",
|
|
22
|
-
"vite-plugin-svg-icons": "^2.0.1",
|
|
23
|
-
"jsbarcode": "^3.11.6",
|
|
24
|
-
"dayjs": "^1.11.9",
|
|
25
|
-
"vue-draggable-plus": "^0.4.0"
|
|
26
|
-
},
|
|
18
|
+
"dependencies": {},
|
|
27
19
|
"devDependencies": {},
|
|
28
20
|
"peerDependencies": {},
|
|
29
21
|
"peerDependenciesMeta": {}
|
package/src/components.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare module '@vue/runtime-core' {
|
|
|
20
20
|
CiSdialog: typeof components.Sdialog
|
|
21
21
|
CiColumncell: typeof components.Columncell
|
|
22
22
|
CiIdentificationCard: typeof components.IdentificationCard
|
|
23
|
+
CiQrcode: typeof components.CiQrcode
|
|
23
24
|
|
|
24
25
|
CiSeeFile: typeof components.SeeFile
|
|
25
26
|
CiUpload: typeof components.Upload
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script setup lang="ts">
|
|
16
|
-
import {
|
|
17
|
-
import JsBarcode from 'jsbarcode'
|
|
16
|
+
import { onMounted, nextTick, watch } from 'vue'
|
|
17
|
+
import JsBarcode from './jsbarcode.js' //'https://cdn.jsdelivr.net/npm/jsbarcode@3.11.6/+esm'
|
|
18
18
|
interface Props {
|
|
19
19
|
value: String // 条码文本
|
|
20
20
|
type?: String // 类型
|