template-designer 0.12.0 → 0.12.1

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.
@@ -1,6 +1,6 @@
1
- import { R as e } from "./index-f2e08cd2.mjs";
1
+ import { R as l } from "./index-9712de63.mjs";
2
2
  import "vue";
3
- const a = {
3
+ const t = {
4
4
  text: {
5
5
  // 组件默认宽度 单位mm
6
6
  width: 20,
@@ -87,7 +87,7 @@ const a = {
87
87
  prop: "rotation",
88
88
  label: "旋转角度",
89
89
  type: "select",
90
- options: e,
90
+ options: l,
91
91
  default: 0,
92
92
  layout: "half"
93
93
  }
@@ -124,7 +124,7 @@ const a = {
124
124
  prop: "rotation",
125
125
  label: "旋转角度",
126
126
  type: "select",
127
- options: e,
127
+ options: l,
128
128
  default: 0,
129
129
  layout: "half"
130
130
  }
@@ -158,8 +158,76 @@ const a = {
158
158
  default: "FB-1234567890"
159
159
  }
160
160
  ]
161
+ },
162
+ image: {
163
+ width: 12,
164
+ height: 12,
165
+ rotation: 0,
166
+ lockAspectRatio: !1,
167
+ // 是否锁定宽高比
168
+ allowRotation: !1,
169
+ // 是否允许旋转
170
+ desc: "",
171
+ propertyPanel: [
172
+ { prop: "ImageSrc", label: "图片地址", type: "file", accept: "image/*", default: "" }
173
+ ]
174
+ },
175
+ line: {
176
+ width: 15,
177
+ height: 0.5,
178
+ // 等于默认线宽值
179
+ rotation: 0,
180
+ lockAspectRatio: !1,
181
+ // 是否锁定宽高比
182
+ allowRotation: !1,
183
+ // 是否允许旋转
184
+ // 端点坐标参数(自动计算,不显示在属性面板中)
185
+ x1: 0,
186
+ y1: 0,
187
+ x2: 15,
188
+ y2: 0,
189
+ desc: "",
190
+ propertyPanel: [
191
+ {
192
+ prop: "LineWidth",
193
+ type: "select",
194
+ label: "线宽",
195
+ default: "0.5",
196
+ options: [
197
+ { label: "默认", value: "0.5" },
198
+ { label: "1px", value: "1" },
199
+ { label: "2px", value: "2" },
200
+ { label: "3px", value: "3" },
201
+ { label: "4px", value: "4" },
202
+ { label: "5px", value: "5" },
203
+ { label: "6px", value: "6" },
204
+ { label: "7px", value: "7" },
205
+ { label: "8px", value: "8" },
206
+ { label: "9px", value: "9" },
207
+ { label: "10px", value: "10" }
208
+ ]
209
+ },
210
+ {
211
+ prop: "LineStyle",
212
+ type: "select",
213
+ label: "样式",
214
+ default: 1,
215
+ options: [
216
+ { label: "实线", value: 1 },
217
+ { label: "虚线", value: 2 }
218
+ ]
219
+ },
220
+ {
221
+ prop: "rotation",
222
+ label: "旋转角度",
223
+ type: "select",
224
+ options: l,
225
+ default: 0,
226
+ layout: "half"
227
+ }
228
+ ]
161
229
  }
162
230
  };
163
231
  export {
164
- a as default
232
+ t as default
165
233
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "template-designer",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "模板拖拽设计器组件库",
5
5
  "main": "dist/template-designer.umd.js",
6
6
  "module": "dist/template-designer.esm.js",