yh-hiprint 2.2.3 → 2.2.5

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.
@@ -622,6 +622,10 @@ onMounted(async () => {
622
622
  .percentage {
623
623
  width: 165px;
624
624
  }
625
+ .el-select {
626
+ --el-select-width: auto;
627
+ min-width: 100px;
628
+ }
625
629
  .el-form-item {
626
630
  margin-bottom: 0;
627
631
  margin-right: 10px;
package/designer.vue CHANGED
@@ -266,18 +266,7 @@
266
266
  </template>
267
267
  <script setup>
268
268
  import { onMounted, ref, onActivated, onDeactivated, computed, watch, nextTick } from "vue";
269
- import {
270
- hiprint,
271
- defaultElementTypeProvider,
272
- fontSize,
273
- scale,
274
- zIndex,
275
- panel,
276
- usePaper,
277
- useScale,
278
- useDataSource,
279
- jquery as $,
280
- } from "yh-hiprint";
269
+ import { hiprint, defaultElementTypeProvider, fontSize, scale, zIndex, panel, usePaper, useScale, useDataSource, jquery as $ } from "yh-hiprint";
281
270
  import { useRoute, onBeforeRouteUpdate } from "vue-router/dist/vue-router";
282
271
  import { ElMessageBox } from "element-plus";
283
272
  import axios from "@/libs/api.request";
@@ -375,17 +364,7 @@ function clearPrint() {
375
364
  hiprintTemplate.value?.clear();
376
365
  }
377
366
 
378
- const {
379
- detailData,
380
- getDetail,
381
- listCode,
382
- dataSourceList,
383
- listColumns,
384
- formCode,
385
- formColumns,
386
- dataSourceForm,
387
- getDataSourceList,
388
- } = useDataSource(axios);
367
+ const { detailData, getDetail, listCode, dataSourceList, listColumns, formCode, formColumns, dataSourceForm, getDataSourceList } = useDataSource(axios);
389
368
 
390
369
  watch(
391
370
  () => formColumns.value,
@@ -499,12 +478,9 @@ function init() {
499
478
  onImageChooseClick: (target) => {
500
479
  // 测试 3秒后修改图片地址值
501
480
  setTimeout(() => {
502
- target.refresh(
503
- "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAIIAQMAAAB99EudAAAABlBMVEUmf8vG2O41LStnAAABD0lEQVR42u3XQQqCQBSAYcWFS4/QUTpaHa2jdISWLUJjjMpclJoPGvq+1WsYfiJCZ4oCAAAAAAAAAAAAAAAAAHin6pL9c6H/fOzHbRrP0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u/SY9LS0tLS0tLS0tLS0n+edm+UlpaWlpaWlpaWlpaW/tl0Ndyzbno7/+tPTJdd1wal69dNa6abx+Lq6TSeYtK7BX/Diek0XULSZZrakPRtV0i6Hu/KIt30q4fM0pvBqvR9mvsQkZaW9gyJT+f5lsnzjR54xAk8mAUeJyMPwYFH98ALx5Jr0kRLLndT7b64UX9QR/0eAAAAAAAAAAAAAAAAAAD/4gpryzr/bja4QgAAAABJRU5ErkJggg==",
504
- {
505
- real: true,
506
- }
507
- );
481
+ target.refresh("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAIIAQMAAAB99EudAAAABlBMVEUmf8vG2O41LStnAAABD0lEQVR42u3XQQqCQBSAYcWFS4/QUTpaHa2jdISWLUJjjMpclJoPGvq+1WsYfiJCZ4oCAAAAAAAAAAAAAAAAAHin6pL9c6H/fOzHbRrP0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0u/SY9LS0tLS0tLS0tLS0n+edm+UlpaWlpaWlpaWlpaW/tl0Ndyzbno7/+tPTJdd1wal69dNa6abx+Lq6TSeYtK7BX/Diek0XULSZZrakPRtV0i6Hu/KIt30q4fM0pvBqvR9mvsQkZaW9gyJT+f5lsnzjR54xAk8mAUeJyMPwYFH98ALx5Jr0kRLLndT7b64UX9QR/0eAAAAAAAAAAAAAAAAAAD/4gpryzr/bja4QgAAAABJRU5ErkJggg==", {
482
+ real: true,
483
+ });
508
484
  }, 3000);
509
485
  },
510
486
  fontList: [
@@ -640,13 +616,16 @@ onMounted(async () => {
640
616
  box-shadow: var(--el-box-shadow-lighter);
641
617
  position: relative;
642
618
  z-index: 1;
643
- > * {
644
- margin-right: 10px;
645
- margin-left: 0 !important;
646
- }
619
+ // > * {
620
+ // margin-right: 10px;
621
+ // margin-left: 0 !important;
622
+ // }
647
623
  .percentage {
648
624
  width: 165px;
649
625
  }
626
+ .el-select {
627
+ --el-select-width: auto;
628
+ }
650
629
  .el-form-item {
651
630
  margin-bottom: 0;
652
631
  margin-right: 10px;
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "name": "yh-hiprint",
3
- "version": "2.2.3",
4
- "description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
5
- "main": "index.js",
6
- "types": "index.d.ts",
7
- "scripts": {
8
- "pub:aliyun": "npm publish --registry https://packages.aliyun.com/60765e0161a945067837bb5f/npm/npm-registry/ --no-git-checks",
9
- "pub:npm": "npm publish --registry https://registry.npmjs.org/ --no-git-checks"
10
- },
11
- "dependencies": {
12
- "jquery": "3.7.0",
13
- "@claviska/jquery-minicolors": "2.3.6",
14
- "jsbarcode": "3.11.5",
15
- "jspdf": "2.5.1",
16
- "html2canvas": "1.4.1",
17
- "nzh": "1.0.9",
18
- "canvg": "4.0.1"
19
- },
20
- "peerDependencies": {
21
- "vue": "3.2.47"
22
- },
23
- "author": "Liubin"
1
+ {
2
+ "name": "yh-hiprint",
3
+ "version": "2.2.5",
4
+ "description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "scripts": {
8
+ "pub:aliyun": "npm publish --registry https://packages.aliyun.com/60765e0161a945067837bb5f/npm/npm-registry/ --no-git-checks",
9
+ "pub:npm": "npm publish --registry https://registry.npmjs.org/ --no-git-checks"
10
+ },
11
+ "dependencies": {
12
+ "jquery": "3.7.0",
13
+ "@claviska/jquery-minicolors": "2.3.6",
14
+ "jsbarcode": "3.11.5",
15
+ "jspdf": "2.5.1",
16
+ "html2canvas": "1.4.1",
17
+ "nzh": "1.0.9",
18
+ "canvg": "4.0.1"
19
+ },
20
+ "peerDependencies": {
21
+ "vue": "3.2.47"
22
+ },
23
+ "author": "Liubin"
24
24
  }