szld-libs 0.4.43 → 0.4.45

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, _q, _r, _s, _t;
303
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
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, {});
@@ -410,28 +410,28 @@ function useDynamicForm(props) {
410
410
  label: isShowLabel && handleDealInstruction(itemWithJson, instructionShowMode) || null,
411
411
  initialValue,
412
412
  hidden,
413
- extra: /* @__PURE__ */ jsx(
413
+ extra: ((_m = (_l = itemWithJson.json) == null ? void 0 : _l.extraDescObj) == null ? void 0 : _m.info) ? /* @__PURE__ */ jsx(
414
414
  "span",
415
415
  {
416
416
  style: {
417
- marginTop: ((_m = (_l = itemWithJson.json) == null ? void 0 : _l.extraDescObj) == null ? void 0 : _m.info) ? 10 : 0,
417
+ marginTop: ((_o = (_n = itemWithJson.json) == null ? void 0 : _n.extraDescObj) == null ? void 0 : _o.info) ? 10 : 0,
418
418
  display: "inline-block",
419
- color: (_o = (_n = itemWithJson.json) == null ? void 0 : _n.extraDescObj) == null ? void 0 : _o.color
419
+ color: (_q = (_p = itemWithJson.json) == null ? void 0 : _p.extraDescObj) == null ? void 0 : _q.color
420
420
  },
421
- children: (_q = (_p = itemWithJson.json) == null ? void 0 : _p.extraDescObj) == null ? void 0 : _q.info
421
+ children: (_s = (_r = itemWithJson.json) == null ? void 0 : _r.extraDescObj) == null ? void 0 : _s.info
422
422
  }
423
- ),
423
+ ) : null,
424
424
  rules: [
425
- ...((_r = itemWithJson.json) == null ? void 0 : _r.must) && !hidden ? [
425
+ ...((_t = itemWithJson.json) == null ? void 0 : _t.must) && !hidden ? [
426
426
  {
427
427
  required: true,
428
428
  message: `${placeholder}${itemWithJson.attrname}`
429
429
  }
430
430
  ] : [],
431
- ...((_s = itemWithJson.json) == null ? void 0 : _s.regexp) ? [
431
+ ...((_u = itemWithJson.json) == null ? void 0 : _u.regexp) ? [
432
432
  {
433
433
  pattern: new RegExp(itemWithJson.json.regexp.replace(/^\/|\/$/g, "")),
434
- message: ((_t = itemWithJson.json) == null ? void 0 : _t["regexp-message"]) || `${itemWithJson.attrname}${langId === "10001" ? "格式不正确" : "Format is incorrect"}`
434
+ message: ((_v = itemWithJson.json) == null ? void 0 : _v["regexp-message"]) || `${itemWithJson.attrname}${langId === "10001" ? "格式不正确" : "Format is incorrect"}`
435
435
  }
436
436
  ] : []
437
437
  ],
@@ -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, _l2, _m2;
287
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n, _o;
288
288
  let initValue = handleSetFormItemInitialValue(item);
289
289
  let width = defaultWidth;
290
290
  const mode = item.json.input || "text";
@@ -323,17 +323,17 @@ function useDynamicForm(props) {
323
323
  }
324
324
  ] : []
325
325
  ],
326
- intro: /* @__PURE__ */ jsx(
326
+ intro: ((_i2 = (_h2 = itemWithJson.json) == null ? void 0 : _h2.extraDescObj) == null ? void 0 : _i2.info) ? /* @__PURE__ */ jsx(
327
327
  "span",
328
328
  {
329
329
  style: {
330
- marginTop: ((_i2 = (_h2 = itemWithJson.json) == null ? void 0 : _h2.extraDescObj) == null ? void 0 : _i2.info) ? 10 : 0,
330
+ marginTop: ((_k2 = (_j2 = itemWithJson.json) == null ? void 0 : _j2.extraDescObj) == null ? void 0 : _k2.info) ? 50 : 0,
331
331
  display: "inline-block",
332
- color: (_k2 = (_j2 = itemWithJson.json) == null ? void 0 : _j2.extraDescObj) == null ? void 0 : _k2.color
332
+ color: (_m2 = (_l2 = itemWithJson.json) == null ? void 0 : _l2.extraDescObj) == null ? void 0 : _m2.color
333
333
  },
334
- children: (_m2 = (_l2 = itemWithJson.json) == null ? void 0 : _l2.extraDescObj) == null ? void 0 : _m2.info
334
+ children: (_o = (_n = itemWithJson.json) == null ? void 0 : _n.extraDescObj) == null ? void 0 : _o.info
335
335
  }
336
- ),
336
+ ) : null,
337
337
  ...handleSetFormItemProps(item),
338
338
  children: handleRenderItemInputMode({
339
339
  item,
@@ -20,6 +20,7 @@ export declare const handleSubmitForm: (originalData: {
20
20
  }, allValues: any) => {
21
21
  updatedData: any;
22
22
  uploadedFiles: any[];
23
+ onlyNumber: string;
23
24
  };
24
25
  /**
25
26
  * 处理基础属性数组
@@ -180,7 +180,8 @@ const handleSubmitForm = (originalData, allValues) => {
180
180
  }
181
181
  return {
182
182
  updatedData: isListToObj ? handleAttrListToObj(updatedData.attr_list || []) : updatedData,
183
- uploadedFiles
183
+ uploadedFiles,
184
+ onlyNumber: onlyNumber || guid || ""
184
185
  };
185
186
  };
186
187
  const processChildren = (items, extraAttrs, notDisplay) => {
@@ -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, _q, _r, _s, _t;
304
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
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, {});
@@ -411,28 +411,28 @@ function useDynamicForm(props) {
411
411
  label: isShowLabel && handleDealInstruction(itemWithJson, instructionShowMode) || null,
412
412
  initialValue,
413
413
  hidden,
414
- extra: /* @__PURE__ */ jsxRuntime.jsx(
414
+ extra: ((_m = (_l = itemWithJson.json) == null ? void 0 : _l.extraDescObj) == null ? void 0 : _m.info) ? /* @__PURE__ */ jsxRuntime.jsx(
415
415
  "span",
416
416
  {
417
417
  style: {
418
- marginTop: ((_m = (_l = itemWithJson.json) == null ? void 0 : _l.extraDescObj) == null ? void 0 : _m.info) ? 10 : 0,
418
+ marginTop: ((_o = (_n = itemWithJson.json) == null ? void 0 : _n.extraDescObj) == null ? void 0 : _o.info) ? 10 : 0,
419
419
  display: "inline-block",
420
- color: (_o = (_n = itemWithJson.json) == null ? void 0 : _n.extraDescObj) == null ? void 0 : _o.color
420
+ color: (_q = (_p = itemWithJson.json) == null ? void 0 : _p.extraDescObj) == null ? void 0 : _q.color
421
421
  },
422
- children: (_q = (_p = itemWithJson.json) == null ? void 0 : _p.extraDescObj) == null ? void 0 : _q.info
422
+ children: (_s = (_r = itemWithJson.json) == null ? void 0 : _r.extraDescObj) == null ? void 0 : _s.info
423
423
  }
424
- ),
424
+ ) : null,
425
425
  rules: [
426
- ...((_r = itemWithJson.json) == null ? void 0 : _r.must) && !hidden ? [
426
+ ...((_t = itemWithJson.json) == null ? void 0 : _t.must) && !hidden ? [
427
427
  {
428
428
  required: true,
429
429
  message: `${placeholder}${itemWithJson.attrname}`
430
430
  }
431
431
  ] : [],
432
- ...((_s = itemWithJson.json) == null ? void 0 : _s.regexp) ? [
432
+ ...((_u = itemWithJson.json) == null ? void 0 : _u.regexp) ? [
433
433
  {
434
434
  pattern: new RegExp(itemWithJson.json.regexp.replace(/^\/|\/$/g, "")),
435
- message: ((_t = itemWithJson.json) == null ? void 0 : _t["regexp-message"]) || `${itemWithJson.attrname}${langId === "10001" ? "格式不正确" : "Format is incorrect"}`
435
+ message: ((_v = itemWithJson.json) == null ? void 0 : _v["regexp-message"]) || `${itemWithJson.attrname}${langId === "10001" ? "格式不正确" : "Format is incorrect"}`
436
436
  }
437
437
  ] : []
438
438
  ],
@@ -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, _l2, _m2;
288
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n, _o;
289
289
  let initValue = func.handleSetFormItemInitialValue(item);
290
290
  let width = defaultWidth;
291
291
  const mode = item.json.input || "text";
@@ -324,17 +324,17 @@ function useDynamicForm(props) {
324
324
  }
325
325
  ] : []
326
326
  ],
327
- intro: /* @__PURE__ */ jsxRuntime.jsx(
327
+ intro: ((_i2 = (_h2 = itemWithJson.json) == null ? void 0 : _h2.extraDescObj) == null ? void 0 : _i2.info) ? /* @__PURE__ */ jsxRuntime.jsx(
328
328
  "span",
329
329
  {
330
330
  style: {
331
- marginTop: ((_i2 = (_h2 = itemWithJson.json) == null ? void 0 : _h2.extraDescObj) == null ? void 0 : _i2.info) ? 10 : 0,
331
+ marginTop: ((_k2 = (_j2 = itemWithJson.json) == null ? void 0 : _j2.extraDescObj) == null ? void 0 : _k2.info) ? 50 : 0,
332
332
  display: "inline-block",
333
- color: (_k2 = (_j2 = itemWithJson.json) == null ? void 0 : _j2.extraDescObj) == null ? void 0 : _k2.color
333
+ color: (_m2 = (_l2 = itemWithJson.json) == null ? void 0 : _l2.extraDescObj) == null ? void 0 : _m2.color
334
334
  },
335
- children: (_m2 = (_l2 = itemWithJson.json) == null ? void 0 : _l2.extraDescObj) == null ? void 0 : _m2.info
335
+ children: (_o = (_n = itemWithJson.json) == null ? void 0 : _n.extraDescObj) == null ? void 0 : _o.info
336
336
  }
337
- ),
337
+ ) : null,
338
338
  ...handleSetFormItemProps(item),
339
339
  children: handleRenderItemInputMode({
340
340
  item,
@@ -20,6 +20,7 @@ export declare const handleSubmitForm: (originalData: {
20
20
  }, allValues: any) => {
21
21
  updatedData: any;
22
22
  uploadedFiles: any[];
23
+ onlyNumber: string;
23
24
  };
24
25
  /**
25
26
  * 处理基础属性数组
@@ -182,7 +182,8 @@ const handleSubmitForm = (originalData, allValues) => {
182
182
  }
183
183
  return {
184
184
  updatedData: isListToObj ? handleAttrListToObj(updatedData.attr_list || []) : updatedData,
185
- uploadedFiles
185
+ uploadedFiles,
186
+ onlyNumber: onlyNumber || guid || ""
186
187
  };
187
188
  };
188
189
  const processChildren = (items, extraAttrs, notDisplay) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.4.43",
4
+ "version": "0.4.45",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",