@gct-paas/core-web 0.1.6-dev.37 → 0.1.6-dev.39
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/dist/{JsBarcode-Bo5SpPqf.js → JsBarcode-C_VyQS6W.js} +2 -2
- package/dist/{chunk-CzFT3iS2.js → chunk-BrNvdsGm.js} +1 -1
- package/dist/{cropper-3WG6IxPT.js → cropper-WIkyEAKB.js} +2 -2
- package/dist/{de_DE-EpMUkrKG.js → de_DE-DlA3K1Cb.js} +2 -2
- package/dist/{defineProperty-DjJcBLb4.js → defineProperty-B1PtGusw.js} +1 -1
- package/dist/{diagram-config-item-Ba84t2ju.js → diagram-config-item-DGyOJxcd.js} +2 -2
- package/dist/{diagram-config-item-reverse-BhbjSzBe.js → diagram-config-item-reverse-BwaBGQXj.js} +2 -2
- package/dist/{diagram-config-item-virtual-fva5teOL.js → diagram-config-item-virtual-B-rT0Kus.js} +2 -2
- package/dist/{en_US-Bgy0yEFu.js → en_US-Dzgad0M8.js} +2 -2
- package/dist/{es_ES-DRngTAb5.js → es_ES-CxL0XQya.js} +2 -2
- package/dist/{fr_FR-5q20H1AL.js → fr_FR-DE4-3eTV.js} +2 -2
- package/dist/{hooks-ZH0Pak8N.js → hooks-CBtUfG_z.js} +2 -2
- package/dist/{icon-next-picker-Dt_2BtcK.js → icon-next-picker-BkEOOqyM.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-DvTjb7zM.js → ja_JP-CLV3-BuB.js} +2 -2
- package/dist/loader.esm.min.js +2 -2
- package/dist/{monaco-editor-Dq3suO5P.js → monaco-editor-tQjJboXL.js} +2 -2
- package/dist/{objectSpread2-oPY7ovX3.js → objectSpread2-BoFiCiyp.js} +1 -1
- package/dist/{overlayscrollbars-vue-BWvh-ibY.js → overlayscrollbars-vue-Brdzn-Uq.js} +1 -1
- package/dist/{pt_PT-Ct6NdUWY.js → pt_PT-4Jlo6oOj.js} +2 -2
- package/dist/{relationship-diagram-config-C8LCLDKK.js → relationship-diagram-config-BGSv_b0r.js} +2 -2
- package/dist/{rich-editor-CFRbyrMz.js → rich-editor-Bw7uZTsf.js} +2 -2
- package/dist/{ru_RU-EwaOwdC1.js → ru_RU-ta9PEMho.js} +2 -2
- package/dist/{tr_TR-52XfjsR-.js → tr_TR-BzKKquQk.js} +2 -2
- package/dist/useMonacoEditor-FgdMrofa.js +2 -0
- package/dist/{vi_VN-Cv3A0n4a.js → vi_VN-CQwFPiwA.js} +2 -2
- package/dist/{zh_CN-DRHhwKU9.js → zh_CN-1LUCOvXh.js} +2 -2
- package/dist/{zh_TW-7f3cKGBH.js → zh_TW-CIZU5thr.js} +2 -2
- package/es/components/label-design/components/mr-vue/MrEl.vue.mjs +2 -2
- package/es/components/label-design/components/mr-vue/MrEl.vue_vue_type_script_setup_true_name_mr-el_lang.mjs +15 -11
- 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
- package/es/components/label-design/components/widgets/QrCode.vue.mjs +2 -2
- package/es/components/label-design/components/widgets/QrCode.vue_vue_type_script_setup_true_name_QR_CODE_lang.mjs +86 -4
- package/es/components/label-design/components/widgets/QrCode.vue_vue_type_style_index_0_scoped_2fb36afd_lang.css +14 -0
- package/es/components/label-design/components/widgets/Text.vue.mjs +3 -3
- 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
- package/es/components/label-design/components/widgets/Text.vue_vue_type_style_index_0_scoped_d9ace99f_lang.css +37 -0
- package/es/components/label-design/components/widgets/richText.vue.mjs +2 -2
- package/es/components/label-design/components/widgets/richText.vue_vue_type_script_setup_true_lang.mjs +4 -3
- 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
- package/es/components/label-design/constants/CommonPrintElems.d.ts +41 -4
- package/es/components/label-design/constants/CommonPrintElems.mjs +31 -15
- package/es/components/label-design/header/test-var-modal.vue.d.ts +3 -0
- package/es/components/label-design/hooks/useDesigner.d.ts +1 -0
- package/es/components/label-design/hooks/useDesigner.mjs +19 -1
- package/es/components/label-design/hooks/usePage.mjs +16 -2
- package/es/components/label-design/hooks/useProp.d.ts +62 -7
- package/es/components/label-design/hooks/useProp.mjs +154 -97
- package/es/components/label-design/panels/modals/diff-modal.vue.mjs +2 -2
- package/es/components/label-design/panels/modals/diff-modal.vue_vue_type_script_setup_true_lang.mjs +4 -2
- 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
- package/es/components/label-design/panels/widget/component-properties.vue.mjs +2 -2
- package/es/components/label-design/panels/widget/component-properties.vue_vue_type_script_setup_true_name_component-properties_lang.mjs +5 -4
- 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
- package/es/components/label-design/panels/widget/controls/AliasInput.vue.mjs +9 -4
- package/es/components/label-design/panels/widget/controls/Border.vue.mjs +26 -23
- package/es/components/label-design/panels/widget/controls/Border.vue_vue_type_script_lang.mjs +4 -0
- 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
- package/es/components/label-design/panels/widget/controls/FontStyle.vue.mjs +12 -8
- package/es/components/label-design/panels/widget/controls/FontStyle.vue_vue_type_script_lang.mjs +12 -6
- package/es/components/label-design/panels/widget/controls/InputContent.vue.mjs +9 -4
- package/es/components/label-design/panels/widget/controls/InputContent.vue_vue_type_script_lang.mjs +4 -0
- package/es/components/label-design/panels/widget/controls/LineHeight.vue.mjs +183 -0
- package/es/components/label-design/panels/widget/controls/PdfQrConfig.vue.mjs +10 -0
- package/es/components/label-design/panels/widget/controls/PdfQrConfig.vue_vue_type_script_setup_true_name_pdf-qr-config_lang.mjs +166 -0
- package/es/components/label-design/panels/widget/controls/PdfQrConfig.vue_vue_type_style_index_0_scoped_cd6ec1c2_lang.css +19 -0
- package/es/components/label-design/panels/widget/controls/PdfQrConfig.vue_vue_type_style_index_1_lang.css +0 -0
- package/es/components/label-design/panels/widget/controls/SelectContent.vue.mjs +20 -5
- package/es/components/label-design/panels/widget/controls/StackOrder.vue.mjs +15 -10
- package/es/components/label-design/panels/widget/controls/TextAlign.vue.mjs +12 -8
- package/es/components/label-design/panels/widget/controls/TextAlign.vue_vue_type_script_lang.mjs +9 -3
- package/es/components/label-design/panels/widget/controls/TextVerticalAlign.vue.mjs +9 -6
- package/es/components/label-design/panels/widget/controls/TextVerticalAlign.vue_vue_type_script_lang.mjs +9 -3
- package/es/components/label-design/panels/widget/controls/VariableSelect.vue.mjs +2 -2
- package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_script_setup_true_name_variable-select_lang.mjs +14 -6
- package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_style_index_0_scoped_8729413a_lang.css +15 -0
- package/es/components/label-design/panels/widget/controls/dim-pos.vue.mjs +2 -2
- package/es/components/label-design/panels/widget/controls/dim-pos.vue_vue_type_script_setup_true_name_dim-pos_lang.mjs +52 -44
- 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
- package/es/components/label-design/panels/widget/controls/field-content.vue.mjs +2 -2
- package/es/components/label-design/panels/widget/controls/field-content.vue_vue_type_script_setup_true_name_field-content_lang.mjs +3 -2
- package/es/components/label-design/panels/widget/controls/field-content.vue_vue_type_style_index_0_scoped_20837fed_lang.css +6 -0
- package/es/components/label-design/panels/widget/controls/index.mjs +4 -0
- package/es/components/label-design/panels/widget/controls/rich-btn.vue.mjs +1 -1
- package/es/components/label-design/panels/widget/controls/rich-btn.vue_vue_type_script_lang.mjs +11 -5
- package/es/components/label-design/panels/widget/page-properties.vue.mjs +2 -2
- package/es/components/label-design/panels/widget/page-properties.vue_vue_type_script_setup_true_name_page-properties_lang.mjs +3 -2
- 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
- package/es/components/label-design/panels/widget/panel-widget.vue_vue_type_script_setup_true_name_panel-widget_lang.mjs +4 -3
- package/es/components/label-design/stage/StageEl.vue.d.ts +6 -1
- package/es/components/label-design/stage/StageEl.vue_vue_type_script_lang.mjs +23 -1
- package/es/components/label-design/stage/stage-canvas.vue.d.ts +2 -0
- package/es/components/label-design/stage/stage-canvas.vue_vue_type_script_setup_true_lang.mjs +27 -3
- package/es/components/label-design/toolkits/toolkit-widgets.vue.mjs +2 -2
- package/es/components/label-design/toolkits/toolkit-widgets.vue_vue_type_script_setup_true_name_toolkit-widgets_lang.mjs +4 -3
- 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
- package/es/components/model-cascader/util.mjs +2 -1
- package/es/components/open-select-user-modal/component/org.vue.mjs +1 -1
- package/es/components/open-select-user-modal/component/role.vue.mjs +1 -1
- package/es/components/open-select-user-modal/component/user-group.vue.mjs +1 -1
- package/es/components/open-select-user-modal/component/user.vue.mjs +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useTag.d.ts +7 -0
- package/es/hooks/useTag.mjs +83 -0
- package/es/index.mjs +3 -2
- package/es/locale/sys/appDesigner.d.ts +3 -0
- package/es/locale/sys/appDesigner.mjs +4 -1
- package/es/locale/sys/model.d.ts +2 -0
- package/es/locale/sys/model.mjs +3 -1
- package/es/locale/sys/pageDesigner.d.ts +25 -0
- package/es/locale/sys/pageDesigner.mjs +26 -1
- package/es/locale/sys/printDesigner.d.ts +111 -0
- package/es/locale/sys/printDesigner.mjs +112 -1
- package/es/locale/sys.d.ts +6 -0
- package/es/locale/sys.mjs +7 -1
- package/es/modules/gct-form/editor/gct-form-model-select/gct-form-model-select.mjs +2 -1
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-modal.vue.mjs +2 -2
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-modal.vue_vue_type_script_setup_true_name_online-form-model-modal_lang.mjs +12 -5
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/{online-form-model-modal.vue_vue_type_style_index_0_scoped_7aa34739_lang.css → online-form-model-modal.vue_vue_type_style_index_0_scoped_41c1457b_lang.css} +19 -19
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-select.vue.d.ts +7 -2
- package/es/modules/gct-form/editor/gct-form-model-select/select-online-form-model/online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang.mjs +16 -6
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/package.json +11 -11
- package/dist/useMonacoEditor-8TeCBE8q.js +0 -2
- package/es/components/label-design/components/widgets/QrCode.vue_vue_type_style_index_0_scoped_61b471f2_lang.css +0 -10
- package/es/components/label-design/components/widgets/Text.vue_vue_type_style_index_0_scoped_170abee2_lang.css +0 -33
- package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_style_index_0_scoped_2c6f0905_lang.css +0 -12
- package/es/components/label-design/panels/widget/controls/field-content.vue_vue_type_style_index_0_scoped_68aaf84d_lang.css +0 -6
- /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
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.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,
|
|
@@ -417,7 +429,7 @@ function useProp(context) {
|
|
|
417
429
|
},
|
|
418
430
|
changeEvent({ val, label, type, exp }) {
|
|
419
431
|
if (label) att.value["text"].label = label;
|
|
420
|
-
if (val) onAttrsChanges("text", val);
|
|
432
|
+
if (val !== void 0) onAttrsChanges("text", val);
|
|
421
433
|
if (type) {
|
|
422
434
|
onAttrsText("sourceType", type);
|
|
423
435
|
att.value["text"].label = label;
|
|
@@ -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("
|
|
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("
|
|
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("
|
|
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("
|
|
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: "
|
|
672
|
+
} : {
|
|
673
|
+
type: "pdf-qr-config",
|
|
625
674
|
props: {
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
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(
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
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
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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.
|
|
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-
|
|
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 };
|
package/es/components/label-design/panels/modals/diff-modal.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -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(() => [
|
|
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
|
};
|