@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,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
2
|
-
import{t as e}from"./objectSpread2-
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.39 */
|
|
2
|
+
import{t as e}from"./objectSpread2-BoFiCiyp.js";var l={placeholder:"請選擇時間"},a={lang:e({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeQuarterPlaceholder:["開始季度","結束季度"],rangeWeekPlaceholder:["開始周","結束周"]},{locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀"}),timePickerLocale:e({},l)};a.lang.ok="確 定";var r="${label}不是一個有效的${type}",t={locale:"zh-tw",Pagination:{items_per_page:"條/頁",jump_to:"跳至",jump_to_confirm:"確定",page:"頁",prev_page:"上一頁",next_page:"下一頁",prev_5:"向前 5 頁",next_5:"向後 5 頁",prev_3:"向前 3 頁",next_3:"向後 3 頁"},DatePicker:a,TimePicker:l,Calendar:a,global:{placeholder:"請選擇"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",selectAll:"全部選取",selectInvert:"反向選取",selectNone:"清空所有",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目",remove:"删除",selectCurrent:"全選當頁",removeCurrent:"删除當頁",selectAll:"全選所有",removeAll:"删除全部",selectInvert:"反選當頁"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},PageHeader:{back:"返回"},Form:{optional:"(可選)",defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},Image:{preview:"預覽"}};export{t as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import MrEl_vue_vue_type_script_setup_true_name_mr_el_lang_default from "./MrEl.vue_vue_type_script_setup_true_name_mr-el_lang.mjs";
|
|
3
|
-
import './MrEl.
|
|
3
|
+
import './MrEl.vue_vue_type_style_index_0_scoped_371e4b06_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/label-design/components/mr-vue/MrEl.vue
|
|
5
|
-
var MrEl_default = /* @__PURE__ */ _plugin_vue_export_helper_default(MrEl_vue_vue_type_script_setup_true_name_mr_el_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var MrEl_default = /* @__PURE__ */ _plugin_vue_export_helper_default(MrEl_vue_vue_type_script_setup_true_name_mr_el_lang_default, [["__scopeId", "data-v-371e4b06"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { MrEl_default as default };
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { PRINT_ELE_TYPE } from "../../constants/CommonPrintElems.mjs";
|
|
2
2
|
import { useDesigner } from "../../hooks/useDesigner.mjs";
|
|
3
3
|
import { useProp } from "../../hooks/useProp.mjs";
|
|
4
|
-
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, unref, vShow, withDirectives, withModifiers } from "vue";
|
|
4
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, toDisplayString, unref, vShow, withDirectives, withModifiers } from "vue";
|
|
5
|
+
import { t } from "@gct-paas/core";
|
|
5
6
|
//#region src/components/label-design/components/mr-vue/MrEl.vue?vue&type=script&setup=true&name=mr-el&lang.ts
|
|
6
7
|
var _hoisted_1 = {
|
|
7
8
|
key: 1,
|
|
8
9
|
class: "page-wrap-desc"
|
|
9
10
|
};
|
|
10
|
-
var _hoisted_2 = {
|
|
11
|
+
var _hoisted_2 = { class: "page-wrap-desc_text" };
|
|
12
|
+
var _hoisted_3 = {
|
|
11
13
|
key: 3,
|
|
12
14
|
class: "selection-box--internal"
|
|
13
15
|
};
|
|
14
|
-
var
|
|
16
|
+
var _hoisted_4 = {
|
|
15
17
|
key: 4,
|
|
16
18
|
class: "selection-box"
|
|
17
19
|
};
|
|
@@ -117,8 +119,9 @@ var MrEl_vue_vue_type_script_setup_true_name_mr_el_lang_default = /* @__PURE__ *
|
|
|
117
119
|
/**针对线段需要做一些修正 */
|
|
118
120
|
const elTopNumber = computed(() => {
|
|
119
121
|
let top = parseFloat((props.top || 0) + "");
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
const element = props.elem;
|
|
123
|
+
if (element?.type === PRINT_ELE_TYPE.HORIZONTAL_LINE) {
|
|
124
|
+
const { height } = element;
|
|
122
125
|
top -= height / 2 - 1;
|
|
123
126
|
}
|
|
124
127
|
return top;
|
|
@@ -126,8 +129,9 @@ var MrEl_vue_vue_type_script_setup_true_name_mr_el_lang_default = /* @__PURE__ *
|
|
|
126
129
|
/**针对线段需要做一些修正 */
|
|
127
130
|
const elLeftNumber = computed(() => {
|
|
128
131
|
let left = parseFloat((props.left || 0) + "");
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
const element = props.elem;
|
|
133
|
+
if (element?.type === PRINT_ELE_TYPE.VERTICAL_LINE) {
|
|
134
|
+
const { width } = element;
|
|
131
135
|
left -= width / 2 - 1;
|
|
132
136
|
}
|
|
133
137
|
return left;
|
|
@@ -179,21 +183,21 @@ var MrEl_vue_vue_type_script_setup_true_name_mr_el_lang_default = /* @__PURE__ *
|
|
|
179
183
|
onMousedownCapture: [_cache[2] || (_cache[2] = withModifiers((e) => activatedHandler(e), ["meta", "stop"])), _cache[3] || (_cache[3] = withModifiers((e) => activatedHandler(e), ["ctrl", "stop"]))]
|
|
180
184
|
}, [
|
|
181
185
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
182
|
-
!
|
|
186
|
+
!props.elem?.isEdit ? (openBlock(), createElementBlock("div", {
|
|
183
187
|
key: 0,
|
|
184
188
|
class: normalizeClass(["mr-mask", {
|
|
185
189
|
"mr-active": active.value,
|
|
186
190
|
"mr-hover": avtiveHover.value
|
|
187
191
|
}])
|
|
188
192
|
}, null, 2)) : createCommentVNode("", true),
|
|
189
|
-
_cache[
|
|
193
|
+
_cache[4] || (_cache[4] = createElementVNode("div", {
|
|
190
194
|
class: "tag-handle",
|
|
191
195
|
style: { "display": "none" }
|
|
192
196
|
}, [createElementVNode("div", { class: "handle-body" }), createElementVNode("i", {
|
|
193
197
|
class: "font_family icon-ico-dzt",
|
|
194
198
|
"data-mr-rotate": "true"
|
|
195
199
|
})], -1)),
|
|
196
|
-
__props.name === "pageWrap" ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
200
|
+
__props.name === "pageWrap" ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, toDisplayString(unref(t)("sys.printDesigner.pageWrapDesc")), 1)])) : createCommentVNode("", true),
|
|
197
201
|
resizable.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.handles, (handle) => {
|
|
198
202
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
199
203
|
key: handle,
|
|
@@ -205,7 +209,7 @@ var MrEl_vue_vue_type_script_setup_true_name_mr_el_lang_default = /* @__PURE__ *
|
|
|
205
209
|
key: item + index,
|
|
206
210
|
class: normalizeClass(["unhandle", `un-${item}`])
|
|
207
211
|
}, null, 2)), [[vShow, active.value]]);
|
|
208
|
-
}), 128)) : createCommentVNode("", true)], 64)) : __props.internal ? withDirectives((openBlock(), createElementBlock("div",
|
|
212
|
+
}), 128)) : createCommentVNode("", true)], 64)) : __props.internal ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3, null, 512)), [[vShow, active.value]]) : withDirectives((openBlock(), createElementBlock("div", _hoisted_4, null, 512)), [[vShow, active.value]])
|
|
209
213
|
], 38);
|
|
210
214
|
};
|
|
211
215
|
}
|
|
@@ -62,80 +62,80 @@
|
|
|
62
62
|
* }
|
|
63
63
|
*/
|
|
64
64
|
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
-
.mr-el[data-v-
|
|
65
|
+
.mr-el[data-v-371e4b06] {
|
|
66
66
|
position: absolute;
|
|
67
67
|
box-sizing: border-box;
|
|
68
68
|
border: 1px solid transparent;
|
|
69
69
|
}
|
|
70
|
-
.mr-el .mr-mask[data-v-
|
|
70
|
+
.mr-el .mr-mask[data-v-371e4b06] {
|
|
71
71
|
position: absolute;
|
|
72
72
|
top: -1px;
|
|
73
73
|
left: -1px;
|
|
74
74
|
width: calc(100% + 2px);
|
|
75
75
|
height: calc(100% + 2px);
|
|
76
76
|
}
|
|
77
|
-
.mr-el .mr-mask[data-v-
|
|
77
|
+
.mr-el .mr-mask[data-v-371e4b06]:hover {
|
|
78
78
|
border: 1px dashed var(--ant-primary-color);
|
|
79
79
|
background: rgba(var(--ant-primary-color), 0.16);
|
|
80
80
|
background-color: color-mix(in srgb, var(--ant-primary-color) 16%, transparent);
|
|
81
81
|
}
|
|
82
|
-
.mr-el .mr-mask.mr-hover[data-v-
|
|
82
|
+
.mr-el .mr-mask.mr-hover[data-v-371e4b06] {
|
|
83
83
|
border: 1px dashed var(--ant-primary-color);
|
|
84
84
|
background: rgba(var(--ant-primary-color), 0.16);
|
|
85
85
|
background-color: color-mix(in srgb, var(--ant-primary-color) 16%, transparent);
|
|
86
86
|
}
|
|
87
|
-
.mr-el .mr-mask.mr-active[data-v-
|
|
87
|
+
.mr-el .mr-mask.mr-active[data-v-371e4b06]:hover {
|
|
88
88
|
border-color: transparent;
|
|
89
89
|
background: transparent;
|
|
90
90
|
}
|
|
91
|
-
.mr-el[data-v-
|
|
91
|
+
.mr-el[data-v-371e4b06] .icon-next {
|
|
92
92
|
height: 100%;
|
|
93
93
|
}
|
|
94
|
-
.mr-el[data-v-
|
|
94
|
+
.mr-el[data-v-371e4b06] .icon-next svg {
|
|
95
95
|
width: 100%;
|
|
96
96
|
height: 100%;
|
|
97
97
|
}
|
|
98
|
-
.mr-el .moveIcon[data-v-
|
|
98
|
+
.mr-el .moveIcon[data-v-371e4b06] {
|
|
99
99
|
position: absolute;
|
|
100
100
|
color: #409eff;
|
|
101
101
|
text-align: center;
|
|
102
102
|
}
|
|
103
|
-
.posTop[data-v-
|
|
103
|
+
.posTop[data-v-371e4b06] {
|
|
104
104
|
top: -20px;
|
|
105
105
|
left: 6px;
|
|
106
106
|
}
|
|
107
|
-
.posBottom[data-v-
|
|
107
|
+
.posBottom[data-v-371e4b06] {
|
|
108
108
|
bottom: -20px;
|
|
109
109
|
left: 6px;
|
|
110
110
|
}
|
|
111
|
-
.posRotTop[data-v-
|
|
111
|
+
.posRotTop[data-v-371e4b06] {
|
|
112
112
|
bottom: 6px;
|
|
113
113
|
left: -20px;
|
|
114
114
|
}
|
|
115
|
-
.posRotBottom[data-v-
|
|
115
|
+
.posRotBottom[data-v-371e4b06] {
|
|
116
116
|
right: -20px;
|
|
117
117
|
bottom: 6px;
|
|
118
118
|
}
|
|
119
|
-
.mr-el[data-v-
|
|
119
|
+
.mr-el[data-v-371e4b06]:hover {
|
|
120
120
|
cursor: move;
|
|
121
121
|
}
|
|
122
|
-
.mr-el.internal[data-v-
|
|
122
|
+
.mr-el.internal[data-v-371e4b06]:hover {
|
|
123
123
|
cursor: initial;
|
|
124
124
|
}
|
|
125
|
-
.mr-el[data-v-
|
|
125
|
+
.mr-el[data-v-371e4b06] > * {
|
|
126
126
|
position: absolute;
|
|
127
127
|
box-sizing: border-box;
|
|
128
128
|
width: 100%;
|
|
129
129
|
height: 100%;
|
|
130
130
|
margin: 0;
|
|
131
131
|
}
|
|
132
|
-
.selection-box[data-v-
|
|
132
|
+
.selection-box[data-v-371e4b06] {
|
|
133
133
|
border: 2px solid var(--ant-primary-color);
|
|
134
134
|
}
|
|
135
|
-
.selection-box--internal[data-v-
|
|
135
|
+
.selection-box--internal[data-v-371e4b06] {
|
|
136
136
|
border: 2px solid #999;
|
|
137
137
|
}
|
|
138
|
-
.tag-mark[data-v-
|
|
138
|
+
.tag-mark[data-v-371e4b06] {
|
|
139
139
|
position: absolute;
|
|
140
140
|
top: 0;
|
|
141
141
|
left: 0;
|
|
@@ -144,14 +144,14 @@
|
|
|
144
144
|
line-height: 16px;
|
|
145
145
|
text-align: center;
|
|
146
146
|
}
|
|
147
|
-
.tag-val-wrap[data-v-
|
|
147
|
+
.tag-val-wrap[data-v-371e4b06] {
|
|
148
148
|
display: flex;
|
|
149
149
|
align-items: center;
|
|
150
150
|
width: 100%;
|
|
151
151
|
height: 100%;
|
|
152
152
|
background-color: transparent;
|
|
153
153
|
}
|
|
154
|
-
.tab-list[data-v-
|
|
154
|
+
.tab-list[data-v-371e4b06] {
|
|
155
155
|
left: -80px;
|
|
156
156
|
width: auto;
|
|
157
157
|
height: auto;
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
border: 1px solid rgb(202, 202, 202);
|
|
160
160
|
border-right: none;
|
|
161
161
|
}
|
|
162
|
-
.tab-item[data-v-
|
|
162
|
+
.tab-item[data-v-371e4b06] {
|
|
163
163
|
display: block;
|
|
164
164
|
width: 80px;
|
|
165
165
|
height: 25px;
|
|
@@ -169,17 +169,17 @@
|
|
|
169
169
|
text-align: center;
|
|
170
170
|
cursor: pointer;
|
|
171
171
|
}
|
|
172
|
-
.tab-item[data-v-
|
|
172
|
+
.tab-item[data-v-371e4b06]:not(:first-child) {
|
|
173
173
|
border-top: 1px solid rgb(202, 202, 202);
|
|
174
174
|
}
|
|
175
|
-
.tab-item[data-v-
|
|
175
|
+
.tab-item[data-v-371e4b06]:hover {
|
|
176
176
|
background-color: #2473ce;
|
|
177
177
|
color: #fff;
|
|
178
178
|
}
|
|
179
|
-
.tab-item.selected[data-v-
|
|
179
|
+
.tab-item.selected[data-v-371e4b06] {
|
|
180
180
|
color: #2473ce;
|
|
181
181
|
}
|
|
182
|
-
.handle[data-v-
|
|
182
|
+
.handle[data-v-371e4b06] {
|
|
183
183
|
position: absolute;
|
|
184
184
|
z-index: 6;
|
|
185
185
|
box-sizing: border-box;
|
|
@@ -187,13 +187,13 @@
|
|
|
187
187
|
height: 8px;
|
|
188
188
|
font-size: 1px;
|
|
189
189
|
}
|
|
190
|
-
.tl[data-v-
|
|
190
|
+
.tl[data-v-371e4b06] {
|
|
191
191
|
top: -3px;
|
|
192
192
|
left: -3px;
|
|
193
193
|
background: var(--ant-primary-color);
|
|
194
194
|
cursor: nwse-resize;
|
|
195
195
|
}
|
|
196
|
-
.mt[data-v-
|
|
196
|
+
.mt[data-v-371e4b06] {
|
|
197
197
|
top: 0;
|
|
198
198
|
width: 100%;
|
|
199
199
|
border-width: 2px;
|
|
@@ -202,13 +202,13 @@
|
|
|
202
202
|
border-color: var(--ant-primary-color);
|
|
203
203
|
cursor: ns-resize;
|
|
204
204
|
}
|
|
205
|
-
.tr[data-v-
|
|
205
|
+
.tr[data-v-371e4b06] {
|
|
206
206
|
top: -3px;
|
|
207
207
|
right: -3px;
|
|
208
208
|
background: var(--ant-primary-color);
|
|
209
209
|
cursor: nesw-resize;
|
|
210
210
|
}
|
|
211
|
-
.mr[data-v-
|
|
211
|
+
.mr[data-v-371e4b06] {
|
|
212
212
|
top: 0;
|
|
213
213
|
right: 0;
|
|
214
214
|
height: 100%;
|
|
@@ -218,13 +218,13 @@
|
|
|
218
218
|
border-color: var(--ant-primary-color);
|
|
219
219
|
cursor: ew-resize;
|
|
220
220
|
}
|
|
221
|
-
.br[data-v-
|
|
221
|
+
.br[data-v-371e4b06] {
|
|
222
222
|
right: -3px;
|
|
223
223
|
bottom: -3px;
|
|
224
224
|
background: var(--ant-primary-color);
|
|
225
225
|
cursor: nwse-resize;
|
|
226
226
|
}
|
|
227
|
-
.mb[data-v-
|
|
227
|
+
.mb[data-v-371e4b06] {
|
|
228
228
|
bottom: 0;
|
|
229
229
|
width: 100%;
|
|
230
230
|
border-width: 2px;
|
|
@@ -233,13 +233,13 @@
|
|
|
233
233
|
border-color: var(--ant-primary-color);
|
|
234
234
|
cursor: ns-resize;
|
|
235
235
|
}
|
|
236
|
-
.bl[data-v-
|
|
236
|
+
.bl[data-v-371e4b06] {
|
|
237
237
|
bottom: -3px;
|
|
238
238
|
left: -3px;
|
|
239
239
|
background: var(--ant-primary-color);
|
|
240
240
|
cursor: nesw-resize;
|
|
241
241
|
}
|
|
242
|
-
.ml[data-v-
|
|
242
|
+
.ml[data-v-371e4b06] {
|
|
243
243
|
top: 0;
|
|
244
244
|
left: 0;
|
|
245
245
|
height: 100%;
|
|
@@ -249,35 +249,35 @@
|
|
|
249
249
|
border-color: var(--ant-primary-color);
|
|
250
250
|
cursor: ew-resize;
|
|
251
251
|
}
|
|
252
|
-
.tc[data-v-
|
|
252
|
+
.tc[data-v-371e4b06] {
|
|
253
253
|
top: -3px;
|
|
254
254
|
left: 50%;
|
|
255
255
|
transform: translate(-50%);
|
|
256
256
|
background: var(--ant-primary-color);
|
|
257
257
|
cursor: ns-resize;
|
|
258
258
|
}
|
|
259
|
-
.bc[data-v-
|
|
259
|
+
.bc[data-v-371e4b06] {
|
|
260
260
|
bottom: -3px;
|
|
261
261
|
left: 50%;
|
|
262
262
|
transform: translate(-50%);
|
|
263
263
|
background: var(--ant-primary-color);
|
|
264
264
|
cursor: ns-resize;
|
|
265
265
|
}
|
|
266
|
-
.lc[data-v-
|
|
266
|
+
.lc[data-v-371e4b06] {
|
|
267
267
|
top: 50%;
|
|
268
268
|
left: -3px;
|
|
269
269
|
transform: translate(0, -50%);
|
|
270
270
|
background: var(--ant-primary-color);
|
|
271
271
|
cursor: ew-resize;
|
|
272
272
|
}
|
|
273
|
-
.rc[data-v-
|
|
273
|
+
.rc[data-v-371e4b06] {
|
|
274
274
|
top: 50%;
|
|
275
275
|
right: -3px;
|
|
276
276
|
transform: translate(0, -50%);
|
|
277
277
|
background: var(--ant-primary-color);
|
|
278
278
|
cursor: ew-resize;
|
|
279
279
|
}
|
|
280
|
-
.unhandle[data-v-
|
|
280
|
+
.unhandle[data-v-371e4b06] {
|
|
281
281
|
position: absolute;
|
|
282
282
|
z-index: 6;
|
|
283
283
|
box-sizing: border-box;
|
|
@@ -288,65 +288,65 @@
|
|
|
288
288
|
border-color: var(--ant-primary-color);
|
|
289
289
|
font-size: 1px;
|
|
290
290
|
}
|
|
291
|
-
.unhandle.un-mt[data-v-
|
|
291
|
+
.unhandle.un-mt[data-v-371e4b06] {
|
|
292
292
|
top: 0;
|
|
293
293
|
width: 100%;
|
|
294
294
|
border-style: solid none none;
|
|
295
295
|
}
|
|
296
|
-
.unhandle.un-mb[data-v-
|
|
296
|
+
.unhandle.un-mb[data-v-371e4b06] {
|
|
297
297
|
bottom: 0;
|
|
298
298
|
width: 100%;
|
|
299
299
|
border-style: none none solid;
|
|
300
300
|
}
|
|
301
|
-
.unhandle.un-ml[data-v-
|
|
301
|
+
.unhandle.un-ml[data-v-371e4b06] {
|
|
302
302
|
top: 0;
|
|
303
303
|
left: 0;
|
|
304
304
|
height: 100%;
|
|
305
305
|
border-style: none none none solid;
|
|
306
306
|
}
|
|
307
|
-
.unhandle.un-mr[data-v-
|
|
307
|
+
.unhandle.un-mr[data-v-371e4b06] {
|
|
308
308
|
top: 0;
|
|
309
309
|
right: 0;
|
|
310
310
|
height: 100%;
|
|
311
311
|
border-style: none solid none none;
|
|
312
312
|
}
|
|
313
|
-
.rotDiv .tl[data-v-
|
|
313
|
+
.rotDiv .tl[data-v-371e4b06] {
|
|
314
314
|
cursor: nesw-resize;
|
|
315
315
|
}
|
|
316
|
-
.rotDiv .br[data-v-
|
|
316
|
+
.rotDiv .br[data-v-371e4b06] {
|
|
317
317
|
cursor: nesw-resize;
|
|
318
318
|
}
|
|
319
|
-
.rotDiv .tr[data-v-
|
|
319
|
+
.rotDiv .tr[data-v-371e4b06] {
|
|
320
320
|
cursor: nwse-resize;
|
|
321
321
|
}
|
|
322
|
-
.rotDiv .bl[data-v-
|
|
322
|
+
.rotDiv .bl[data-v-371e4b06] {
|
|
323
323
|
cursor: nwse-resize;
|
|
324
324
|
}
|
|
325
|
-
.rotDiv .mt[data-v-
|
|
325
|
+
.rotDiv .mt[data-v-371e4b06] {
|
|
326
326
|
cursor: ew-resize;
|
|
327
327
|
}
|
|
328
|
-
.rotDiv .mb[data-v-
|
|
328
|
+
.rotDiv .mb[data-v-371e4b06] {
|
|
329
329
|
cursor: ew-resize;
|
|
330
330
|
}
|
|
331
|
-
.rotDiv .mr[data-v-
|
|
331
|
+
.rotDiv .mr[data-v-371e4b06] {
|
|
332
332
|
cursor: ns-resize;
|
|
333
333
|
}
|
|
334
|
-
.rotDiv .ml[data-v-
|
|
334
|
+
.rotDiv .ml[data-v-371e4b06] {
|
|
335
335
|
cursor: ns-resize;
|
|
336
336
|
}
|
|
337
|
-
.page-wrap-desc[data-v-
|
|
337
|
+
.page-wrap-desc[data-v-371e4b06] {
|
|
338
338
|
display: flex;
|
|
339
339
|
align-items: center;
|
|
340
340
|
justify-content: center;
|
|
341
341
|
/* background-color: #dcdcdc; */
|
|
342
342
|
}
|
|
343
|
-
.page-wrap-desc > div[data-v-
|
|
343
|
+
.page-wrap-desc > div[data-v-371e4b06] {
|
|
344
344
|
width: 80%;
|
|
345
345
|
color: #666;
|
|
346
346
|
text-align: center;
|
|
347
347
|
/* background-color: #dcdcdc; */
|
|
348
348
|
}
|
|
349
|
-
.event-handle[data-v-
|
|
349
|
+
.event-handle[data-v-371e4b06] {
|
|
350
350
|
display: flex;
|
|
351
351
|
top: 50%;
|
|
352
352
|
left: -30px;
|
|
@@ -355,17 +355,17 @@
|
|
|
355
355
|
height: 10px;
|
|
356
356
|
margin-top: -5px;
|
|
357
357
|
}
|
|
358
|
-
.event-handle .icon-event2[data-v-
|
|
358
|
+
.event-handle .icon-event2[data-v-371e4b06] {
|
|
359
359
|
color: #999;
|
|
360
360
|
font-size: 24px;
|
|
361
361
|
cursor: grab;
|
|
362
362
|
}
|
|
363
|
-
.event-handle .handle-body[data-v-
|
|
363
|
+
.event-handle .handle-body[data-v-371e4b06] {
|
|
364
364
|
width: 20px;
|
|
365
365
|
height: 2px;
|
|
366
366
|
background-color: #999;
|
|
367
367
|
}
|
|
368
|
-
.tag-handle[data-v-
|
|
368
|
+
.tag-handle[data-v-371e4b06] {
|
|
369
369
|
display: flex;
|
|
370
370
|
top: 50%;
|
|
371
371
|
right: -30px;
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
height: 10px;
|
|
375
375
|
margin-top: -5px;
|
|
376
376
|
}
|
|
377
|
-
.tag-handle i[data-v-
|
|
377
|
+
.tag-handle i[data-v-371e4b06] {
|
|
378
378
|
display: block;
|
|
379
379
|
width: 22px;
|
|
380
380
|
height: 22px;
|
|
@@ -385,12 +385,12 @@
|
|
|
385
385
|
line-height: 22px;
|
|
386
386
|
text-align: center;
|
|
387
387
|
}
|
|
388
|
-
.tag-handle .handle-body[data-v-
|
|
388
|
+
.tag-handle .handle-body[data-v-371e4b06] {
|
|
389
389
|
width: 6px;
|
|
390
390
|
height: 2px;
|
|
391
391
|
background-color: #999;
|
|
392
392
|
}
|
|
393
|
-
.rotate-handle[data-v-
|
|
393
|
+
.rotate-handle[data-v-371e4b06] {
|
|
394
394
|
top: -36px;
|
|
395
395
|
left: 50%;
|
|
396
396
|
width: 24px;
|
|
@@ -399,10 +399,10 @@
|
|
|
399
399
|
color: var(--ant-primary-color);
|
|
400
400
|
cursor: grab;
|
|
401
401
|
}
|
|
402
|
-
.rotate-handle .icon-rotate[data-v-
|
|
402
|
+
.rotate-handle .icon-rotate[data-v-371e4b06] {
|
|
403
403
|
font-size: 24px;
|
|
404
404
|
}
|
|
405
|
-
.modal-handle[data-v-
|
|
405
|
+
.modal-handle[data-v-371e4b06] {
|
|
406
406
|
position: static;
|
|
407
407
|
z-index: 5;
|
|
408
408
|
height: 1px;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
3
|
import QrCode_vue_vue_type_script_setup_true_name_QR_CODE_lang_default from "./QrCode.vue_vue_type_script_setup_true_name_QR_CODE_lang.mjs";
|
|
4
|
-
import './QrCode.
|
|
4
|
+
import './QrCode.vue_vue_type_style_index_0_scoped_2fb36afd_lang.css';/* empty css */
|
|
5
5
|
//#region src/components/label-design/components/widgets/QrCode.vue
|
|
6
6
|
var QrCode_exports = /* @__PURE__ */ __exportAll({ default: () => QrCode_default });
|
|
7
|
-
var QrCode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(QrCode_vue_vue_type_script_setup_true_name_QR_CODE_lang_default, [["__scopeId", "data-v-
|
|
7
|
+
var QrCode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(QrCode_vue_vue_type_script_setup_true_name_QR_CODE_lang_default, [["__scopeId", "data-v-2fb36afd"]]);
|
|
8
8
|
//#endregion
|
|
9
9
|
export { QrCode_exports };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import qrcode_default from "./images/qrcode.png.mjs";
|
|
2
2
|
import gs1datamatrix_default from "./images/gs1datamatrix.png.mjs";
|
|
3
|
-
import { createElementBlock, defineComponent, normalizeStyle, openBlock, ref } from "vue";
|
|
3
|
+
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeStyle, onMounted, openBlock, ref, vShow, watch, withDirectives } from "vue";
|
|
4
|
+
import bwipjs from "bwip-js";
|
|
4
5
|
//#region src/components/label-design/components/widgets/QrCode.vue?vue&type=script&setup=true&name=QR_CODE&lang.ts
|
|
5
6
|
var _hoisted_1 = { class: "p-qrcode" };
|
|
6
7
|
var QrCode_vue_vue_type_script_setup_true_name_QR_CODE_lang_default = /* @__PURE__ */ defineComponent({
|
|
@@ -13,10 +14,87 @@ var QrCode_vue_vue_type_script_setup_true_name_QR_CODE_lang_default = /* @__PURE
|
|
|
13
14
|
type: {
|
|
14
15
|
type: Object,
|
|
15
16
|
default: () => ({ value: "QR_CODE" })
|
|
17
|
+
},
|
|
18
|
+
content: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => ({
|
|
21
|
+
type: "text",
|
|
22
|
+
val: "QR Code Text",
|
|
23
|
+
var: ""
|
|
24
|
+
})
|
|
25
|
+
},
|
|
26
|
+
rowHeight: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default: () => ({ val: 3 })
|
|
29
|
+
},
|
|
30
|
+
rows: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default: () => ({ val: null })
|
|
33
|
+
},
|
|
34
|
+
columns: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default: () => ({ val: null })
|
|
16
37
|
}
|
|
17
38
|
},
|
|
18
|
-
|
|
39
|
+
emits: ["qrcodeChange"],
|
|
40
|
+
setup(__props, { emit: __emit }) {
|
|
41
|
+
const props = __props;
|
|
42
|
+
const emit = __emit;
|
|
19
43
|
const style = ref();
|
|
44
|
+
const canvasRef = ref();
|
|
45
|
+
watch(() => [
|
|
46
|
+
props.type.value,
|
|
47
|
+
props.content.value,
|
|
48
|
+
props.rows.value,
|
|
49
|
+
props.columns.value,
|
|
50
|
+
props.rowHeight.value
|
|
51
|
+
], () => {
|
|
52
|
+
createQrcode();
|
|
53
|
+
});
|
|
54
|
+
onMounted(() => {
|
|
55
|
+
createQrcode();
|
|
56
|
+
});
|
|
57
|
+
async function createQrcode() {
|
|
58
|
+
if (props.type.value !== "PDF_417") return;
|
|
59
|
+
await nextTick();
|
|
60
|
+
const canvas = canvasRef.value;
|
|
61
|
+
if (!canvas) return;
|
|
62
|
+
const content = props.content.value || "PDF417 Text";
|
|
63
|
+
try {
|
|
64
|
+
bwipjs.toCanvas(canvas, {
|
|
65
|
+
bcid: "pdf417",
|
|
66
|
+
text: content,
|
|
67
|
+
scale: 1,
|
|
68
|
+
rowmult: props.rowHeight.value ?? 3,
|
|
69
|
+
rows: props.rows.value ?? 0,
|
|
70
|
+
columns: props.columns.value ?? 0,
|
|
71
|
+
eclevel: 4,
|
|
72
|
+
paddingwidth: 2,
|
|
73
|
+
paddingheight: 1
|
|
74
|
+
});
|
|
75
|
+
syncCanvasDisplaySize();
|
|
76
|
+
await nextTick();
|
|
77
|
+
notifySizeChange();
|
|
78
|
+
} catch (err) {
|
|
79
|
+
console.warn(err);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/** 按 canvas 实际像素尺寸展示,避免被旧容器拉伸 */
|
|
83
|
+
function syncCanvasDisplaySize() {
|
|
84
|
+
const canvas = canvasRef.value;
|
|
85
|
+
if (!canvas) return;
|
|
86
|
+
canvas.style.width = `${canvas.width}px`;
|
|
87
|
+
canvas.style.height = `${canvas.height}px`;
|
|
88
|
+
}
|
|
89
|
+
/** canvas 无 load 事件,绘制完成后主动同步外层元素尺寸 */
|
|
90
|
+
function notifySizeChange() {
|
|
91
|
+
const canvas = canvasRef.value;
|
|
92
|
+
if (!canvas) return;
|
|
93
|
+
emit("qrcodeChange", {
|
|
94
|
+
width: canvas.width,
|
|
95
|
+
height: canvas.height
|
|
96
|
+
});
|
|
97
|
+
}
|
|
20
98
|
return (_ctx, _cache) => {
|
|
21
99
|
return openBlock(), createElementBlock("div", _hoisted_1, [__props.type.value == "QR_CODE" ? (openBlock(), createElementBlock("img", {
|
|
22
100
|
key: 0,
|
|
@@ -24,13 +102,17 @@ var QrCode_vue_vue_type_script_setup_true_name_QR_CODE_lang_default = /* @__PURE
|
|
|
24
102
|
alt: "qrcode",
|
|
25
103
|
class: "p-img-element",
|
|
26
104
|
style: normalizeStyle(style.value)
|
|
27
|
-
}, null, 4)) : (openBlock(), createElementBlock("img", {
|
|
105
|
+
}, null, 4)) : __props.type.value == "GS1_DATA_MATRIX" ? (openBlock(), createElementBlock("img", {
|
|
28
106
|
key: 1,
|
|
29
107
|
src: gs1datamatrix_default,
|
|
30
108
|
alt: "gs1datamatrix",
|
|
31
109
|
class: "p-img-element",
|
|
32
110
|
style: normalizeStyle(style.value)
|
|
33
|
-
}, null, 4))
|
|
111
|
+
}, null, 4)) : createCommentVNode("", true), withDirectives(createElementVNode("canvas", {
|
|
112
|
+
ref_key: "canvasRef",
|
|
113
|
+
ref: canvasRef,
|
|
114
|
+
class: "p-pdf417-canvas"
|
|
115
|
+
}, null, 512), [[vShow, __props.type.value == "PDF_417"]])]);
|
|
34
116
|
};
|
|
35
117
|
}
|
|
36
118
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
.p-qrcode[data-v-2fb36afd] {
|
|
3
|
+
position: absolute;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
text-align: center;
|
|
6
|
+
}
|
|
7
|
+
.p-qrcode img[data-v-2fb36afd],
|
|
8
|
+
.p-pdf417-canvas[data-v-2fb36afd] {
|
|
9
|
+
display: block;
|
|
10
|
+
}
|
|
11
|
+
.p-qrcode img[data-v-2fb36afd] {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
-
import
|
|
4
|
-
import './Text.
|
|
3
|
+
import Text_vue_vue_type_script_setup_true_name_TEXT_lang_default from "./Text.vue_vue_type_script_setup_true_name_TEXT_lang.mjs";
|
|
4
|
+
import './Text.vue_vue_type_style_index_0_scoped_d9ace99f_lang.css';/* empty css */
|
|
5
5
|
//#region src/components/label-design/components/widgets/Text.vue
|
|
6
6
|
var Text_exports = /* @__PURE__ */ __exportAll({ default: () => Text_default });
|
|
7
|
-
var Text_default = /* @__PURE__ */ _plugin_vue_export_helper_default(
|
|
7
|
+
var Text_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Text_vue_vue_type_script_setup_true_name_TEXT_lang_default, [["__scopeId", "data-v-d9ace99f"]]);
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Text_exports };
|