szld-libs 0.4.42 → 0.4.43

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.
@@ -300,7 +300,7 @@ function useDynamicForm(props) {
300
300
  formListField,
301
301
  isShowLabel = true
302
302
  }) => {
303
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
303
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
304
304
  const hidden = (_a = itemWithJson.json) == null ? void 0 : _a.hidden;
305
305
  if (((_b = itemWithJson.json) == null ? void 0 : _b.hide) === true) {
306
306
  return /* @__PURE__ */ jsx(Fragment$1, {});
@@ -337,8 +337,12 @@ function useDynamicForm(props) {
337
337
  extra: /* @__PURE__ */ jsx(
338
338
  "span",
339
339
  {
340
- style: { marginTop: 10, display: "inline-block", color: (_g = (_f = itemWithJson.json) == null ? void 0 : _f.extraDescObj) == null ? void 0 : _g.color },
341
- children: (_i = (_h = itemWithJson.json) == null ? void 0 : _h.extraDescObj) == null ? void 0 : _i.info
340
+ style: {
341
+ marginTop: ((_g = (_f = itemWithJson.json) == null ? void 0 : _f.extraDescObj) == null ? void 0 : _g.info) ? 10 : 0,
342
+ display: "inline-block",
343
+ color: (_i = (_h = itemWithJson.json) == null ? void 0 : _h.extraDescObj) == null ? void 0 : _i.color
344
+ },
345
+ children: (_k = (_j = itemWithJson.json) == null ? void 0 : _j.extraDescObj) == null ? void 0 : _k.info
342
346
  }
343
347
  ),
344
348
  children: /* @__PURE__ */ jsx(Space.Compact, { children: combinations.map((item, index) => {
@@ -406,18 +410,28 @@ function useDynamicForm(props) {
406
410
  label: isShowLabel && handleDealInstruction(itemWithJson, instructionShowMode) || null,
407
411
  initialValue,
408
412
  hidden,
409
- extra: /* @__PURE__ */ jsx("span", { style: { marginTop: 10, display: "inline-block", color: (_k = (_j = itemWithJson.json) == null ? void 0 : _j.extraDescObj) == null ? void 0 : _k.color }, children: (_m = (_l = itemWithJson.json) == null ? void 0 : _l.extraDescObj) == null ? void 0 : _m.info }),
413
+ extra: /* @__PURE__ */ jsx(
414
+ "span",
415
+ {
416
+ style: {
417
+ marginTop: ((_m = (_l = itemWithJson.json) == null ? void 0 : _l.extraDescObj) == null ? void 0 : _m.info) ? 10 : 0,
418
+ display: "inline-block",
419
+ color: (_o = (_n = itemWithJson.json) == null ? void 0 : _n.extraDescObj) == null ? void 0 : _o.color
420
+ },
421
+ children: (_q = (_p = itemWithJson.json) == null ? void 0 : _p.extraDescObj) == null ? void 0 : _q.info
422
+ }
423
+ ),
410
424
  rules: [
411
- ...((_n = itemWithJson.json) == null ? void 0 : _n.must) && !hidden ? [
425
+ ...((_r = itemWithJson.json) == null ? void 0 : _r.must) && !hidden ? [
412
426
  {
413
427
  required: true,
414
428
  message: `${placeholder}${itemWithJson.attrname}`
415
429
  }
416
430
  ] : [],
417
- ...((_o = itemWithJson.json) == null ? void 0 : _o.regexp) ? [
431
+ ...((_s = itemWithJson.json) == null ? void 0 : _s.regexp) ? [
418
432
  {
419
433
  pattern: new RegExp(itemWithJson.json.regexp.replace(/^\/|\/$/g, "")),
420
- message: ((_p = itemWithJson.json) == null ? void 0 : _p["regexp-message"]) || `${itemWithJson.attrname}${langId === "10001" ? "格式不正确" : "Format is incorrect"}`
434
+ message: ((_t = itemWithJson.json) == null ? void 0 : _t["regexp-message"]) || `${itemWithJson.attrname}${langId === "10001" ? "格式不正确" : "Format is incorrect"}`
421
435
  }
422
436
  ] : []
423
437
  ],
@@ -253,7 +253,7 @@ function useDynamicForm(props) {
253
253
  formListField,
254
254
  isShowLabel = true
255
255
  }) => {
256
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
256
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
257
257
  const hidden = (_a = itemWithJson.json) == null ? void 0 : _a.hidden;
258
258
  if (((_b = itemWithJson.json) == null ? void 0 : _b.hide) === true || (hideAttrList == null ? void 0 : hideAttrList.includes(itemWithJson.attrid))) {
259
259
  return /* @__PURE__ */ jsx(Fragment$1, {});
@@ -284,7 +284,7 @@ function useDynamicForm(props) {
284
284
  const { combinations = [] } = itemWithJson.json || {};
285
285
  if (combinations == null ? void 0 : combinations.length) {
286
286
  return /* @__PURE__ */ jsx(Flex, { children: combinations.map((item, index) => {
287
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
287
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2;
288
288
  let initValue = handleSetFormItemInitialValue(item);
289
289
  let width = defaultWidth;
290
290
  const mode = item.json.input || "text";
@@ -327,11 +327,11 @@ function useDynamicForm(props) {
327
327
  "span",
328
328
  {
329
329
  style: {
330
- marginTop: 10,
330
+ marginTop: ((_i2 = (_h2 = itemWithJson.json) == null ? void 0 : _h2.extraDescObj) == null ? void 0 : _i2.info) ? 10 : 0,
331
331
  display: "inline-block",
332
- color: (_i2 = (_h2 = itemWithJson.json) == null ? void 0 : _h2.extraDescObj) == null ? void 0 : _i2.color
332
+ color: (_k2 = (_j2 = itemWithJson.json) == null ? void 0 : _j2.extraDescObj) == null ? void 0 : _k2.color
333
333
  },
334
- children: (_k2 = (_j2 = itemWithJson.json) == null ? void 0 : _j2.extraDescObj) == null ? void 0 : _k2.info
334
+ children: (_m2 = (_l2 = itemWithJson.json) == null ? void 0 : _l2.extraDescObj) == null ? void 0 : _m2.info
335
335
  }
336
336
  ),
337
337
  ...handleSetFormItemProps(item),
@@ -379,7 +379,17 @@ function useDynamicForm(props) {
379
379
  ] : []
380
380
  ],
381
381
  ...handleSetFormItemProps(itemWithJson),
382
- intro: /* @__PURE__ */ jsx("span", { style: { marginTop: 10, display: "inline-block", color: (_i = (_h = itemWithJson.json) == null ? void 0 : _h.extraDescObj) == null ? void 0 : _i.color }, children: (_k = (_j = itemWithJson.json) == null ? void 0 : _j.extraDescObj) == null ? void 0 : _k.info }),
382
+ intro: /* @__PURE__ */ jsx(
383
+ "span",
384
+ {
385
+ style: {
386
+ marginTop: ((_i = (_h = itemWithJson.json) == null ? void 0 : _h.extraDescObj) == null ? void 0 : _i.info) ? 10 : 0,
387
+ display: "inline-block",
388
+ color: (_k = (_j = itemWithJson.json) == null ? void 0 : _j.extraDescObj) == null ? void 0 : _k.color
389
+ },
390
+ children: (_m = (_l = itemWithJson.json) == null ? void 0 : _l.extraDescObj) == null ? void 0 : _m.info
391
+ }
392
+ ),
383
393
  children: handleRenderItemInputMode({
384
394
  item: itemWithJson,
385
395
  readonly,
@@ -301,7 +301,7 @@ function useDynamicForm(props) {
301
301
  formListField,
302
302
  isShowLabel = true
303
303
  }) => {
304
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
304
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
305
305
  const hidden = (_a = itemWithJson.json) == null ? void 0 : _a.hidden;
306
306
  if (((_b = itemWithJson.json) == null ? void 0 : _b.hide) === true) {
307
307
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
@@ -338,8 +338,12 @@ function useDynamicForm(props) {
338
338
  extra: /* @__PURE__ */ jsxRuntime.jsx(
339
339
  "span",
340
340
  {
341
- style: { marginTop: 10, display: "inline-block", color: (_g = (_f = itemWithJson.json) == null ? void 0 : _f.extraDescObj) == null ? void 0 : _g.color },
342
- children: (_i = (_h = itemWithJson.json) == null ? void 0 : _h.extraDescObj) == null ? void 0 : _i.info
341
+ style: {
342
+ marginTop: ((_g = (_f = itemWithJson.json) == null ? void 0 : _f.extraDescObj) == null ? void 0 : _g.info) ? 10 : 0,
343
+ display: "inline-block",
344
+ color: (_i = (_h = itemWithJson.json) == null ? void 0 : _h.extraDescObj) == null ? void 0 : _i.color
345
+ },
346
+ children: (_k = (_j = itemWithJson.json) == null ? void 0 : _j.extraDescObj) == null ? void 0 : _k.info
343
347
  }
344
348
  ),
345
349
  children: /* @__PURE__ */ jsxRuntime.jsx(antd.Space.Compact, { children: combinations.map((item, index) => {
@@ -407,18 +411,28 @@ function useDynamicForm(props) {
407
411
  label: isShowLabel && handleDealInstruction(itemWithJson, instructionShowMode) || null,
408
412
  initialValue,
409
413
  hidden,
410
- extra: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { marginTop: 10, display: "inline-block", color: (_k = (_j = itemWithJson.json) == null ? void 0 : _j.extraDescObj) == null ? void 0 : _k.color }, children: (_m = (_l = itemWithJson.json) == null ? void 0 : _l.extraDescObj) == null ? void 0 : _m.info }),
414
+ extra: /* @__PURE__ */ jsxRuntime.jsx(
415
+ "span",
416
+ {
417
+ style: {
418
+ marginTop: ((_m = (_l = itemWithJson.json) == null ? void 0 : _l.extraDescObj) == null ? void 0 : _m.info) ? 10 : 0,
419
+ display: "inline-block",
420
+ color: (_o = (_n = itemWithJson.json) == null ? void 0 : _n.extraDescObj) == null ? void 0 : _o.color
421
+ },
422
+ children: (_q = (_p = itemWithJson.json) == null ? void 0 : _p.extraDescObj) == null ? void 0 : _q.info
423
+ }
424
+ ),
411
425
  rules: [
412
- ...((_n = itemWithJson.json) == null ? void 0 : _n.must) && !hidden ? [
426
+ ...((_r = itemWithJson.json) == null ? void 0 : _r.must) && !hidden ? [
413
427
  {
414
428
  required: true,
415
429
  message: `${placeholder}${itemWithJson.attrname}`
416
430
  }
417
431
  ] : [],
418
- ...((_o = itemWithJson.json) == null ? void 0 : _o.regexp) ? [
432
+ ...((_s = itemWithJson.json) == null ? void 0 : _s.regexp) ? [
419
433
  {
420
434
  pattern: new RegExp(itemWithJson.json.regexp.replace(/^\/|\/$/g, "")),
421
- message: ((_p = itemWithJson.json) == null ? void 0 : _p["regexp-message"]) || `${itemWithJson.attrname}${langId === "10001" ? "格式不正确" : "Format is incorrect"}`
435
+ message: ((_t = itemWithJson.json) == null ? void 0 : _t["regexp-message"]) || `${itemWithJson.attrname}${langId === "10001" ? "格式不正确" : "Format is incorrect"}`
422
436
  }
423
437
  ] : []
424
438
  ],
@@ -254,7 +254,7 @@ function useDynamicForm(props) {
254
254
  formListField,
255
255
  isShowLabel = true
256
256
  }) => {
257
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
257
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
258
258
  const hidden = (_a = itemWithJson.json) == null ? void 0 : _a.hidden;
259
259
  if (((_b = itemWithJson.json) == null ? void 0 : _b.hide) === true || (hideAttrList == null ? void 0 : hideAttrList.includes(itemWithJson.attrid))) {
260
260
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
@@ -285,7 +285,7 @@ function useDynamicForm(props) {
285
285
  const { combinations = [] } = itemWithJson.json || {};
286
286
  if (combinations == null ? void 0 : combinations.length) {
287
287
  return /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { children: combinations.map((item, index) => {
288
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
288
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2;
289
289
  let initValue = func.handleSetFormItemInitialValue(item);
290
290
  let width = defaultWidth;
291
291
  const mode = item.json.input || "text";
@@ -328,11 +328,11 @@ function useDynamicForm(props) {
328
328
  "span",
329
329
  {
330
330
  style: {
331
- marginTop: 10,
331
+ marginTop: ((_i2 = (_h2 = itemWithJson.json) == null ? void 0 : _h2.extraDescObj) == null ? void 0 : _i2.info) ? 10 : 0,
332
332
  display: "inline-block",
333
- color: (_i2 = (_h2 = itemWithJson.json) == null ? void 0 : _h2.extraDescObj) == null ? void 0 : _i2.color
333
+ color: (_k2 = (_j2 = itemWithJson.json) == null ? void 0 : _j2.extraDescObj) == null ? void 0 : _k2.color
334
334
  },
335
- children: (_k2 = (_j2 = itemWithJson.json) == null ? void 0 : _j2.extraDescObj) == null ? void 0 : _k2.info
335
+ children: (_m2 = (_l2 = itemWithJson.json) == null ? void 0 : _l2.extraDescObj) == null ? void 0 : _m2.info
336
336
  }
337
337
  ),
338
338
  ...handleSetFormItemProps(item),
@@ -380,7 +380,17 @@ function useDynamicForm(props) {
380
380
  ] : []
381
381
  ],
382
382
  ...handleSetFormItemProps(itemWithJson),
383
- intro: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { marginTop: 10, display: "inline-block", color: (_i = (_h = itemWithJson.json) == null ? void 0 : _h.extraDescObj) == null ? void 0 : _i.color }, children: (_k = (_j = itemWithJson.json) == null ? void 0 : _j.extraDescObj) == null ? void 0 : _k.info }),
383
+ intro: /* @__PURE__ */ jsxRuntime.jsx(
384
+ "span",
385
+ {
386
+ style: {
387
+ marginTop: ((_i = (_h = itemWithJson.json) == null ? void 0 : _h.extraDescObj) == null ? void 0 : _i.info) ? 10 : 0,
388
+ display: "inline-block",
389
+ color: (_k = (_j = itemWithJson.json) == null ? void 0 : _j.extraDescObj) == null ? void 0 : _k.color
390
+ },
391
+ children: (_m = (_l = itemWithJson.json) == null ? void 0 : _l.extraDescObj) == null ? void 0 : _m.info
392
+ }
393
+ ),
384
394
  children: handleRenderItemInputMode({
385
395
  item: itemWithJson,
386
396
  readonly,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.4.42",
4
+ "version": "0.4.43",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",