@gct-paas/core-web 0.1.6-dev.37 → 0.1.6-dev.38

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.
Files changed (117) hide show
  1. package/dist/{JsBarcode-Bo5SpPqf.js → JsBarcode-ClFIdbED.js} +2 -2
  2. package/dist/{chunk-CzFT3iS2.js → chunk-CeDsE8LQ.js} +1 -1
  3. package/dist/{cropper-3WG6IxPT.js → cropper-CWuUC8vw.js} +2 -2
  4. package/dist/{de_DE-EpMUkrKG.js → de_DE-D0xcBz9q.js} +2 -2
  5. package/dist/{defineProperty-DjJcBLb4.js → defineProperty-DDkimXe6.js} +1 -1
  6. package/dist/{diagram-config-item-Ba84t2ju.js → diagram-config-item-BNTeBE-4.js} +2 -2
  7. package/dist/{diagram-config-item-reverse-BhbjSzBe.js → diagram-config-item-reverse-Dddnmnfo.js} +2 -2
  8. package/dist/{diagram-config-item-virtual-fva5teOL.js → diagram-config-item-virtual-DYZHFYx_.js} +2 -2
  9. package/dist/{en_US-Bgy0yEFu.js → en_US-B4Nwc1yU.js} +2 -2
  10. package/dist/{es_ES-DRngTAb5.js → es_ES-CqefGnVv.js} +2 -2
  11. package/dist/{fr_FR-5q20H1AL.js → fr_FR-BCfhXFGZ.js} +2 -2
  12. package/dist/{hooks-ZH0Pak8N.js → hooks-DP5xcN9D.js} +2 -2
  13. package/dist/{icon-next-picker-Dt_2BtcK.js → icon-next-picker-DG4HFDGl.js} +1 -1
  14. package/dist/index.min.css +1 -1
  15. package/dist/{ja_JP-DvTjb7zM.js → ja_JP-CoFxiAvE.js} +2 -2
  16. package/dist/loader.esm.min.js +2 -2
  17. package/dist/{monaco-editor-Dq3suO5P.js → monaco-editor-Bml9w0vu.js} +2 -2
  18. package/dist/{objectSpread2-oPY7ovX3.js → objectSpread2-hnXyEBLf.js} +1 -1
  19. package/dist/{overlayscrollbars-vue-BWvh-ibY.js → overlayscrollbars-vue-DfdIAPTx.js} +1 -1
  20. package/dist/{pt_PT-Ct6NdUWY.js → pt_PT-CuaCyhKZ.js} +2 -2
  21. package/dist/{relationship-diagram-config-C8LCLDKK.js → relationship-diagram-config-CAoHKQXK.js} +2 -2
  22. package/dist/{rich-editor-CFRbyrMz.js → rich-editor-BuG5EbhO.js} +2 -2
  23. package/dist/{ru_RU-EwaOwdC1.js → ru_RU-5uz6U6zf.js} +2 -2
  24. package/dist/{tr_TR-52XfjsR-.js → tr_TR-4pDGiPBN.js} +2 -2
  25. package/dist/{useMonacoEditor-8TeCBE8q.js → useMonacoEditor-sB2Y6Jf0.js} +2 -2
  26. package/dist/{vi_VN-Cv3A0n4a.js → vi_VN-QIS8kpjj.js} +2 -2
  27. package/dist/{zh_CN-DRHhwKU9.js → zh_CN-D1TlxLnL.js} +2 -2
  28. package/dist/{zh_TW-7f3cKGBH.js → zh_TW-Dxzu1jIs.js} +2 -2
  29. package/es/components/label-design/components/mr-vue/MrEl.vue.mjs +2 -2
  30. package/es/components/label-design/components/mr-vue/MrEl.vue_vue_type_script_setup_true_name_mr-el_lang.mjs +15 -11
  31. package/es/components/label-design/components/mr-vue/{MrEl.vue_vue_type_style_index_0_scoped_abef86c9_lang.css → MrEl.vue_vue_type_style_index_0_scoped_371e4b06_lang.css} +61 -61
  32. package/es/components/label-design/components/widgets/QrCode.vue.mjs +2 -2
  33. package/es/components/label-design/components/widgets/QrCode.vue_vue_type_script_setup_true_name_QR_CODE_lang.mjs +86 -4
  34. package/es/components/label-design/components/widgets/QrCode.vue_vue_type_style_index_0_scoped_2fb36afd_lang.css +14 -0
  35. package/es/components/label-design/components/widgets/Text.vue.mjs +3 -3
  36. package/es/components/label-design/components/widgets/{Text.vue_vue_type_script_setup_true_lang.mjs → Text.vue_vue_type_script_setup_true_name_TEXT_lang.mjs} +44 -22
  37. package/es/components/label-design/components/widgets/Text.vue_vue_type_style_index_0_scoped_d9ace99f_lang.css +37 -0
  38. package/es/components/label-design/components/widgets/richText.vue.mjs +2 -2
  39. package/es/components/label-design/components/widgets/richText.vue_vue_type_script_setup_true_lang.mjs +4 -3
  40. package/es/components/label-design/components/widgets/{richText.vue_vue_type_style_index_0_scoped_d05f3ffd_lang.css → richText.vue_vue_type_style_index_0_scoped_fc7a37f7_lang.css} +3 -3
  41. package/es/components/label-design/constants/CommonPrintElems.d.ts +41 -4
  42. package/es/components/label-design/constants/CommonPrintElems.mjs +31 -15
  43. package/es/components/label-design/header/test-var-modal.vue.d.ts +3 -0
  44. package/es/components/label-design/hooks/useDesigner.d.ts +1 -0
  45. package/es/components/label-design/hooks/useDesigner.mjs +19 -1
  46. package/es/components/label-design/hooks/usePage.mjs +16 -2
  47. package/es/components/label-design/hooks/useProp.d.ts +62 -7
  48. package/es/components/label-design/hooks/useProp.mjs +153 -96
  49. package/es/components/label-design/panels/modals/diff-modal.vue.mjs +2 -2
  50. package/es/components/label-design/panels/modals/diff-modal.vue_vue_type_script_setup_true_lang.mjs +4 -2
  51. package/es/components/label-design/panels/modals/{diff-modal.vue_vue_type_style_index_0_scoped_16a76e9a_lang.css → diff-modal.vue_vue_type_style_index_0_scoped_54211e3c_lang.css} +2 -2
  52. package/es/components/label-design/panels/widget/component-properties.vue.mjs +2 -2
  53. package/es/components/label-design/panels/widget/component-properties.vue_vue_type_script_setup_true_name_component-properties_lang.mjs +5 -4
  54. package/es/components/label-design/panels/widget/{component-properties.vue_vue_type_style_index_0_scoped_dff66bbe_lang.css → component-properties.vue_vue_type_style_index_0_scoped_d6c5e9e9_lang.css} +10 -10
  55. package/es/components/label-design/panels/widget/controls/AliasInput.vue.mjs +9 -4
  56. package/es/components/label-design/panels/widget/controls/Border.vue.mjs +26 -23
  57. package/es/components/label-design/panels/widget/controls/Border.vue_vue_type_script_lang.mjs +4 -0
  58. package/es/components/label-design/panels/widget/controls/{Border.vue_vue_type_style_index_0_scoped_70116f39_lang.css → Border.vue_vue_type_style_index_0_scoped_5bb46dc4_lang.css} +5 -5
  59. package/es/components/label-design/panels/widget/controls/FontStyle.vue.mjs +12 -8
  60. package/es/components/label-design/panels/widget/controls/FontStyle.vue_vue_type_script_lang.mjs +12 -6
  61. package/es/components/label-design/panels/widget/controls/InputContent.vue.mjs +9 -4
  62. package/es/components/label-design/panels/widget/controls/InputContent.vue_vue_type_script_lang.mjs +4 -0
  63. package/es/components/label-design/panels/widget/controls/LineHeight.vue.mjs +183 -0
  64. package/es/components/label-design/panels/widget/controls/PdfQrConfig.vue.mjs +10 -0
  65. package/es/components/label-design/panels/widget/controls/PdfQrConfig.vue_vue_type_script_setup_true_name_pdf-qr-config_lang.mjs +166 -0
  66. package/es/components/label-design/panels/widget/controls/PdfQrConfig.vue_vue_type_style_index_0_scoped_cd6ec1c2_lang.css +19 -0
  67. package/es/components/label-design/panels/widget/controls/PdfQrConfig.vue_vue_type_style_index_1_lang.css +0 -0
  68. package/es/components/label-design/panels/widget/controls/SelectContent.vue.mjs +20 -5
  69. package/es/components/label-design/panels/widget/controls/StackOrder.vue.mjs +15 -10
  70. package/es/components/label-design/panels/widget/controls/TextAlign.vue.mjs +12 -8
  71. package/es/components/label-design/panels/widget/controls/TextAlign.vue_vue_type_script_lang.mjs +9 -3
  72. package/es/components/label-design/panels/widget/controls/TextVerticalAlign.vue.mjs +9 -6
  73. package/es/components/label-design/panels/widget/controls/TextVerticalAlign.vue_vue_type_script_lang.mjs +9 -3
  74. package/es/components/label-design/panels/widget/controls/VariableSelect.vue.mjs +2 -2
  75. package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_script_setup_true_name_variable-select_lang.mjs +10 -6
  76. package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_style_index_0_scoped_14634dd0_lang.css +15 -0
  77. package/es/components/label-design/panels/widget/controls/dim-pos.vue.mjs +2 -2
  78. package/es/components/label-design/panels/widget/controls/dim-pos.vue_vue_type_script_setup_true_name_dim-pos_lang.mjs +52 -44
  79. package/es/components/label-design/panels/widget/controls/{dim-pos.vue_vue_type_style_index_0_scoped_a247e0e1_lang.css → dim-pos.vue_vue_type_style_index_0_scoped_16616a25_lang.css} +2 -2
  80. package/es/components/label-design/panels/widget/controls/field-content.vue.mjs +2 -2
  81. package/es/components/label-design/panels/widget/controls/field-content.vue_vue_type_script_setup_true_name_field-content_lang.mjs +3 -2
  82. package/es/components/label-design/panels/widget/controls/field-content.vue_vue_type_style_index_0_scoped_20837fed_lang.css +6 -0
  83. package/es/components/label-design/panels/widget/controls/index.mjs +4 -0
  84. package/es/components/label-design/panels/widget/controls/rich-btn.vue.mjs +1 -1
  85. package/es/components/label-design/panels/widget/controls/rich-btn.vue_vue_type_script_lang.mjs +11 -5
  86. package/es/components/label-design/panels/widget/page-properties.vue.mjs +2 -2
  87. package/es/components/label-design/panels/widget/page-properties.vue_vue_type_script_setup_true_name_page-properties_lang.mjs +3 -2
  88. package/es/components/label-design/panels/widget/{page-properties.vue_vue_type_style_index_0_scoped_ad548f64_lang.css → page-properties.vue_vue_type_style_index_0_scoped_e0675ce4_lang.css} +2 -2
  89. package/es/components/label-design/panels/widget/panel-widget.vue_vue_type_script_setup_true_name_panel-widget_lang.mjs +4 -3
  90. package/es/components/label-design/stage/StageEl.vue.d.ts +6 -1
  91. package/es/components/label-design/stage/StageEl.vue_vue_type_script_lang.mjs +23 -1
  92. package/es/components/label-design/stage/stage-canvas.vue.d.ts +2 -0
  93. package/es/components/label-design/stage/stage-canvas.vue_vue_type_script_setup_true_lang.mjs +27 -3
  94. package/es/components/label-design/toolkits/toolkit-widgets.vue.mjs +2 -2
  95. package/es/components/label-design/toolkits/toolkit-widgets.vue_vue_type_script_setup_true_name_toolkit-widgets_lang.mjs +4 -3
  96. package/es/components/label-design/toolkits/{toolkit-widgets.vue_vue_type_style_index_0_scoped_a787d212_lang.css → toolkit-widgets.vue_vue_type_style_index_0_scoped_c0634baf_lang.css} +9 -9
  97. package/es/components/open-select-user-modal/component/org.vue.mjs +1 -1
  98. package/es/components/open-select-user-modal/component/role.vue.mjs +1 -1
  99. package/es/components/open-select-user-modal/component/user-group.vue.mjs +1 -1
  100. package/es/components/open-select-user-modal/component/user.vue.mjs +1 -1
  101. package/es/index.mjs +2 -2
  102. package/es/locale/sys/appDesigner.d.ts +3 -0
  103. package/es/locale/sys/appDesigner.mjs +4 -1
  104. package/es/locale/sys/model.d.ts +2 -0
  105. package/es/locale/sys/model.mjs +3 -1
  106. package/es/locale/sys/pageDesigner.d.ts +25 -0
  107. package/es/locale/sys/pageDesigner.mjs +26 -1
  108. package/es/locale/sys/printDesigner.d.ts +111 -0
  109. package/es/locale/sys/printDesigner.mjs +112 -1
  110. package/es/locale/sys.d.ts +6 -0
  111. package/es/locale/sys.mjs +7 -1
  112. package/package.json +11 -11
  113. package/es/components/label-design/components/widgets/QrCode.vue_vue_type_style_index_0_scoped_61b471f2_lang.css +0 -10
  114. package/es/components/label-design/components/widgets/Text.vue_vue_type_style_index_0_scoped_170abee2_lang.css +0 -33
  115. package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_style_index_0_scoped_2c6f0905_lang.css +0 -12
  116. package/es/components/label-design/panels/widget/controls/field-content.vue_vue_type_style_index_0_scoped_68aaf84d_lang.css +0 -6
  117. /package/es/components/open-select-user-modal/component/{user-group.vue_vue_type_style_index_0_lang.css → org.vue_vue_type_style_index_0_lang.css} +0 -0
@@ -1,9 +1,10 @@
1
- import { CONTENT_TYPE, DATA_TYPE, PRINT_ELE_TYPE, QR_CODE_TYPE } from "../constants/CommonPrintElems.mjs";
1
+ import { CONTENT_TYPE, DATA_TYPE, PRINT_ELE_TYPE, QR_CODE_TEXT, QR_CODE_TYPE } from "../constants/CommonPrintElems.mjs";
2
2
  import { usePage } from "./usePage.mjs";
3
3
  import { useDesigner } from "./useDesigner.mjs";
4
4
  import rich_editor_modal_default from "../modal/rich-editor-modal.vue.mjs";
5
5
  import { computed } from "vue";
6
6
  import { cloneDeep } from "lodash-es";
7
+ import { t } from "@gct-paas/core";
7
8
  import { message } from "ant-design-vue";
8
9
  //#region src/components/label-design/hooks/useProp.ts
9
10
  var barcodeTypeEnum = [
@@ -21,10 +22,10 @@ var barcodeTypeEnum = [
21
22
  }
22
23
  ];
23
24
  var showTextEnum = [{
24
- label: "显示",
25
+ label: t("sys.appDesigner.show"),
25
26
  value: true
26
27
  }, {
27
- label: "隐藏",
28
+ label: t("sys.appDesigner.hidden"),
28
29
  value: false
29
30
  }];
30
31
  var { selectedElements } = useDesigner();
@@ -34,17 +35,17 @@ var dhrFlag = computed(() => {
34
35
  });
35
36
  function getTextContentTypes(isEdhr = dhrFlag.value) {
36
37
  if (isEdhr) return [{
37
- label: "标签参数",
38
+ label: t("sys.printDesigner.labelParams"),
38
39
  value: CONTENT_TYPE.LABEL_PARAMS
39
40
  }, {
40
- label: "表达式",
41
+ label: t("sys.model.expression"),
41
42
  value: CONTENT_TYPE.EXPRESSION
42
43
  }];
43
44
  return [{
44
- label: "模型字段",
45
+ label: t("sys.model.modelFields"),
45
46
  value: CONTENT_TYPE.MODEL
46
47
  }, {
47
- label: "表达式",
48
+ label: t("sys.model.expression"),
48
49
  value: CONTENT_TYPE.EXPRESSION
49
50
  }];
50
51
  }
@@ -56,7 +57,7 @@ function useProp(context) {
56
57
  });
57
58
  const basicProperties = computed(() => {
58
59
  return { basic: [{
59
- text: "基础属性",
60
+ text: "sys.pageDesigner.basicProp",
60
61
  show: !selectedItem.value.internal,
61
62
  children: [{
62
63
  type: "dim-pos",
@@ -211,7 +212,7 @@ function useProp(context) {
211
212
  else return selectedItem.value.type === PRINT_ELE_TYPE.BAR_CODE || selectedItem.value.type === PRINT_ELE_TYPE.QR_CODE;
212
213
  });
213
214
  const hasRotate = computed(() => {
214
- return !!selectedItem.value.hasRotate;
215
+ return !!selectedItem.value.hasRotate || type.value === PRINT_ELE_TYPE.QR_CODE && [QR_CODE_TYPE.GS1_DATA_MATRIX, QR_CODE_TYPE.PDF_417].includes(att.value["type"]?.value);
215
216
  });
216
217
  const rotateWidth = computed(() => {
217
218
  return selectedItem.value.rotateWidth;
@@ -222,7 +223,7 @@ function useProp(context) {
222
223
  const componentProperties = computed(() => {
223
224
  return {
224
225
  [PRINT_ELE_TYPE.RECTANGLE]: type.value === PRINT_ELE_TYPE.RECTANGLE ? [{
225
- text: "外观",
226
+ text: "sys.printDesigner.appearance",
226
227
  children: [{
227
228
  type: "border",
228
229
  props: {
@@ -237,12 +238,12 @@ function useProp(context) {
237
238
  }]
238
239
  }] : [],
239
240
  [PRINT_ELE_TYPE.HORIZONTAL_LINE]: type.value === PRINT_ELE_TYPE.HORIZONTAL_LINE ? [{
240
- text: "横线设置",
241
+ text: t("sys.printDesigner.horizontalLineSetting"),
241
242
  children: [{
242
243
  type: "input-content",
243
244
  props: {
244
245
  type: "number",
245
- label: "横线高度",
246
+ label: t("sys.printDesigner.horizontalLine") + t("sys.height"),
246
247
  min: 1,
247
248
  value: sty.value["border-width"] ? parseInt(sty.value["border-width"]) : 2,
248
249
  defaultValue: 2
@@ -253,12 +254,12 @@ function useProp(context) {
253
254
  }]
254
255
  }] : [],
255
256
  [PRINT_ELE_TYPE.VERTICAL_LINE]: type.value === PRINT_ELE_TYPE.VERTICAL_LINE ? [{
256
- text: "竖线设置",
257
+ text: t("sys.printDesigner.verticalLineSetting"),
257
258
  children: [{
258
259
  type: "input-content",
259
260
  props: {
260
261
  type: "number",
261
- label: "竖线宽度",
262
+ label: t("sys.printDesigner.verticalLine") + t("sys.width"),
262
263
  min: 1,
263
264
  value: sty.value["border-width"] ? parseInt(sty.value["border-width"]) : 2,
264
265
  defaultValue: 2
@@ -270,7 +271,7 @@ function useProp(context) {
270
271
  }] : [],
271
272
  [PRINT_ELE_TYPE.TEXT]: type.value === PRINT_ELE_TYPE.TEXT ? [
272
273
  {
273
- text: "样式",
274
+ text: t("sys.pageDesigner.style"),
274
275
  isStyle: true,
275
276
  children: [
276
277
  {
@@ -313,16 +314,27 @@ function useProp(context) {
313
314
  changeEvent({ prop, value }) {
314
315
  onStyleChanges(prop, value);
315
316
  }
317
+ },
318
+ {
319
+ type: "line-height",
320
+ props: {
321
+ spaceType: sty.value["space-type"] || "LINE",
322
+ space: sty.value["space"] ?? 1.5
323
+ },
324
+ changeEvent({ spaceType, space }) {
325
+ onStyleChanges("space-type", spaceType);
326
+ onStyleChanges("space", space);
327
+ }
316
328
  }
317
329
  ]
318
330
  },
319
331
  {
320
- text: "背景",
332
+ text: t("sys.pageDesigner.background"),
321
333
  isStyle: true,
322
334
  children: [{
323
335
  type: "color-picker",
324
336
  props: {
325
- label: "背景颜色",
337
+ label: t("sys.pageDesigner.backgroundColor"),
326
338
  type: "solid",
327
339
  alpha: false,
328
340
  value: sty.value["bg-color"]
@@ -333,7 +345,7 @@ function useProp(context) {
333
345
  }]
334
346
  },
335
347
  {
336
- text: "边框",
348
+ text: t("sys.pageDesigner.border"),
337
349
  isStyle: true,
338
350
  children: [{
339
351
  type: "border-radius",
@@ -376,17 +388,17 @@ function useProp(context) {
376
388
  }]
377
389
  },
378
390
  {
379
- text: "文本配置",
391
+ text: t("sys.pageDesigner.textProp"),
380
392
  children: [{
381
393
  type: "radio-select",
382
394
  props: {
383
- label: "数据类型",
395
+ label: t("sys.pageDesigner.dataType"),
384
396
  value: att.value["text"].type,
385
397
  options: [{
386
- label: "固定",
398
+ label: t("sys.pageDesigner.fixed"),
387
399
  value: DATA_TYPE.FIXED
388
400
  }, {
389
- label: "变量",
401
+ label: t("sys.pageDesigner.variable"),
390
402
  value: DATA_TYPE.VAR
391
403
  }]
392
404
  },
@@ -399,7 +411,7 @@ function useProp(context) {
399
411
  }, att.value["text"].type === DATA_TYPE.FIXED ? {
400
412
  type: "input-content",
401
413
  props: {
402
- label: "文本内容",
414
+ label: t("sys.printDesigner.textContent"),
403
415
  value: att.value["text"].value,
404
416
  type: "textArea"
405
417
  },
@@ -409,7 +421,7 @@ function useProp(context) {
409
421
  } : {
410
422
  type: "variable-select",
411
423
  props: {
412
- label: "文本内容",
424
+ label: t("sys.printDesigner.textContent"),
413
425
  value: att.value["text"].value,
414
426
  exp: att.value["text"].exp,
415
427
  type: att.value["text"].sourceType || getTextContentTypes()[0].value,
@@ -429,12 +441,12 @@ function useProp(context) {
429
441
  }
430
442
  ] : [],
431
443
  [PRINT_ELE_TYPE.BAR_CODE]: type.value === PRINT_ELE_TYPE.BAR_CODE ? [{
432
- text: "条码设置",
444
+ text: t("sys.printDesigner.barcode.setting"),
433
445
  children: [
434
446
  {
435
447
  type: "select-content",
436
448
  props: {
437
- label: "类型",
449
+ label: t("sys.type"),
438
450
  value: att.value["type"].value,
439
451
  options: barcodeTypeEnum
440
452
  },
@@ -454,7 +466,7 @@ function useProp(context) {
454
466
  type: "input-content",
455
467
  props: {
456
468
  type: "number",
457
- label: "",
469
+ label: t("sys.printDesigner.dot"),
458
470
  min: 1,
459
471
  max: 5,
460
472
  value: att.value["dot"] ? parseInt(att.value["dot"].value) : 1
@@ -467,7 +479,7 @@ function useProp(context) {
467
479
  {
468
480
  type: "select-content",
469
481
  props: {
470
- label: "是否显示下方文本",
482
+ label: t("sys.printDesigner.showUnderText"),
471
483
  value: att.value["showText"] ? att.value["showText"].value : true,
472
484
  options: showTextEnum
473
485
  },
@@ -477,18 +489,18 @@ function useProp(context) {
477
489
  }
478
490
  ]
479
491
  }, {
480
- text: "条码内容",
492
+ text: t("sys.printDesigner.barcode.content"),
481
493
  children: [
482
494
  {
483
495
  type: "radio-select",
484
496
  props: {
485
- label: "数据类型",
497
+ label: t("sys.pageDesigner.dataType"),
486
498
  value: att.value["content"].type,
487
499
  options: [{
488
- label: "固定",
500
+ label: t("sys.pageDesigner.fixed"),
489
501
  value: DATA_TYPE.FIXED
490
502
  }, {
491
- label: "变量",
503
+ label: t("sys.pageDesigner.variable"),
492
504
  value: DATA_TYPE.VAR
493
505
  }]
494
506
  },
@@ -511,7 +523,7 @@ function useProp(context) {
511
523
  att.value["content"].type === DATA_TYPE.FIXED ? {
512
524
  type: "input-content",
513
525
  props: {
514
- label: "内容",
526
+ label: t("sys.content"),
515
527
  value: att.value["content"].value,
516
528
  filter: (val) => {
517
529
  let newVal = val;
@@ -524,19 +536,19 @@ function useProp(context) {
524
536
  },
525
537
  validate: (val) => {
526
538
  if (!val) {
527
- message.error("条码内容不能为空");
539
+ message.error(t("sys.printDesigner.barcode.errorMsg1"));
528
540
  return false;
529
541
  } else if (att.value["type"].value === "EAN_13" && (val.search(/^[0-9]{13}$/) === -1 || +val[12] !== checksum(val))) {
530
- message.error("条码内容不符合EAN13规则");
542
+ message.error(t("sys.printDesigner.barcode.EAN_13"));
531
543
  return false;
532
544
  } else if (att.value["type"].value === "CODE_39" && val.search(/^[0-9A-Z\-.\s$/+%]+$/) === -1) {
533
- message.error("条码内容不符合CODE39规则");
545
+ message.error(t("sys.printDesigner.barcode.CODE_39"));
534
546
  return false;
535
547
  } else if (att.value["type"].value === "CODE-128" && !/^[\u0000-\u007F\u00C8-\u00D3]+$/.test(val)) {
536
- message.error("条码内容不符合CODE128规则");
548
+ message.error(t("sys.printDesigner.barcode.CODE_128"));
537
549
  return false;
538
550
  } else if (att.value["type"].value === "GS1_128" && !/^[0-9A-Za-z()]+$/.test(val)) {
539
- message.error("条码内容不符合GS1-128规则");
551
+ message.error(t("sys.printDesigner.barcode.GS1_128"));
540
552
  return false;
541
553
  } else return true;
542
554
  }
@@ -554,7 +566,7 @@ function useProp(context) {
554
566
  } : {
555
567
  type: "select-content",
556
568
  props: {
557
- label: "内容",
569
+ label: t("sys.content"),
558
570
  value: getTextContentTypes()[0].value,
559
571
  options: getTextContentTypes()
560
572
  },
@@ -592,12 +604,49 @@ function useProp(context) {
592
604
  ]
593
605
  }] : [],
594
606
  [PRINT_ELE_TYPE.QR_CODE]: type.value === PRINT_ELE_TYPE.QR_CODE ? [{
595
- text: "二维码设置",
607
+ text: t("sys.printDesigner.qrCode.setting"),
596
608
  children: [{
609
+ type: "select-content",
610
+ props: {
611
+ label: t("sys.type"),
612
+ value: att.value["type"]?.value ?? "QR_CODE",
613
+ options: [
614
+ {
615
+ label: "QR Code",
616
+ value: QR_CODE_TYPE.QR_CODE
617
+ },
618
+ {
619
+ label: "GS1 Data Matrix",
620
+ value: QR_CODE_TYPE.GS1_DATA_MATRIX
621
+ },
622
+ {
623
+ label: "PDF417",
624
+ value: QR_CODE_TYPE.PDF_417
625
+ }
626
+ ]
627
+ },
628
+ changeEvent(newValue) {
629
+ onAttrsChanges("content", att.value["content"].type == DATA_TYPE.FIXED ? QR_CODE_TEXT[newValue] : "");
630
+ onAttrsChanges("type", newValue);
631
+ emitChanges("rotate", 0);
632
+ if (newValue == "PDF_417") emitChanges("hasRotate", true);
633
+ else {
634
+ emitChanges("width", 102);
635
+ emitChanges("height", 102);
636
+ onAttrsChanges("rows", null);
637
+ onAttrsChanges("columns", null);
638
+ onAttrsChanges("rowHeight", 3);
639
+ emitChanges("hasError", false);
640
+ emitChanges("errMsg", "");
641
+ if (newValue == QR_CODE_TYPE.QR_CODE) emitChanges("hasRotate", false);
642
+ else emitChanges("hasRotate", true);
643
+ }
644
+ }
645
+ }, att.value["type"]?.value !== QR_CODE_TYPE.PDF_417 ? {
597
646
  type: "input-content",
598
647
  props: {
599
648
  type: "number",
600
- label: "放大率",
649
+ label: t("sys.printDesigner.magnification"),
601
650
  min: 1,
602
651
  max: 10,
603
652
  value: att.value["magnification"] ? parseInt(att.value["magnification"].value) : 4
@@ -620,44 +669,52 @@ function useProp(context) {
620
669
  emitChanges("height", sizeMap[newValue]);
621
670
  emitChanges("width", sizeMap[newValue]);
622
671
  }
623
- }, {
624
- type: "select-content",
672
+ } : {
673
+ type: "pdf-qr-config",
625
674
  props: {
626
- label: "类型",
627
- value: att.value["type"]?.value ?? "QR_CODE",
628
- options: [{
629
- label: "QR Code",
630
- value: QR_CODE_TYPE.QR_CODE
631
- }, {
632
- label: "GS1 Data Matrix",
633
- value: QR_CODE_TYPE.GS1_DATA_MATRIX
634
- }]
675
+ rows: att.value["rows"]?.value,
676
+ columns: att.value["columns"]?.value,
677
+ rowHeight: att.value["rowHeight"]?.value
635
678
  },
636
- changeEvent(newValue) {
637
- let text = att.value["content"].type == DATA_TYPE.FIXED ? "QR code Text" : "";
638
- if (newValue == "GS1_DATA_MATRIX") text = att.value["content"].type == DATA_TYPE.FIXED ? "GS1 Data Matrix Text" : "";
639
- onAttrsChanges("content", text);
640
- onAttrsChanges("type", newValue);
679
+ changeEvent(val) {
680
+ const attrs = { ...att.value };
681
+ attrs.rows = {
682
+ ...attrs.rows,
683
+ value: val.rows
684
+ };
685
+ attrs.columns = {
686
+ ...attrs.columns,
687
+ value: val.columns
688
+ };
689
+ attrs.rowHeight = {
690
+ ...attrs.rowHeight,
691
+ value: val.rowHeight
692
+ };
693
+ emitChanges("attrs", attrs);
694
+ },
695
+ change2Event(val) {
696
+ emitChanges("hasError", val.isError);
697
+ emitChanges("errMsg", val.errMsg);
641
698
  }
642
699
  }]
643
700
  }, {
644
- text: "二维码内容",
701
+ text: t("sys.printDesigner.qrCode.content"),
645
702
  children: [
646
703
  {
647
704
  type: "radio-select",
648
705
  props: {
649
- label: "数据类型",
706
+ label: t("sys.pageDesigner.dataType"),
650
707
  value: att.value["content"].type,
651
708
  options: [{
652
- label: "固定",
709
+ label: t("sys.pageDesigner.fixed"),
653
710
  value: DATA_TYPE.FIXED
654
711
  }, {
655
- label: "变量",
712
+ label: t("sys.pageDesigner.variable"),
656
713
  value: DATA_TYPE.VAR
657
714
  }]
658
715
  },
659
716
  changeEvent(newValue) {
660
- if (newValue === DATA_TYPE.FIXED && att.value["content"].type === DATA_TYPE.VAR) att.value["content"].value = att.value["type"]?.value == QR_CODE_TYPE.QR_CODE ? "QR code Text" : "GS1 Data Matrix Text";
717
+ if (newValue === DATA_TYPE.FIXED && att.value["content"].type === DATA_TYPE.VAR) att.value["content"].value = QR_CODE_TEXT[att.value["type"]?.value];
661
718
  else att.value["content"].value = void 0;
662
719
  att.value["content"].label = "";
663
720
  att.value["content"].sourceType = getTextContentTypes()[0].value;
@@ -667,7 +724,7 @@ function useProp(context) {
667
724
  att.value["content"].type === DATA_TYPE.FIXED ? {
668
725
  type: "input-content",
669
726
  props: {
670
- label: "内容",
727
+ label: t("sys.content"),
671
728
  value: att.value["content"].value,
672
729
  filter: (val) => {
673
730
  let newVal = val;
@@ -681,7 +738,7 @@ function useProp(context) {
681
738
  } : {
682
739
  type: "select-content",
683
740
  props: {
684
- label: "内容",
741
+ label: t("sys.content"),
685
742
  value: att.value["content"].sourceType || getTextContentTypes()[0].value,
686
743
  options: getTextContentTypes()
687
744
  },
@@ -719,11 +776,11 @@ function useProp(context) {
719
776
  ]
720
777
  }] : [],
721
778
  [PRINT_ELE_TYPE.IMAGE]: type.value === PRINT_ELE_TYPE.IMAGE ? [{
722
- text: "图片地址",
779
+ text: t("sys.printDesigner.imageSrc"),
723
780
  children: [{
724
781
  type: "image-data",
725
782
  props: {
726
- label: "地址",
783
+ label: t("sys.pageDesigner.address"),
727
784
  src: att.value["src"].value
728
785
  },
729
786
  changeEvent(val) {
@@ -732,7 +789,7 @@ function useProp(context) {
732
789
  }]
733
790
  }] : [],
734
791
  [PRINT_ELE_TYPE.ICON]: type.value === PRINT_ELE_TYPE.ICON ? [{
735
- text: "图标样式",
792
+ text: t("sys.printDesigner.iconStyle"),
736
793
  children: [{
737
794
  type: "icon-style",
738
795
  props: {
@@ -749,16 +806,16 @@ function useProp(context) {
749
806
  }] : [],
750
807
  [PRINT_ELE_TYPE.RICH_TEXT]: type.value === PRINT_ELE_TYPE.RICH_TEXT ? [
751
808
  {
752
- text: "富文本配置",
809
+ text: t("sys.printDesigner.richTextConfig"),
753
810
  children: [{
754
811
  type: "rich-btn",
755
812
  props: {
756
- label: "富文本内容",
813
+ label: t("sys.printDesigner.richTextContent"),
757
814
  value: att.value["text"].value
758
815
  },
759
816
  async changeEvent(_val) {
760
817
  const res = await _gct.openUtil.modal(rich_editor_modal_default, { value: att.value["text"].value }, {
761
- title: "富文本内容",
818
+ title: t("sys.printDesigner.richTextContent"),
762
819
  width: 850,
763
820
  height: "auto"
764
821
  });
@@ -769,12 +826,12 @@ function useProp(context) {
769
826
  }]
770
827
  },
771
828
  {
772
- text: "背景",
829
+ text: t("sys.pageDesigner.background"),
773
830
  isStyle: true,
774
831
  children: [{
775
832
  type: "color-picker",
776
833
  props: {
777
- label: "背景颜色",
834
+ label: t("sys.pageDesigner.backgroundColor"),
778
835
  type: "solid",
779
836
  alpha: false,
780
837
  value: sty.value["bg-color"]
@@ -785,7 +842,7 @@ function useProp(context) {
785
842
  }]
786
843
  },
787
844
  {
788
- text: "边框",
845
+ text: t("sys.pageDesigner.border"),
789
846
  isStyle: true,
790
847
  children: [{
791
848
  type: "border-radius",
@@ -837,18 +894,18 @@ function useProp(context) {
837
894
  const pjdValue = pjd.attrs["content"] || pjd.attrs["text"];
838
895
  return {
839
896
  [PRINT_ELE_TYPE.BAR_CODE]: {
840
- text: "条码内容",
897
+ text: t("sys.printDesigner.barcode.content"),
841
898
  children: [
842
899
  {
843
900
  type: "radio-select",
844
901
  props: {
845
- label: "数据类型",
902
+ label: t("sys.pageDesigner.dataType"),
846
903
  value: pjdValue.type,
847
904
  options: [{
848
- label: "固定",
905
+ label: t("sys.pageDesigner.fixed"),
849
906
  value: DATA_TYPE.FIXED
850
907
  }, {
851
- label: "变量",
908
+ label: t("sys.pageDesigner.variable"),
852
909
  value: DATA_TYPE.VAR
853
910
  }]
854
911
  },
@@ -861,7 +918,7 @@ function useProp(context) {
861
918
  pjdValue.type === DATA_TYPE.FIXED ? {
862
919
  type: "input-content",
863
920
  props: {
864
- label: "内容",
921
+ label: t("sys.content"),
865
922
  value: pjdValue.value,
866
923
  filter: (val) => {
867
924
  let newVal = val;
@@ -874,19 +931,19 @@ function useProp(context) {
874
931
  },
875
932
  validate: (val) => {
876
933
  if (!val) {
877
- message.error("条码内容不能为空");
934
+ message.error(t("sys.printDesigner.barcode.errorMsg1"));
878
935
  return false;
879
936
  } else if (pjd.attrs["type"] === "EAN_13" && (val.search(/^[0-9]{13}$/) === -1 || +val[12] !== checksum(val))) {
880
- message.error("条码内容不符合EAN13规则");
937
+ message.error(t("sys.printDesigner.barcode.EAN_13"));
881
938
  return false;
882
939
  } else if (pjd.attrs["type"] === "CODE_39" && val.search(/^[0-9A-Z\-.\s$/+%]+$/) === -1) {
883
- message.error("条码内容不符合CODE39规则");
940
+ message.error(t("sys.printDesigner.barcode.CODE_39"));
884
941
  return false;
885
942
  } else if (pjd.attrs["type"] === "CODE-128" && !/^[\u0000-\u007F\u00C8-\u00D3]+$/.test(val)) {
886
- message.error("条码内容不符合CODE128规则");
943
+ message.error(t("sys.printDesigner.barcode.CODE_128"));
887
944
  return false;
888
945
  } else if (pjd.attrs["type"] === "GS1_128" && !/^[0-9A-Za-z()]+$/.test(val)) {
889
- message.error("条码内容不符合GS1-128规则");
946
+ message.error(t("sys.printDesigner.barcode.GS1_128"));
890
947
  return false;
891
948
  } else return true;
892
949
  }
@@ -904,7 +961,7 @@ function useProp(context) {
904
961
  } : {
905
962
  type: "select-content",
906
963
  props: {
907
- label: "内容",
964
+ label: t("sys.content"),
908
965
  value: pjdValue.sourceType || getTextContentTypes(isDHR)[0].value,
909
966
  options: getTextContentTypes(isDHR)
910
967
  },
@@ -942,18 +999,18 @@ function useProp(context) {
942
999
  ]
943
1000
  },
944
1001
  [PRINT_ELE_TYPE.QR_CODE]: {
945
- text: "二维码内容",
1002
+ text: t("sys.printDesigner.qrCode.content"),
946
1003
  children: [
947
1004
  {
948
1005
  type: "radio-select",
949
1006
  props: {
950
- label: "数据类型",
1007
+ label: t("sys.pageDesigner.dataType"),
951
1008
  value: pjdValue.type,
952
1009
  options: [{
953
- label: "固定",
1010
+ label: t("sys.pageDesigner.fixed"),
954
1011
  value: DATA_TYPE.FIXED
955
1012
  }, {
956
- label: "变量",
1013
+ label: t("sys.pageDesigner.variable"),
957
1014
  value: DATA_TYPE.VAR
958
1015
  }]
959
1016
  },
@@ -966,7 +1023,7 @@ function useProp(context) {
966
1023
  pjdValue.type === DATA_TYPE.FIXED ? {
967
1024
  type: "input-content",
968
1025
  props: {
969
- label: "内容",
1026
+ label: t("sys.content"),
970
1027
  value: pjdValue.value,
971
1028
  filter: (val) => {
972
1029
  let newVal = val;
@@ -980,7 +1037,7 @@ function useProp(context) {
980
1037
  } : {
981
1038
  type: "select-content",
982
1039
  props: {
983
- label: "内容",
1040
+ label: t("sys.content"),
984
1041
  value: pjdValue.sourceType || getTextContentTypes(isDHR)[0].value,
985
1042
  options: getTextContentTypes(isDHR)
986
1043
  },
@@ -1018,18 +1075,18 @@ function useProp(context) {
1018
1075
  ]
1019
1076
  },
1020
1077
  [PRINT_ELE_TYPE.TEXT]: {
1021
- text: "文本内容",
1078
+ text: t("sys.printDesigner.textContent"),
1022
1079
  children: [
1023
1080
  {
1024
1081
  type: "radio-select",
1025
1082
  props: {
1026
- label: "数据类型",
1083
+ label: t("sys.pageDesigner.dataType"),
1027
1084
  value: pjdValue?.type,
1028
1085
  options: [{
1029
- label: "固定",
1086
+ label: t("sys.pageDesigner.fixed"),
1030
1087
  value: DATA_TYPE.FIXED
1031
1088
  }, {
1032
- label: "变量",
1089
+ label: t("sys.pageDesigner.variable"),
1033
1090
  value: DATA_TYPE.VAR
1034
1091
  }]
1035
1092
  },
@@ -1042,7 +1099,7 @@ function useProp(context) {
1042
1099
  pjdValue.type === DATA_TYPE.FIXED ? {
1043
1100
  type: "input-content",
1044
1101
  props: {
1045
- label: "内容",
1102
+ label: t("sys.content"),
1046
1103
  value: pjdValue.value
1047
1104
  },
1048
1105
  changeEvent(val) {
@@ -1051,7 +1108,7 @@ function useProp(context) {
1051
1108
  } : {
1052
1109
  type: "select-content",
1053
1110
  props: {
1054
- label: "内容",
1111
+ label: t("sys.content"),
1055
1112
  value: pjdValue.sourceType || getTextContentTypes(isDHR)[0].value,
1056
1113
  options: getTextContentTypes(isDHR)
1057
1114
  },
@@ -1,7 +1,7 @@
1
1
  import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import diff_modal_vue_vue_type_script_setup_true_lang_default from "./diff-modal.vue_vue_type_script_setup_true_lang.mjs";
3
- import './diff-modal.vue_vue_type_style_index_0_scoped_16a76e9a_lang.css';/* empty css */
3
+ import './diff-modal.vue_vue_type_style_index_0_scoped_54211e3c_lang.css';/* empty css */
4
4
  //#region src/components/label-design/panels/modals/diff-modal.vue
5
- var diff_modal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(diff_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-16a76e9a"]]);
5
+ var diff_modal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(diff_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-54211e3c"]]);
6
6
  //#endregion
7
7
  export { diff_modal_default as default };
@@ -2,9 +2,11 @@ import { usePage } from "../../hooks/usePage.mjs";
2
2
  import { useModalInner } from "../../../../modules/global-modal/src/hooks/useModal.mjs";
3
3
  import { BasicModal } from "../../../../modules/global-modal/index.mjs";
4
4
  import { useEditorConsoleInner } from "../../../../modules/code-editor/useEditorConsole.mjs";
5
- import { createBlock, createElementVNode, defineComponent, mergeProps, openBlock, ref, toRaw, unref, watch, withCtx } from "vue";
5
+ import { createBlock, createElementVNode, defineComponent, mergeProps, openBlock, ref, toDisplayString, toRaw, unref, watch, withCtx } from "vue";
6
6
  import { t } from "@gct-paas/core";
7
7
  //#region src/components/label-design/panels/modals/diff-modal.vue?vue&type=script&setup=true&lang.ts
8
+ var _hoisted_1 = { class: "diff-modal__versions" };
9
+ var _hoisted_2 = { class: "mr-5px" };
8
10
  var diff_modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
9
11
  __name: "diff-modal",
10
12
  setup(__props) {
@@ -60,7 +62,7 @@ var diff_modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
60
62
  "show-ok-btn": false,
61
63
  onRegister: unref(registerInner)
62
64
  }), {
63
- default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("div", null, [createElementVNode("div", { class: "diff-modal__versions" }, [createElementVNode("div", null, "当前版本"), createElementVNode("div", null, [createElementVNode("span", { class: "mr-5px" }, "对比版本")])]), createElementVNode("div", { class: "diff-modal__container" })], -1)])]),
65
+ default: withCtx(() => [createElementVNode("div", null, [createElementVNode("div", _hoisted_1, [createElementVNode("div", null, toDisplayString(unref(t)("sys.printDesigner.currVersion")), 1), createElementVNode("div", null, [createElementVNode("span", _hoisted_2, toDisplayString(unref(t)("sys.printDesigner.compareVersion")), 1)])]), _cache[0] || (_cache[0] = createElementVNode("div", { class: "diff-modal__container" }, null, -1))])]),
64
66
  _: 1
65
67
  }, 16, ["title", "onRegister"]);
66
68
  };