From a6f2694b87b07d40374c304f282a748422426b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=B0=91=E5=8D=AB?= Date: Fri, 7 Jun 2024 11:59:57 +0800 Subject: [PATCH] =?UTF-8?q?build(=E4=BA=8C=E7=BB=B4=E7=A0=81):=20=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E5=A4=B1=E8=B4=A5=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/plugin/BarCodePlugin.ts | 4 ++-- src/components/attributeBarcode.vue | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/core/plugin/BarCodePlugin.ts b/packages/core/plugin/BarCodePlugin.ts index e5a690ee..11c5a05c 100644 --- a/packages/core/plugin/BarCodePlugin.ts +++ b/packages/core/plugin/BarCodePlugin.ts @@ -2,13 +2,13 @@ * @Author: 秦少卫 * @Date: 2024-06-06 14:12:24 * @LastEditors: 秦少卫 - * @LastEditTime: 2024-06-07 11:53:04 + * @LastEditTime: 2024-06-07 11:57:45 * @Description: 条形码生成工具 */ import { fabric } from 'fabric'; import Editor from '../Editor'; -import * as JsBarcode from 'JsBarcode'; +import JsBarcode from 'jsbarcode'; type IEditor = Editor; diff --git a/src/components/attributeBarcode.vue b/src/components/attributeBarcode.vue index d6848f80..eccb5314 100644 --- a/src/components/attributeBarcode.vue +++ b/src/components/attributeBarcode.vue @@ -2,7 +2,7 @@ * @Author: 秦少卫 * @Date: 2024-06-06 16:27:21 * @LastEditors: 秦少卫 - * @LastEditTime: 2024-06-07 11:05:07 + * @LastEditTime: 2024-06-07 11:58:56 * @Description: 条形码插件 --> @@ -136,7 +136,6 @@ const getObjectAttr = (e) => { textType.includes(activeObject.type) && activeObject?.extensionType === 'barcode' ) { - console.log(activeObject.get('extension'), 111); baseAttr.value = activeObject.get('extension').value; baseAttr.format = activeObject.get('extension').format; baseAttr.text = activeObject.get('extension').text;