alit-layout 1.1.37 → 1.1.38

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.
Files changed (2) hide show
  1. package/dist/index.es.js +15 -12
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -3772,8 +3772,20 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3772
3772
  xColOffset: 0
3773
3773
  } : null;
3774
3774
  }, ms = (e) => {
3775
- let t = pe(Q(he($.en_code, e.pageDom[0])), Q(e.pageDom[0]));
3776
- return ce(t);
3775
+ const t = he($.en_code, e.pageDom[0]);
3776
+ if (!t)
3777
+ return null;
3778
+ let o = pe(Q(t), Q(e.pageDom[0]));
3779
+ return {
3780
+ // 条形码虚线框位置, x, y, width, height
3781
+ // encodePictureArea: ComputPoint(GetPosition(GetEl(GpsKey.en_code, config.pageDom[0]), config.pageDom[0])),
3782
+ encodePictureArea: ce(o),
3783
+ // ComputPoint(GetPosition(GetEl(GpsKey.en_code, config.pageDom[0]), config.pageDom[0])),
3784
+ // 固定值
3785
+ qrCodePosition: null,
3786
+ // 条形码或二维码,不确定,固定此值
3787
+ pictureType: "TYPE_NONE"
3788
+ };
3777
3789
  }, ys = (e) => {
3778
3790
  const t = he($.write_view, e.pageDom[0]);
3779
3791
  if (!t)
@@ -4168,16 +4180,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4168
4180
  pictureType: "TYPE_QRCODE"
4169
4181
  },
4170
4182
  // 条码式考号
4171
- studentID: {
4172
- // 条形码虚线框位置, x, y, width, height
4173
- // encodePictureArea: ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
4174
- encodePictureArea: ms(e),
4175
- // ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
4176
- // 固定值
4177
- qrCodePosition: null,
4178
- // 条形码或二维码,不确定,固定此值
4179
- pictureType: "TYPE_NONE"
4180
- },
4183
+ studentID: ms(e),
4181
4184
  // 表示一个正确ID号的位数,暂未使用,固定此值
4182
4185
  idLength: 12,
4183
4186
  // 用来表示老师布置题的标识,固定值
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alit-layout",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "main": "dist/index.es.js",
5
5
  "module": "dist/index.es.js",
6
6
  "devDependencies": {