szld-libs 0.3.64 → 0.3.66

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.
@@ -18,6 +18,7 @@ export interface IformConfigItem {
18
18
  }
19
19
 
20
20
  export interface Ijson {
21
+ 'max-tag-count'?: number; // 最大标签数量
21
22
  readonly: boolean; // 是否只读属性
22
23
  'field-names'?: string; // 级联选择的自定义字段名
23
24
  'input-width'?: string; // 输入框宽度
@@ -431,7 +431,7 @@ function useDynamicForm(props) {
431
431
  defaultWidth = 358,
432
432
  customWidth = {}
433
433
  }) => {
434
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
434
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
435
435
  const mode = item.json.input || "text";
436
436
  const format = ((_a = item.json) == null ? void 0 : _a.format) || "";
437
437
  const attrid = item.attrid;
@@ -611,7 +611,8 @@ function useDynamicForm(props) {
611
611
  DatePicker,
612
612
  {
613
613
  multiple: true,
614
- disabled: readonly || ((_p = item.json) == null ? void 0 : _p.readonly) || false,
614
+ maxTagCount: ((_p = item == null ? void 0 : item.json) == null ? void 0 : _p["max-tag-count"]) || 2,
615
+ disabled: readonly || ((_q = item.json) == null ? void 0 : _q.readonly) || false,
615
616
  style: { width, ...itemStyle == null ? void 0 : itemStyle.style, ...customWidth }
616
617
  }
617
618
  );
@@ -623,7 +624,7 @@ function useDynamicForm(props) {
623
624
  commonRequest,
624
625
  commonRequestWidthParams,
625
626
  item: item.json,
626
- readonly: readonly || ((_q = item.json) == null ? void 0 : _q.readonly),
627
+ readonly: readonly || ((_r = item.json) == null ? void 0 : _r.readonly),
627
628
  options: params,
628
629
  handleUrlOptions,
629
630
  value: formatValue,
@@ -644,7 +645,7 @@ function useDynamicForm(props) {
644
645
  commonRequest,
645
646
  commonRequestWidthParams,
646
647
  item: item.json,
647
- readonly: readonly || ((_r = item.json) == null ? void 0 : _r.readonly),
648
+ readonly: readonly || ((_s = item.json) == null ? void 0 : _s.readonly),
648
649
  options: params,
649
650
  value: formatValue,
650
651
  handleUrlOptions,
@@ -669,7 +670,7 @@ function useDynamicForm(props) {
669
670
  uploadType: mode,
670
671
  langId,
671
672
  list: formatValue,
672
- readonly: readonly || ((_s = item.json) == null ? void 0 : _s.readonly),
673
+ readonly: readonly || ((_t = item.json) == null ? void 0 : _t.readonly),
673
674
  relatedid,
674
675
  relatedidKey,
675
676
  onRemove: (file) => handleOnRemove(file)
@@ -696,7 +697,7 @@ function useDynamicForm(props) {
696
697
  RadioCard,
697
698
  {
698
699
  item: item.json,
699
- readonly: readonly || ((_t = item.json) == null ? void 0 : _t.readonly),
700
+ readonly: readonly || ((_u = item.json) == null ? void 0 : _u.readonly),
700
701
  onChange: (value) => {
701
702
  form.setFieldValue(item.attrid, value);
702
703
  },
@@ -711,7 +712,7 @@ function useDynamicForm(props) {
711
712
  placeholder: message2 || placeholder,
712
713
  ...params,
713
714
  showCount: true,
714
- disabled: readonly || ((_u = item.json) == null ? void 0 : _u.readonly),
715
+ disabled: readonly || ((_v = item.json) == null ? void 0 : _v.readonly),
715
716
  style: { width, ...itemStyle == null ? void 0 : itemStyle.style, ...customWidth }
716
717
  }
717
718
  );
@@ -241,7 +241,7 @@ function useUniversalTable() {
241
241
  });
242
242
  return /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: ((_b = newList == null ? void 0 : newList.join(delimiter)) == null ? void 0 : _b.replace(/br/g, "<br>")) || "-" } });
243
243
  }
244
- return /* @__PURE__ */ jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsx("span", { style: { cursor: "pointer" }, children: (getTitle == null ? void 0 : getTitle(otherLangPageId, text)) ?? "-" }) });
244
+ return /* @__PURE__ */ jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsx("span", { style: { cursor: "pointer" }, children: getTitle == null ? void 0 : getTitle(otherLangPageId, text ?? "-") }) });
245
245
  }
246
246
  return text ?? "-";
247
247
  }
@@ -377,7 +377,8 @@ function useUniversalTable() {
377
377
  };
378
378
  });
379
379
  const searchParams = {
380
- "sel-list": updatedSelList
380
+ "sel-list": updatedSelList,
381
+ ...values
381
382
  };
382
383
  onSearch(searchParams);
383
384
  };
@@ -18,6 +18,7 @@ export interface IformConfigItem {
18
18
  }
19
19
 
20
20
  export interface Ijson {
21
+ 'max-tag-count'?: number; // 最大标签数量
21
22
  readonly: boolean; // 是否只读属性
22
23
  'field-names'?: string; // 级联选择的自定义字段名
23
24
  'input-width'?: string; // 输入框宽度
@@ -432,7 +432,7 @@ function useDynamicForm(props) {
432
432
  defaultWidth = 358,
433
433
  customWidth = {}
434
434
  }) => {
435
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
435
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
436
436
  const mode = item.json.input || "text";
437
437
  const format = ((_a = item.json) == null ? void 0 : _a.format) || "";
438
438
  const attrid = item.attrid;
@@ -612,7 +612,8 @@ function useDynamicForm(props) {
612
612
  antd.DatePicker,
613
613
  {
614
614
  multiple: true,
615
- disabled: readonly || ((_p = item.json) == null ? void 0 : _p.readonly) || false,
615
+ maxTagCount: ((_p = item == null ? void 0 : item.json) == null ? void 0 : _p["max-tag-count"]) || 2,
616
+ disabled: readonly || ((_q = item.json) == null ? void 0 : _q.readonly) || false,
616
617
  style: { width, ...itemStyle == null ? void 0 : itemStyle.style, ...customWidth }
617
618
  }
618
619
  );
@@ -624,7 +625,7 @@ function useDynamicForm(props) {
624
625
  commonRequest,
625
626
  commonRequestWidthParams,
626
627
  item: item.json,
627
- readonly: readonly || ((_q = item.json) == null ? void 0 : _q.readonly),
628
+ readonly: readonly || ((_r = item.json) == null ? void 0 : _r.readonly),
628
629
  options: params,
629
630
  handleUrlOptions: method.handleUrlOptions,
630
631
  value: formatValue,
@@ -645,7 +646,7 @@ function useDynamicForm(props) {
645
646
  commonRequest,
646
647
  commonRequestWidthParams,
647
648
  item: item.json,
648
- readonly: readonly || ((_r = item.json) == null ? void 0 : _r.readonly),
649
+ readonly: readonly || ((_s = item.json) == null ? void 0 : _s.readonly),
649
650
  options: params,
650
651
  value: formatValue,
651
652
  handleUrlOptions: method.handleUrlOptions,
@@ -670,7 +671,7 @@ function useDynamicForm(props) {
670
671
  uploadType: mode,
671
672
  langId,
672
673
  list: formatValue,
673
- readonly: readonly || ((_s = item.json) == null ? void 0 : _s.readonly),
674
+ readonly: readonly || ((_t = item.json) == null ? void 0 : _t.readonly),
674
675
  relatedid,
675
676
  relatedidKey,
676
677
  onRemove: (file) => handleOnRemove(file)
@@ -697,7 +698,7 @@ function useDynamicForm(props) {
697
698
  RadioCard,
698
699
  {
699
700
  item: item.json,
700
- readonly: readonly || ((_t = item.json) == null ? void 0 : _t.readonly),
701
+ readonly: readonly || ((_u = item.json) == null ? void 0 : _u.readonly),
701
702
  onChange: (value) => {
702
703
  form.setFieldValue(item.attrid, value);
703
704
  },
@@ -712,7 +713,7 @@ function useDynamicForm(props) {
712
713
  placeholder: message2 || placeholder,
713
714
  ...params,
714
715
  showCount: true,
715
- disabled: readonly || ((_u = item.json) == null ? void 0 : _u.readonly),
716
+ disabled: readonly || ((_v = item.json) == null ? void 0 : _v.readonly),
716
717
  style: { width, ...itemStyle == null ? void 0 : itemStyle.style, ...customWidth }
717
718
  }
718
719
  );
@@ -242,7 +242,7 @@ function useUniversalTable() {
242
242
  });
243
243
  return /* @__PURE__ */ jsxRuntime.jsx("span", { dangerouslySetInnerHTML: { __html: ((_b = newList == null ? void 0 : newList.join(delimiter)) == null ? void 0 : _b.replace(/br/g, "<br>")) || "-" } });
244
244
  }
245
- return /* @__PURE__ */ jsxRuntime.jsx(antd.Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { cursor: "pointer" }, children: (getTitle == null ? void 0 : getTitle(otherLangPageId, text)) ?? "-" }) });
245
+ return /* @__PURE__ */ jsxRuntime.jsx(antd.Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { cursor: "pointer" }, children: getTitle == null ? void 0 : getTitle(otherLangPageId, text ?? "-") }) });
246
246
  }
247
247
  return text ?? "-";
248
248
  }
@@ -378,7 +378,8 @@ function useUniversalTable() {
378
378
  };
379
379
  });
380
380
  const searchParams = {
381
- "sel-list": updatedSelList
381
+ "sel-list": updatedSelList,
382
+ ...values
382
383
  };
383
384
  onSearch(searchParams);
384
385
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.3.64",
4
+ "version": "0.3.66",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",