@gct-paas/core-web 0.1.6-dev.1 → 0.1.6-dev.3
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-DlXSdlvD.js +1 -0
- package/dist/_plugin-vue_export-helper-59SbqtUR.js +1 -0
- package/dist/chunk-DPOkwzLC.js +1 -0
- package/dist/components-4-8OfvJi.js +1 -0
- package/dist/{cropper-DPh9NaIi.js → cropper-tw7tUDDe.js} +1 -1
- package/dist/{de_DE-BY1He8Sf.js → de_DE-BnwOalCV.js} +1 -1
- package/dist/defineProperty-Co6UJKQ3.js +1 -0
- package/dist/{en_US-CuX-vrWy.js → en_US-6Hw6WWah.js} +1 -1
- package/dist/{es_ES-BqHRjpc9.js → es_ES-tAqXFGrR.js} +1 -1
- package/dist/{fr_FR-C4TFcMTv.js → fr_FR-BkDgVS_P.js} +1 -1
- package/dist/icon-next-picker-B_S_yInJ.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-CgXnA74i.js → ja_JP-AsmV92nC.js} +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/monaco-editor-CgESUPw_.js +1 -0
- package/dist/{pt_PT-C0ALlHDr.js → pt_PT-CCVWOJzE.js} +1 -1
- package/dist/rich-editor-K2Pv0Uja.js +1 -0
- package/dist/{ru_RU-D39vUeFW.js → ru_RU-w4sUgbzL.js} +1 -1
- package/dist/template-Cf-wq8-9.js +1 -0
- package/dist/{tr_TR-Cm3P61iH.js → tr_TR-CGZch3eB.js} +1 -1
- package/dist/useMonacoEditor-BO2ALW-7.js +1 -0
- package/dist/{vi_VN-BZ_iPKuE.js → vi_VN-DONxIDR7.js} +1 -1
- package/dist/{zh_CN-DY_wA21D.js → zh_CN-BxdD8hqG.js} +1 -1
- package/dist/{zh_TW-A1Y7MG2g.js → zh_TW-D5Y8j-oG.js} +1 -1
- package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +4 -1
- package/es/components/I18nSelect/src/{i18n-select-btn.vue_vue_type_style_index_0_scoped_b86f4068_lang.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_ab917ea8_lang.css} +18 -13
- package/es/components/TreeEx/tree-ex.mjs +3 -0
- package/es/components/copy-module-key/copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs +3 -0
- package/es/components/field-tree-select/field-sort-popover.vue_vue_type_script_setup_true_lang.mjs +2 -0
- package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs +3 -0
- package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +6 -3
- package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_style_index_0_lang.css +3 -0
- package/es/components/index.mjs +1 -1
- package/es/components/label-design/components/rich-editor/index.d.ts +22 -1
- package/es/components/label-design/components/rich-editor/index.mjs +5 -1
- package/es/components/label-design/components/rich-editor/index.vue.d.ts +4 -4
- package/es/components/label-design/components/rich-editor/index.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/label-design/components/widgets/BarCode.vue.mjs +2 -2
- package/es/components/label-design/components/widgets/BarCode.vue_vue_type_script_setup_true_name_BAR_CODE_lang.mjs +28 -18
- package/es/components/label-design/components/widgets/{BarCode.vue_vue_type_style_index_0_scoped_492a6f00_lang.css → BarCode.vue_vue_type_style_index_0_scoped_abb7a450_lang.css} +3 -3
- package/es/components/label-design/index.mjs +1 -1
- package/es/components/label-design/modal/index.mjs +3 -3
- package/es/components/label-design/modal/rich-editor-modal.vue.d.ts +60 -0
- package/es/components/label-design/modal/rich-editor-modal.vue.mjs +2 -2
- package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_script_setup_true_lang.mjs +5 -6
- package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_style_index_0_scoped_8a4eda15_lang.css +3 -0
- package/es/components/label-design/panels/widget/components/label-params-select.vue_vue_type_script_setup_true_lang.mjs +7 -0
- package/es/components/label-design/panels/widget/controls/LabelParamsSelect.vue_vue_type_script_setup_true_name_label-params-select_lang.mjs +7 -0
- package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_script_setup_true_name_variable-select_lang.mjs +1 -1
- package/es/components/label-design/stage/stage.vue.mjs +2 -2
- package/es/components/label-design/stage/stage.vue_vue_type_script_setup_true_lang.mjs +3 -3
- package/es/components/label-design/stage/{stage.vue_vue_type_style_index_0_scoped_142d3d35_lang.css → stage.vue_vue_type_style_index_0_scoped_53b1f897_lang.css} +8 -8
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.mjs +16 -0
- package/es/index.mjs +2 -1
- package/es/modules/gct-dnd/constants/index.mjs +12 -0
- package/es/modules/global-modal/src/props.mjs +6 -0
- package/es/styles/index.css +94 -0
- package/es/utils/recursive.mjs +5 -1
- package/package.json +11 -7
- package/dist/_plugin-vue_export-helper-DUzSxwNW.js +0 -1
- package/dist/chunk-lEgNpoW5.js +0 -1
- package/dist/icon-next-picker-y8hJhkCi.js +0 -1
- package/dist/monaco-editor-g5z1cRaz.js +0 -1
- package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_style_index_0_scoped_8c23f0af_lang.css +0 -3
- /package/dist/{objectSpread2-Cr8AaZiL.js → objectSpread2-DxfE1S3_.js} +0 -0
- /package/dist/{overlayscrollbars-vue-B2LfyB-V.js → overlayscrollbars-vue-DtKFrHnA.js} +0 -0
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
.ant-btn[data-v-
|
|
1
|
+
.ant-btn[data-v-ab917ea8] {
|
|
2
2
|
background-color: #fff !important;
|
|
3
3
|
}
|
|
4
|
-
.ant-btn.ant-btn-icon-only[data-v-
|
|
4
|
+
.ant-btn.ant-btn-icon-only[data-v-ab917ea8] {
|
|
5
5
|
width: var(--btn-width, 32px);
|
|
6
6
|
height: var(--btn-height, 32px);
|
|
7
7
|
}
|
|
8
|
-
.ant-btn.ant-btn-icon-only.ant-btn-sm[data-v-
|
|
8
|
+
.ant-btn.ant-btn-icon-only.ant-btn-sm[data-v-ab917ea8] {
|
|
9
9
|
width: 28px;
|
|
10
10
|
height: 28px;
|
|
11
11
|
padding: 0 6px;
|
|
12
12
|
}
|
|
13
|
-
.ant-btn:hover .i18n-icon[data-v-
|
|
13
|
+
.ant-btn:hover .i18n-icon[data-v-ab917ea8] {
|
|
14
14
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
15
15
|
color: var(--ant-primary-color);
|
|
16
16
|
}
|
|
17
|
-
.ant-btn.is-highlight[data-v-
|
|
17
|
+
.ant-btn.is-highlight[data-v-ab917ea8] {
|
|
18
18
|
color: var(--ant-primary-color);
|
|
19
19
|
border-color: var(--ant-primary-color);
|
|
20
20
|
}
|
|
21
|
-
.ant-btn.is-highlight .i18n-icon[data-v-
|
|
21
|
+
.ant-btn.is-highlight .i18n-icon[data-v-ab917ea8] {
|
|
22
22
|
color: var(--ant-primary-color);
|
|
23
23
|
}
|
|
24
|
-
.i18n-
|
|
24
|
+
.i18n-select-btn__a-btn[data-v-ab917ea8] {
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
.i18n-icon[data-v-ab917ea8] {
|
|
25
30
|
color: #7f8695;
|
|
26
31
|
display: flex !important;
|
|
27
32
|
}
|
|
28
|
-
.simple-btn[data-v-
|
|
33
|
+
.simple-btn[data-v-ab917ea8]:hover {
|
|
29
34
|
color: var(--ant-primary-color);
|
|
30
35
|
}
|
|
31
|
-
.simple-btn.is-highlight[data-v-
|
|
36
|
+
.simple-btn.is-highlight[data-v-ab917ea8] {
|
|
32
37
|
color: var(--ant-primary-color);
|
|
33
38
|
}
|
|
34
|
-
.i18n-tooltip-title[data-v-
|
|
39
|
+
.i18n-tooltip-title[data-v-ab917ea8] {
|
|
35
40
|
color: #303133;
|
|
36
41
|
font-size: 16px;
|
|
37
42
|
line-height: 1;
|
|
38
43
|
margin-bottom: 12px;
|
|
39
44
|
}
|
|
40
|
-
.i18n-tooltip-item[data-v-
|
|
45
|
+
.i18n-tooltip-item[data-v-ab917ea8] {
|
|
41
46
|
color: #606266;
|
|
42
47
|
font-size: 14px;
|
|
43
48
|
}
|
|
44
|
-
.custom-i18n-btn[data-v-
|
|
49
|
+
.custom-i18n-btn[data-v-ab917ea8] {
|
|
45
50
|
vertical-align: middle;
|
|
46
51
|
background: #fff;
|
|
47
52
|
color: #303133;
|
|
@@ -52,7 +57,7 @@
|
|
|
52
57
|
align-items: center;
|
|
53
58
|
padding: 0;
|
|
54
59
|
}
|
|
55
|
-
.custom-i18n-btn.reg-i18n[data-v-
|
|
60
|
+
.custom-i18n-btn.reg-i18n[data-v-ab917ea8] {
|
|
56
61
|
position: absolute;
|
|
57
62
|
right: -32px;
|
|
58
63
|
bottom: 0;
|
|
@@ -38,14 +38,17 @@ var TreeEx = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
type: Boolean,
|
|
39
39
|
default: false
|
|
40
40
|
},
|
|
41
|
+
/** 最后一个选中的数据不能取消选中 */
|
|
41
42
|
lastSelectionLocked: {
|
|
42
43
|
type: Boolean,
|
|
43
44
|
default: false
|
|
44
45
|
},
|
|
46
|
+
/** 节点前出复选框 */
|
|
45
47
|
checkable: {
|
|
46
48
|
type: Boolean,
|
|
47
49
|
default: false
|
|
48
50
|
},
|
|
51
|
+
/** 节点复选框父子节点不关联 */
|
|
49
52
|
checkStrictly: {
|
|
50
53
|
type: Boolean,
|
|
51
54
|
default: false
|
|
@@ -17,11 +17,14 @@ var copy_module_key_vue_vue_type_script_setup_true_name_copy_module_key_lang_def
|
|
|
17
17
|
name: "CopyModuleKey",
|
|
18
18
|
__name: "copy-module-key",
|
|
19
19
|
props: {
|
|
20
|
+
/** 内容 */
|
|
20
21
|
moduleKey: {
|
|
21
22
|
type: String,
|
|
22
23
|
require: true
|
|
23
24
|
},
|
|
25
|
+
/** 是否显示tips */
|
|
24
26
|
isTooltip: Boolean,
|
|
27
|
+
/** 是否支持拷贝 */
|
|
25
28
|
supportCopy: {
|
|
26
29
|
type: Boolean,
|
|
27
30
|
default: true
|
package/es/components/field-tree-select/field-sort-popover.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -9,10 +9,12 @@ var _hoisted_3 = ["onClick"];
|
|
|
9
9
|
var field_sort_popover_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "field-sort-popover",
|
|
11
11
|
props: {
|
|
12
|
+
/**字段map */
|
|
12
13
|
fieldMap: {
|
|
13
14
|
type: Object,
|
|
14
15
|
default: () => ({})
|
|
15
16
|
},
|
|
17
|
+
/**多级表头数据 */
|
|
16
18
|
groupOptions: {
|
|
17
19
|
type: Array,
|
|
18
20
|
default: () => []
|
package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -19,10 +19,12 @@ var _hoisted_7 = { class: "popover-bottom" };
|
|
|
19
19
|
var field_tree_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
20
20
|
__name: "field-tree-select",
|
|
21
21
|
props: {
|
|
22
|
+
/**字段map */
|
|
22
23
|
fieldMap: {
|
|
23
24
|
type: Object,
|
|
24
25
|
default: () => ({})
|
|
25
26
|
},
|
|
27
|
+
/**多级表头数据 */
|
|
26
28
|
groupOptions: {
|
|
27
29
|
type: Array,
|
|
28
30
|
default: () => []
|
|
@@ -35,6 +37,7 @@ var field_tree_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE__
|
|
|
35
37
|
key: "key"
|
|
36
38
|
})
|
|
37
39
|
},
|
|
40
|
+
/**最大层级数,默认3层 */
|
|
38
41
|
maxLevel: {
|
|
39
42
|
type: Number,
|
|
40
43
|
default: 3
|
|
@@ -237,6 +237,7 @@ var icon_next_picker_vue_vue_type_script_setup_true_name_IconNextPicker_lang_def
|
|
|
237
237
|
return (_ctx, _cache) => {
|
|
238
238
|
const _component_a_input = resolveComponent("a-input");
|
|
239
239
|
const _component_a_tree = resolveComponent("a-tree");
|
|
240
|
+
const _component_OverlayScrollbarsComponent = resolveComponent("OverlayScrollbarsComponent");
|
|
240
241
|
const _component_overlayScrollbarsComponent = resolveComponent("overlayScrollbarsComponent");
|
|
241
242
|
const _component_CheckOutlined = resolveComponent("CheckOutlined");
|
|
242
243
|
const _component_a_empty = resolveComponent("a-empty");
|
|
@@ -262,9 +263,10 @@ var icon_next_picker_vue_vue_type_script_setup_true_name_IconNextPicker_lang_def
|
|
|
262
263
|
prefix: withCtx(() => [..._cache[6] || (_cache[6] = [createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)])]),
|
|
263
264
|
_: 1
|
|
264
265
|
}, 8, ["value"])]), createVNode(_component_a_spin, { spinning: spinning.value }, {
|
|
265
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [createVNode(
|
|
266
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [createVNode(_component_OverlayScrollbarsComponent, {
|
|
266
267
|
ref_key: "TreeScrollRef",
|
|
267
|
-
ref: TreeScrollRef
|
|
268
|
+
ref: TreeScrollRef,
|
|
269
|
+
class: "icon-picker-next__scrollbar"
|
|
268
270
|
}, {
|
|
269
271
|
default: withCtx(() => [catTree.value.length > 0 ? (openBlock(), createBlock(_component_a_tree, {
|
|
270
272
|
key: 0,
|
|
@@ -290,7 +292,8 @@ var icon_next_picker_vue_vue_type_script_setup_true_name_IconNextPicker_lang_def
|
|
|
290
292
|
}, 512)]), createElementVNode("div", _hoisted_6, [catIcons.value?.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
291
293
|
createElementVNode("div", _hoisted_7, [createVNode(_component_overlayScrollbarsComponent, {
|
|
292
294
|
ref_key: "IconsScrollRef",
|
|
293
|
-
ref: IconsScrollRef
|
|
295
|
+
ref: IconsScrollRef,
|
|
296
|
+
class: "icon-picker-next__scrollbar"
|
|
294
297
|
}, {
|
|
295
298
|
default: withCtx(() => [createElementVNode("ul", _hoisted_8, [(openBlock(true), createElementBlock(Fragment, null, renderList(catIcons.value, (icon) => {
|
|
296
299
|
return openBlock(), createElementBlock("li", {
|
package/es/components/index.mjs
CHANGED
|
@@ -12,8 +12,8 @@ import "./vue3-grid-dnd-item/vue3-grid-dnd-item.mjs";
|
|
|
12
12
|
import "./field-cascader/src/FieldCascader.vue.mjs";
|
|
13
13
|
import "./field-cascader/index.mjs";
|
|
14
14
|
import "./label-design/stage/stage-view.vue.mjs";
|
|
15
|
-
import "./label-design/identify-config.mjs";
|
|
16
15
|
import "./label-design/modal/index.mjs";
|
|
16
|
+
import "./label-design/identify-config.mjs";
|
|
17
17
|
import "./label-design/index.mjs";
|
|
18
18
|
import "./UserPick/src/constants/index.mjs";
|
|
19
19
|
import "./UserPick/index.mjs";
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
declare const RichEditor: import('vue').DefineComponent<{
|
|
2
|
+
content: string;
|
|
3
|
+
}, {
|
|
4
|
+
getText: () => any;
|
|
5
|
+
getContent: () => any;
|
|
6
|
+
setHtml: (node: string) => any;
|
|
7
|
+
dangerouslyInsertHtml: (node: string) => any;
|
|
8
|
+
restoreSelection: () => any;
|
|
9
|
+
isFocused: () => any;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
blur: (...args: any[]) => void;
|
|
12
|
+
change: (...args: any[]) => void;
|
|
13
|
+
created: (...args: any[]) => void;
|
|
14
|
+
focus: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
16
|
+
content: string;
|
|
17
|
+
}> & Readonly<{
|
|
18
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
onCreated?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2
23
|
export { RichEditor };
|
|
3
24
|
export default RichEditor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
content: string;
|
|
3
|
-
}
|
|
4
|
-
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
5
5
|
getText: () => any;
|
|
6
6
|
getContent: () => any;
|
|
7
7
|
setHtml: (node: string) => any;
|
|
@@ -13,7 +13,7 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
13
13
|
change: (...args: any[]) => void;
|
|
14
14
|
created: (...args: any[]) => void;
|
|
15
15
|
focus: (...args: any[]) => void;
|
|
16
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
17
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
18
18
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
onCreated?: ((...args: any[]) => any) | undefined;
|
|
@@ -151,13 +151,13 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
151
151
|
] }
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
|
-
const
|
|
154
|
+
const defProps = __props;
|
|
155
155
|
const emit = __emit;
|
|
156
156
|
const editorRef = shallowRef();
|
|
157
157
|
const valueHtml = ref("");
|
|
158
158
|
onMounted(() => {
|
|
159
159
|
setTimeout(() => {
|
|
160
|
-
valueHtml.value =
|
|
160
|
+
valueHtml.value = defProps.content;
|
|
161
161
|
}, 500);
|
|
162
162
|
});
|
|
163
163
|
onBeforeUnmount(() => {
|
|
@@ -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 BarCode_vue_vue_type_script_setup_true_name_BAR_CODE_lang_default from "./BarCode.vue_vue_type_script_setup_true_name_BAR_CODE_lang.mjs";
|
|
4
|
-
import './BarCode.
|
|
4
|
+
import './BarCode.vue_vue_type_style_index_0_scoped_abb7a450_lang.css';/* empty css */
|
|
5
5
|
//#region src/components/label-design/components/widgets/BarCode.vue
|
|
6
6
|
var BarCode_exports = /* @__PURE__ */ __exportAll({ default: () => BarCode_default });
|
|
7
|
-
var BarCode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(BarCode_vue_vue_type_script_setup_true_name_BAR_CODE_lang_default, [["__scopeId", "data-v-
|
|
7
|
+
var BarCode_default = /* @__PURE__ */ _plugin_vue_export_helper_default(BarCode_vue_vue_type_script_setup_true_name_BAR_CODE_lang_default, [["__scopeId", "data-v-abb7a450"]]);
|
|
8
8
|
//#endregion
|
|
9
9
|
export { BarCode_exports };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { computed, createElementBlock, createElementVNode, defineComponent, nextTick, onMounted, openBlock, ref, vShow, watch, withDirectives } from "vue";
|
|
2
|
-
import jsbarcode from "jsbarcode";
|
|
3
|
-
import bwipjs from "bwip-js";
|
|
4
2
|
//#region src/components/label-design/components/widgets/BarCode.vue?vue&type=script&setup=true&name=BAR_CODE&lang.ts
|
|
5
3
|
var _hoisted_1 = ["id"];
|
|
6
4
|
var BarCode_vue_vue_type_script_setup_true_name_BAR_CODE_lang_default = /* @__PURE__ */ defineComponent({
|
|
@@ -68,22 +66,34 @@ var BarCode_vue_vue_type_script_setup_true_name_BAR_CODE_lang_default = /* @__PU
|
|
|
68
66
|
async function createBarcode() {
|
|
69
67
|
await nextTick();
|
|
70
68
|
const content = props.content.value || " ";
|
|
71
|
-
if (props.type.value !== "GS1_128")
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
69
|
+
if (props.type.value !== "GS1_128") {
|
|
70
|
+
const barcodeID = `#barcode_${id.value}`;
|
|
71
|
+
const module = await import("jsbarcode");
|
|
72
|
+
if (!module) {
|
|
73
|
+
console.warn("Failed to load jsbarcode module");
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
(module.default || module)(barcodeID, content, {
|
|
77
|
+
format: codeTpeMap[props.type.value],
|
|
78
|
+
margin: 3,
|
|
79
|
+
width: props.dot.value,
|
|
80
|
+
height: props.height,
|
|
81
|
+
displayValue: props.showText.value === true,
|
|
82
|
+
textAlign: "center",
|
|
83
|
+
textMargin: 0,
|
|
84
|
+
background: "#FFFFFF",
|
|
85
|
+
font: "Arial",
|
|
86
|
+
fontOptions: "",
|
|
87
|
+
fontSize: 16,
|
|
88
|
+
lineColor: "#000000"
|
|
89
|
+
});
|
|
90
|
+
} else try {
|
|
91
|
+
const module = await import("bwip-js");
|
|
92
|
+
if (!module) {
|
|
93
|
+
console.warn("Failed to load bwip-js module");
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
(module.default || module).toCanvas(canvasRef.value, {
|
|
87
97
|
bcid: codeTpeMap[props.type.value],
|
|
88
98
|
text: content,
|
|
89
99
|
scale: props.dot.value,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
.p-barcode[data-v-
|
|
2
|
+
.p-barcode[data-v-abb7a450] {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
|
|
6
6
|
/* overflow: hidden; */
|
|
7
7
|
}
|
|
8
|
-
.p-barcode img[data-v-
|
|
8
|
+
.p-barcode img[data-v-abb7a450] {
|
|
9
9
|
/* height: auto; */
|
|
10
10
|
flex: 1;
|
|
11
11
|
width: 100%;
|
|
12
12
|
}
|
|
13
|
-
p[data-v-
|
|
13
|
+
p[data-v-abb7a450] {
|
|
14
14
|
margin: 0;
|
|
15
15
|
|
|
16
16
|
/* flex: 1; */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createVNode, render } from "vue";
|
|
1
|
+
import { createVNode, defineAsyncComponent, render } from "vue";
|
|
3
2
|
import { OverlayContainer } from "@gct-paas/core";
|
|
4
3
|
//#region src/components/label-design/modal/index.ts
|
|
4
|
+
var ModalTemplate = defineAsyncComponent(() => import("./template.vue.mjs"));
|
|
5
5
|
var instance = null;
|
|
6
6
|
function useModalPicker() {
|
|
7
7
|
const container = document.createElement("div");
|
|
8
8
|
async function readyModal() {
|
|
9
|
-
const vm = createVNode(
|
|
9
|
+
const vm = createVNode(ModalTemplate, { destroyVm: () => {
|
|
10
10
|
setTimeout(() => {
|
|
11
11
|
render(null, container);
|
|
12
12
|
instance = null;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
value: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:value": (value?: string | undefined) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
value: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{
|
|
14
|
+
"onUpdate:value"?: ((value?: string | undefined) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
value: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
18
|
+
richEditorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
19
|
+
content: string;
|
|
20
|
+
}> & Readonly<{
|
|
21
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
onCreated?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
getText: () => any;
|
|
27
|
+
getContent: () => any;
|
|
28
|
+
setHtml: (node: string) => any;
|
|
29
|
+
dangerouslyInsertHtml: (node: string) => any;
|
|
30
|
+
restoreSelection: () => any;
|
|
31
|
+
isFocused: () => any;
|
|
32
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
blur: (...args: any[]) => void;
|
|
34
|
+
change: (...args: any[]) => void;
|
|
35
|
+
created: (...args: any[]) => void;
|
|
36
|
+
focus: (...args: any[]) => void;
|
|
37
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
38
|
+
P: {};
|
|
39
|
+
B: {};
|
|
40
|
+
D: {};
|
|
41
|
+
C: {};
|
|
42
|
+
M: {};
|
|
43
|
+
Defaults: {};
|
|
44
|
+
}, Readonly<{
|
|
45
|
+
content: string;
|
|
46
|
+
}> & Readonly<{
|
|
47
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
onCreated?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
getText: () => any;
|
|
53
|
+
getContent: () => any;
|
|
54
|
+
setHtml: (node: string) => any;
|
|
55
|
+
dangerouslyInsertHtml: (node: string) => any;
|
|
56
|
+
restoreSelection: () => any;
|
|
57
|
+
isFocused: () => any;
|
|
58
|
+
}, {}, {}, {}, {}> | null;
|
|
59
|
+
}, HTMLDivElement>;
|
|
60
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import rich_editor_modal_vue_vue_type_script_setup_true_lang_default from "./rich-editor-modal.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './rich-editor-modal.
|
|
3
|
+
import './rich-editor-modal.vue_vue_type_style_index_0_scoped_8a4eda15_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/label-design/modal/rich-editor-modal.vue
|
|
5
|
-
var rich_editor_modal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(rich_editor_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var rich_editor_modal_default = /* @__PURE__ */ _plugin_vue_export_helper_default(rich_editor_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8a4eda15"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { rich_editor_modal_default as default };
|
package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../components/rich-editor/index.mjs";
|
|
1
|
+
import RichEditor from "../components/rich-editor/index.mjs";
|
|
3
2
|
import { createElementBlock, createVNode, defineComponent, onMounted, openBlock, ref, unref } from "vue";
|
|
4
3
|
//#region src/components/label-design/modal/rich-editor-modal.vue?vue&type=script&setup=true&lang.ts
|
|
5
4
|
var _hoisted_1 = { class: "rich-editor-modal" };
|
|
@@ -13,13 +12,13 @@ var rich_editor_modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__
|
|
|
13
12
|
setup(__props, { emit: __emit }) {
|
|
14
13
|
const richEditorRef = ref(null);
|
|
15
14
|
const contentVal = ref("");
|
|
16
|
-
const
|
|
15
|
+
const defProps = __props;
|
|
17
16
|
const emit = __emit;
|
|
18
17
|
onMounted(() => {
|
|
19
|
-
if (!contentVal.value) contentVal.value =
|
|
18
|
+
if (!contentVal.value) contentVal.value = defProps.value;
|
|
20
19
|
});
|
|
21
20
|
const editorCreated = () => {
|
|
22
|
-
const text = contentVal.value ||
|
|
21
|
+
const text = contentVal.value || defProps.value;
|
|
23
22
|
richEditorRef.value?.setHtml(text);
|
|
24
23
|
};
|
|
25
24
|
const handleEmailChange = (val) => {
|
|
@@ -27,7 +26,7 @@ var rich_editor_modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__
|
|
|
27
26
|
emit("update:value", val);
|
|
28
27
|
};
|
|
29
28
|
return (_ctx, _cache) => {
|
|
30
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(
|
|
29
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(RichEditor), {
|
|
31
30
|
ref_key: "richEditorRef",
|
|
32
31
|
ref: richEditorRef,
|
|
33
32
|
content: contentVal.value,
|
|
@@ -19,10 +19,17 @@ var label_params_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE
|
|
|
19
19
|
emit("change", val, paramsData.value.find((item) => item.value === val));
|
|
20
20
|
}
|
|
21
21
|
__expose({
|
|
22
|
+
/**
|
|
23
|
+
* 获取选项数据(如果为空则重新加载)
|
|
24
|
+
*/
|
|
22
25
|
getOptions: async () => {
|
|
23
26
|
if (!paramsData.value.length) return await getParamsList();
|
|
24
27
|
return paramsData.value;
|
|
25
28
|
},
|
|
29
|
+
/**
|
|
30
|
+
* 直接获取 paramsData 的当前值
|
|
31
|
+
* @returns 标签参数模型的数据数组
|
|
32
|
+
*/
|
|
26
33
|
getParamsData: () => paramsData.value
|
|
27
34
|
});
|
|
28
35
|
return (_ctx, _cache) => {
|
|
@@ -27,10 +27,17 @@ var LabelParamsSelect_vue_vue_type_script_setup_true_name_label_params_select_la
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
__expose({
|
|
30
|
+
/**
|
|
31
|
+
* 获取选项数据(如果为空则重新加载)
|
|
32
|
+
*/
|
|
30
33
|
getOptions: async () => {
|
|
31
34
|
if (!paramsData.value.length) return await getParamsList();
|
|
32
35
|
return paramsData.value;
|
|
33
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* 直接获取 paramsData 的当前值
|
|
39
|
+
* @returns 标签参数模型的数据数组
|
|
40
|
+
*/
|
|
34
41
|
getParamsData: () => paramsData.value
|
|
35
42
|
});
|
|
36
43
|
return (_ctx, _cache) => {
|
|
@@ -4,8 +4,8 @@ import FieldCascader_default from "../../../../field-cascader/src/FieldCascader.
|
|
|
4
4
|
import { CONTENT_TYPE } from "../../../constants/CommonPrintElems.mjs";
|
|
5
5
|
import { usePage } from "../../../hooks/usePage.mjs";
|
|
6
6
|
import { identify } from "../../../identify-config.mjs";
|
|
7
|
-
import label_params_select_default from "../components/label-params-select.vue.mjs";
|
|
8
7
|
import "../../../../index.mjs";
|
|
8
|
+
import label_params_select_default from "../components/label-params-select.vue.mjs";
|
|
9
9
|
import { computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
10
10
|
import { ExpressionModeEnum, ExpressionTabEnum, FIELD_TYPE, t } from "@gct-paas/core";
|
|
11
11
|
//#region src/components/label-design/panels/widget/controls/VariableSelect.vue?vue&type=script&setup=true&name=variable-select&lang.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import stage_vue_vue_type_script_setup_true_lang_default from "./stage.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './stage.
|
|
3
|
+
import './stage.vue_vue_type_style_index_0_scoped_53b1f897_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/label-design/stage/stage.vue
|
|
5
|
-
var stage_default = /* @__PURE__ */ _plugin_vue_export_helper_default(stage_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var stage_default = /* @__PURE__ */ _plugin_vue_export_helper_default(stage_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-53b1f897"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { stage_default as default };
|
|
@@ -19,7 +19,7 @@ var stage_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
19
19
|
readonly: { type: Boolean }
|
|
20
20
|
},
|
|
21
21
|
setup(__props) {
|
|
22
|
-
const
|
|
22
|
+
const defProps = __props;
|
|
23
23
|
const sketchRuleRef = ref();
|
|
24
24
|
const count = ref(0);
|
|
25
25
|
const container = ref();
|
|
@@ -139,8 +139,8 @@ var stage_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
139
139
|
async function init(id) {
|
|
140
140
|
project.value = await loadLabelInfo(id);
|
|
141
141
|
}
|
|
142
|
-
if (!
|
|
143
|
-
watch(() =>
|
|
142
|
+
if (!defProps.readonly) init();
|
|
143
|
+
watch(() => defProps.id, (id) => {
|
|
144
144
|
init(id);
|
|
145
145
|
}, { immediate: true });
|
|
146
146
|
return (_ctx, _cache) => {
|
|
@@ -62,33 +62,33 @@
|
|
|
62
62
|
* }
|
|
63
63
|
*/
|
|
64
64
|
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
-
.designer-stage[data-v-
|
|
65
|
+
.designer-stage[data-v-53b1f897] {
|
|
66
66
|
display: flex;
|
|
67
67
|
background-color: #fff;
|
|
68
68
|
}
|
|
69
|
-
.designer-state-canvas[data-v-
|
|
69
|
+
.designer-state-canvas[data-v-53b1f897] {
|
|
70
70
|
display: flex;
|
|
71
71
|
flex-direction: column;
|
|
72
72
|
flex-grow: 1;
|
|
73
73
|
width: 100%;
|
|
74
74
|
}
|
|
75
|
-
.designer-stage-header[data-v-
|
|
75
|
+
.designer-stage-header[data-v-53b1f897] {
|
|
76
76
|
flex-shrink: 0;
|
|
77
77
|
height: 42px;
|
|
78
78
|
}
|
|
79
|
-
.designer-canvas[data-v-
|
|
79
|
+
.designer-canvas[data-v-53b1f897] {
|
|
80
80
|
position: relative;
|
|
81
81
|
flex-grow: 1;
|
|
82
82
|
background-color: #f2f4f7;
|
|
83
83
|
}
|
|
84
|
-
.designer-canvas[data-v-
|
|
84
|
+
.designer-canvas[data-v-53b1f897] .sketch-ruler {
|
|
85
85
|
width: 100%;
|
|
86
86
|
}
|
|
87
|
-
.designer-canvas[data-v-
|
|
88
|
-
.designer-canvas[data-v-
|
|
87
|
+
.designer-canvas[data-v-53b1f897] .sketch-ruler > .defaultCursor,
|
|
88
|
+
.designer-canvas[data-v-53b1f897] .sketch-ruler > .grabCursor {
|
|
89
89
|
background-color: #f2f4f7 !important;
|
|
90
90
|
}
|
|
91
|
-
.designer-panel[data-v-
|
|
91
|
+
.designer-panel[data-v-53b1f897] {
|
|
92
92
|
flex-shrink: 0;
|
|
93
93
|
width: 248px;
|
|
94
94
|
border-left: 1px solid #eaeaea;
|