szld-libs 0.4.52 → 0.4.53

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
  'lang-page-id': string; // 语言页面id
22
23
  'operation-types'?: string[]; // 自定义按钮类型列表
23
24
  'custom-operation'?: boolean; // 是否自定义按钮
@@ -106,11 +106,11 @@ const MySelect = ({
106
106
  value,
107
107
  filterOption: (inputValue, option) => {
108
108
  var _a;
109
- return ((_a = option == null ? void 0 : option.label) == null ? void 0 : _a.toLowerCase().indexOf(inputValue.toLowerCase())) >= 0;
109
+ return (option == null ? void 0 : option.label) && ((_a = String(option == null ? void 0 : option.label)) == null ? void 0 : _a.toLowerCase().indexOf(inputValue.toLowerCase())) >= 0;
110
110
  },
111
111
  options,
112
112
  style: { ...style },
113
- maxTagCount: 1,
113
+ maxTagCount: (item == null ? void 0 : item["max-tag-count"]) ?? 1,
114
114
  allowClear: true,
115
115
  onChange: (val) => {
116
116
  if (Array.isArray(val) && (item == null ? void 0 : item["custom-operation"]) && item.input === "mult-select") {
package/es/mock/index.js CHANGED
@@ -8,10 +8,10 @@ const attrList = [
8
8
  attrid: "30BDE6E7977E40069B55DDE61C8795AE",
9
9
  attrname: "Dates",
10
10
  attrtype: 0,
11
- info: '{"input":"rich-text","dataType":"string","length":500,"must":true}',
11
+ info: '{"input":"mult-select","dataType":"string","inputType":"local","data":[1,2,3,4,5,6,7,8],"max-tag-count":1,"length":500,"must":true}',
12
12
  info_base64: 0,
13
13
  createtime: "2026-02-11 15:12:26",
14
- attrvalue: "JTNDcCUzRSVFNSU4RSVCQiVFNSU5NSU4QSVFNiU5OCVBRiVFNyU5QSU4NCVFNCVCQyU4MSVFOSVCOSU4NSVFNyU5QSU4NCVFNSVBNyU5NCVFNSVCMSU4OCVFOSVBNSVCRiUzQyUyRnAlM0U=",
14
+ attrvalue: "",
15
15
  serialnum: 1,
16
16
  children: []
17
17
  }
@@ -18,6 +18,7 @@ export interface IformConfigItem {
18
18
  }
19
19
 
20
20
  export interface Ijson {
21
+ 'max-tag-count'?: number; // 最大标签数量
21
22
  'lang-page-id': string; // 语言页面id
22
23
  'operation-types'?: string[]; // 自定义按钮类型列表
23
24
  'custom-operation'?: boolean; // 是否自定义按钮
@@ -107,11 +107,11 @@ const MySelect = ({
107
107
  value,
108
108
  filterOption: (inputValue, option) => {
109
109
  var _a;
110
- return ((_a = option == null ? void 0 : option.label) == null ? void 0 : _a.toLowerCase().indexOf(inputValue.toLowerCase())) >= 0;
110
+ return (option == null ? void 0 : option.label) && ((_a = String(option == null ? void 0 : option.label)) == null ? void 0 : _a.toLowerCase().indexOf(inputValue.toLowerCase())) >= 0;
111
111
  },
112
112
  options,
113
113
  style: { ...style },
114
- maxTagCount: 1,
114
+ maxTagCount: (item == null ? void 0 : item["max-tag-count"]) ?? 1,
115
115
  allowClear: true,
116
116
  onChange: (val) => {
117
117
  if (Array.isArray(val) && (item == null ? void 0 : item["custom-operation"]) && item.input === "mult-select") {
package/lib/mock/index.js CHANGED
@@ -10,10 +10,10 @@ const attrList = [
10
10
  attrid: "30BDE6E7977E40069B55DDE61C8795AE",
11
11
  attrname: "Dates",
12
12
  attrtype: 0,
13
- info: '{"input":"rich-text","dataType":"string","length":500,"must":true}',
13
+ info: '{"input":"mult-select","dataType":"string","inputType":"local","data":[1,2,3,4,5,6,7,8],"max-tag-count":1,"length":500,"must":true}',
14
14
  info_base64: 0,
15
15
  createtime: "2026-02-11 15:12:26",
16
- attrvalue: "JTNDcCUzRSVFNSU4RSVCQiVFNSU5NSU4QSVFNiU5OCVBRiVFNyU5QSU4NCVFNCVCQyU4MSVFOSVCOSU4NSVFNyU5QSU4NCVFNSVBNyU5NCVFNSVCMSU4OCVFOSVBNSVCRiUzQyUyRnAlM0U=",
16
+ attrvalue: "",
17
17
  serialnum: 1,
18
18
  children: []
19
19
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.4.52",
4
+ "version": "0.4.53",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",