template-designer 0.11.8 → 0.12.0
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/{index-51b4667e.mjs → index-f2e08cd2.mjs} +5 -5
- package/dist/{index.es-613a7ce5.mjs → index.es-927e6fcc.mjs} +1 -1
- package/dist/{lodop-7f3a2ffe.mjs → lodop-2766eb6d.mjs} +12 -12
- package/dist/{rfid-0aaac8fd.mjs → rfid-53c1142f.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/template-designer.es.js +1 -1
- package/dist/template-designer.umd.js +33 -33
- package/dist/wxapp-0ea3b482.mjs +165 -0
- package/package.json +4 -3
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { R as e } from "./index-f2e08cd2.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
const a = {
|
|
4
|
+
text: {
|
|
5
|
+
// 组件默认宽度 单位mm
|
|
6
|
+
width: 20,
|
|
7
|
+
// 组件默认高度 单位mm
|
|
8
|
+
height: 2.2,
|
|
9
|
+
// 旋转角度
|
|
10
|
+
rotation: 0,
|
|
11
|
+
// 锁定宽高比
|
|
12
|
+
lockAspectRatio: !1,
|
|
13
|
+
// 是否允许旋转 暂时隐藏自由旋转 改为下面属性控制指定角度
|
|
14
|
+
allowRotation: !1,
|
|
15
|
+
// 组件说明
|
|
16
|
+
desc: "",
|
|
17
|
+
propertyPanel: [
|
|
18
|
+
{
|
|
19
|
+
prop: "Title",
|
|
20
|
+
label: "标题",
|
|
21
|
+
default: "",
|
|
22
|
+
layout: "full",
|
|
23
|
+
// 独占一行
|
|
24
|
+
desc: "用于文本开头固定文案的打印,不需要则不填。示例:如果填写“价格:”,则打印时内容为“价格:【字段对应值】”"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
prop: "FieldName",
|
|
28
|
+
label: "字段名称",
|
|
29
|
+
type: "select",
|
|
30
|
+
multiple: !0,
|
|
31
|
+
// 启用多选 如果选中多个则是数组,选中一个则是字符串
|
|
32
|
+
optionsKey: "fields",
|
|
33
|
+
default: "",
|
|
34
|
+
layout: "full"
|
|
35
|
+
// 独占一行
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
prop: "FieldConnector",
|
|
39
|
+
label: "字段连接符",
|
|
40
|
+
type: "text",
|
|
41
|
+
default: "",
|
|
42
|
+
layout: "half",
|
|
43
|
+
desc: "当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
prop: "EndMark",
|
|
47
|
+
label: "结束符",
|
|
48
|
+
default: "",
|
|
49
|
+
layout: "half",
|
|
50
|
+
desc: '用于文本结尾固定文案的打印,不需要则不填。示例:如果填写"元",则打印时内容为"【字段对应值】元"'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
prop: "Text",
|
|
54
|
+
label: "测试数据(仅展示使用,无实际意义)",
|
|
55
|
+
default: "测试文本",
|
|
56
|
+
layout: "full"
|
|
57
|
+
// 独占一行
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
prop: "TemplateDisplay",
|
|
61
|
+
label: "模板显示",
|
|
62
|
+
type: "select",
|
|
63
|
+
options: [
|
|
64
|
+
{ label: "测试数据", value: "text" },
|
|
65
|
+
{ label: "字段名称", value: "fieldName" }
|
|
66
|
+
],
|
|
67
|
+
default: "text",
|
|
68
|
+
// 默认显示测试数据
|
|
69
|
+
layout: "half",
|
|
70
|
+
desc: "控制模板中显示的内容:字段名称显示字段名,测试数据显示测试值,仅用于模板展示,不会影响实际打印"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
prop: "FontSize",
|
|
74
|
+
label: "字体大小",
|
|
75
|
+
type: "select",
|
|
76
|
+
options: [
|
|
77
|
+
{ label: "小四号", value: "TSS16.BF2" },
|
|
78
|
+
{ label: "四号", value: "TSS20.BF2" },
|
|
79
|
+
{ label: "三号", value: "TSS24.BF2" },
|
|
80
|
+
{ label: "一号", value: "TSS32.BF2" }
|
|
81
|
+
],
|
|
82
|
+
default: "TSS16.BF2",
|
|
83
|
+
layout: "half"
|
|
84
|
+
// 占半行
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
prop: "rotation",
|
|
88
|
+
label: "旋转角度",
|
|
89
|
+
type: "select",
|
|
90
|
+
options: e,
|
|
91
|
+
default: 0,
|
|
92
|
+
layout: "half"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
barcode: {
|
|
97
|
+
// 组件默认宽度 单位mm
|
|
98
|
+
width: 20,
|
|
99
|
+
// 组件默认高度 单位mm
|
|
100
|
+
height: 6,
|
|
101
|
+
// 旋转角度
|
|
102
|
+
rotation: 0,
|
|
103
|
+
// 锁定宽高比
|
|
104
|
+
lockAspectRatio: !1,
|
|
105
|
+
// 是否允许旋转
|
|
106
|
+
allowRotation: !1,
|
|
107
|
+
desc: "注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",
|
|
108
|
+
propertyPanel: [
|
|
109
|
+
{
|
|
110
|
+
prop: "FieldName",
|
|
111
|
+
label: "字段名称",
|
|
112
|
+
type: "select",
|
|
113
|
+
optionsKey: "fields",
|
|
114
|
+
default: "",
|
|
115
|
+
layout: "full"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
prop: "BarcodeValue",
|
|
119
|
+
label: "测试数据(展示使用,无实际意义)",
|
|
120
|
+
type: "text",
|
|
121
|
+
default: "1234567890"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
prop: "rotation",
|
|
125
|
+
label: "旋转角度",
|
|
126
|
+
type: "select",
|
|
127
|
+
options: e,
|
|
128
|
+
default: 0,
|
|
129
|
+
layout: "half"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
qrcode: {
|
|
134
|
+
// 组件默认宽度 单位mm
|
|
135
|
+
width: 10,
|
|
136
|
+
// 组件默认高度 单位mm
|
|
137
|
+
height: 10,
|
|
138
|
+
// 旋转角度
|
|
139
|
+
rotation: 0,
|
|
140
|
+
// 锁定宽高比
|
|
141
|
+
lockAspectRatio: !0,
|
|
142
|
+
// 是否允许旋转
|
|
143
|
+
allowRotation: !1,
|
|
144
|
+
desc: "",
|
|
145
|
+
propertyPanel: [
|
|
146
|
+
{
|
|
147
|
+
prop: "FieldName",
|
|
148
|
+
label: "字段名称",
|
|
149
|
+
type: "select",
|
|
150
|
+
optionsKey: "fields",
|
|
151
|
+
default: "",
|
|
152
|
+
layout: "full"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
prop: "QRCodeValue",
|
|
156
|
+
label: "测试数据(展示使用,无实际意义)",
|
|
157
|
+
type: "text",
|
|
158
|
+
default: "FB-1234567890"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
export {
|
|
164
|
+
a as default
|
|
165
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "template-designer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "模板拖拽设计器组件库",
|
|
5
5
|
"main": "dist/template-designer.umd.js",
|
|
6
6
|
"module": "dist/template-designer.esm.js",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"vite": "^4.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
+
"jspdf": "^2.5.2",
|
|
36
37
|
"qrcode": "^1.5.4",
|
|
37
|
-
"
|
|
38
|
+
"template-designer": "^0.11.9"
|
|
38
39
|
}
|
|
39
|
-
}
|
|
40
|
+
}
|