szld-libs 0.3.31 → 0.3.36

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 (41) hide show
  1. package/dist/szld-components.es.js +13903 -13972
  2. package/dist/szld-components.umd.js +53 -53
  3. package/es/components/DynamicForm/func.d.ts +1 -5
  4. package/es/components/DynamicForm/func.js +5 -0
  5. package/es/components/DynamicForm/index.js +4 -2
  6. package/es/components/DynamicForm/myCheckbox/index.d.ts +1 -1
  7. package/es/components/DynamicForm/myCheckbox/index.js +17 -70
  8. package/es/components/DynamicForm/myRadio/index.d.ts +1 -1
  9. package/es/components/DynamicForm/myRadio/index.js +17 -73
  10. package/es/components/DynamicForm/mySelect/index.d.ts +2 -1
  11. package/es/components/DynamicForm/mySelect/index.js +5 -3
  12. package/es/components/DynamicForm/useDynamicForm.d.ts +1 -0
  13. package/es/components/DynamicForm/useDynamicForm.js +16 -13
  14. package/es/components/DynamicFormMobile/func.d.ts +0 -5
  15. package/es/components/DynamicFormMobile/mySelect/index.js +1 -1
  16. package/es/hooks/useUniversalTable.js +1 -1
  17. package/es/index.js +19 -12
  18. package/es/mock/index.d.ts +14 -0
  19. package/es/mock/index.js +374 -70
  20. package/es/utils/method.d.ts +2 -1
  21. package/es/utils/method.js +4 -2
  22. package/lib/components/DynamicForm/func.d.ts +1 -5
  23. package/lib/components/DynamicForm/func.js +5 -0
  24. package/lib/components/DynamicForm/index.js +4 -2
  25. package/lib/components/DynamicForm/myCheckbox/index.d.ts +1 -1
  26. package/lib/components/DynamicForm/myCheckbox/index.js +16 -69
  27. package/lib/components/DynamicForm/myRadio/index.d.ts +1 -1
  28. package/lib/components/DynamicForm/myRadio/index.js +16 -72
  29. package/lib/components/DynamicForm/mySelect/index.d.ts +2 -1
  30. package/lib/components/DynamicForm/mySelect/index.js +5 -3
  31. package/lib/components/DynamicForm/useDynamicForm.d.ts +1 -0
  32. package/lib/components/DynamicForm/useDynamicForm.js +15 -12
  33. package/lib/components/DynamicFormMobile/func.d.ts +0 -5
  34. package/lib/components/DynamicFormMobile/mySelect/index.js +1 -1
  35. package/lib/hooks/useUniversalTable.js +1 -1
  36. package/lib/index.js +16 -9
  37. package/lib/mock/index.d.ts +14 -0
  38. package/lib/mock/index.js +373 -69
  39. package/lib/utils/method.d.ts +2 -1
  40. package/lib/utils/method.js +4 -2
  41. package/package.json +1 -1
package/es/mock/index.js CHANGED
@@ -2,115 +2,419 @@ const baseAttrList = [];
2
2
  const attrList = [
3
3
  {
4
4
  xh: 1,
5
- asid: "06C6CE201AB44B2CAAB11C753374AA40",
5
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
6
6
  astype: 0,
7
- tname: "tsyy_table2",
8
- attrid: "30BDE6E7977E40069B55DDE61C8795AE",
9
- attrname: "Dates",
7
+ tname: "gg_table",
8
+ attrid: "BB5FFD9EC1034781BC3E89FEFD78879C",
9
+ attrname: "姓名",
10
10
  attrtype: 0,
11
- info: '{"input":"multiple-date-picker","range-picker-save":"single","dataType":"string","length":1000,"input-width":240,"must":true}',
11
+ info: '{"input":"text","dataType":"string","length":20,"must":true,"regexp":"/^[A-Za-z]+$/","regexp-message":"请输入英文字母"}',
12
12
  info_base64: 0,
13
- createtime: "2026-02-11 15:12:26",
13
+ createtime: "2026-01-05 21:25:49",
14
14
  attrvalue: "",
15
15
  serialnum: 1,
16
- children: [],
17
- json: {
18
- input: "multiple-date-picker",
19
- "range-picker-save": "single",
20
- dataType: "string",
21
- length: 1e3,
22
- "input-width": 240,
23
- must: true
24
- }
16
+ children: []
25
17
  },
26
18
  {
27
19
  xh: 2,
28
- asid: "06C6CE201AB44B2CAAB11C753374AA40",
20
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
29
21
  astype: 0,
30
- tname: "tsyy_table2",
31
- attrid: "38A7DADC6D64492D83DA607EC121A02D",
32
- attrname: "How Many Times",
22
+ tname: "gg_table",
23
+ attrid: "799FBD4386A04D8198FC7F33B120F68E",
24
+ attrname: "品种",
33
25
  attrtype: 0,
34
- info: '{"input":"text","dataType":"string","length":10,"input-width":140,"must":true}',
26
+ info: '{"input":"text","dataType":"string","length":20}',
35
27
  info_base64: 0,
36
- createtime: "2026-02-11 15:12:26",
28
+ createtime: "2026-01-05 21:26:01",
37
29
  attrvalue: "",
38
30
  serialnum: 2,
39
- children: [],
40
- json: {
41
- input: "text",
42
- dataType: "string",
43
- length: 10,
44
- "input-width": 140,
45
- must: true
46
- }
31
+ children: []
47
32
  },
48
33
  {
49
34
  xh: 3,
50
- asid: "06C6CE201AB44B2CAAB11C753374AA40",
35
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
51
36
  astype: 0,
52
- tname: "tsyy_table2",
53
- attrid: "7BB9BE8A96824CCF89B721C8F1AF9F38",
54
- attrname: "Feeding Time",
37
+ tname: "gg_table",
38
+ attrid: "B1B10494F9A949CCBD26567A597E8DAE",
39
+ attrname: "重量",
55
40
  attrtype: 0,
56
- info: '{\r\n "input": "second-picker",\r\n "dataType": "string",\r\n "length": 200,\r\n "input-width": 240,\r\n "format": "HH:mm"\r\n}',
41
+ info: '{"input":"text","dataType":"string","length":3,"combination":true,"combination-id":1,"combination-name":"重量","combination-width-ratio":0.7,"must":true}',
57
42
  info_base64: 0,
58
- createtime: "2026-02-11 15:12:26",
43
+ createtime: "2026-01-05 21:26:13",
59
44
  attrvalue: "",
60
45
  serialnum: 3,
61
- children: [],
62
- json: {
63
- input: "second-picker",
64
- dataType: "string",
65
- length: 200,
66
- "input-width": 240,
67
- format: "HH:mm"
68
- }
46
+ children: []
69
47
  },
70
48
  {
71
49
  xh: 4,
72
- asid: "06C6CE201AB44B2CAAB11C753374AA40",
50
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
73
51
  astype: 0,
74
- tname: "tsyy_table2",
75
- attrid: "665F59E637664037939512C9877EAD75",
76
- attrname: "Meds Info",
52
+ tname: "gg_table",
53
+ attrid: "A3CB9307DED6493382C78E065F3C6A99",
54
+ attrname: "单位",
77
55
  attrtype: 0,
78
- info: '{"input":"text","dataType":"string","length":500,"input-width":240}',
56
+ info: '{"input":"select","dataType":"string","length":5,"inputType":"local","data":["001","002"],"default":"001","combination":true,"combination-id":1,"combination-name":"重量","combination-width-ratio":0.3,"must":true}',
79
57
  info_base64: 0,
80
- createtime: "2026-02-11 15:12:26",
58
+ createtime: "2026-01-05 21:27:16",
81
59
  attrvalue: "",
82
60
  serialnum: 4,
83
- children: [],
84
- json: {
85
- input: "text",
86
- dataType: "string",
87
- length: 500,
88
- "input-width": 240
89
- }
61
+ children: []
90
62
  },
91
63
  {
92
64
  xh: 5,
93
- asid: "06C6CE201AB44B2CAAB11C753374AA40",
65
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
94
66
  astype: 0,
95
- tname: "tsyy_table2",
96
- attrid: "290CF33D2AAD45399987987FAB80900B",
97
- attrname: "Feeding Instruction",
67
+ tname: "gg_table",
68
+ attrid: "F0999F269D3C4425A59A883442055C5C",
69
+ attrname: "性别",
98
70
  attrtype: 0,
99
- info: '{"input":"text","dataType":"string","length":500,"input-width":340}',
71
+ info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","data":["公","母"]}',
100
72
  info_base64: 0,
101
- createtime: "2026-02-11 15:12:26",
73
+ createtime: "2026-01-05 21:28:11",
102
74
  attrvalue: "",
103
75
  serialnum: 5,
104
- children: [],
105
- json: {
106
- input: "text",
107
- dataType: "string",
108
- length: 500,
109
- "input-width": 340
110
- }
76
+ children: []
77
+ },
78
+ {
79
+ xh: 6,
80
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
81
+ astype: 0,
82
+ tname: "gg_table",
83
+ attrid: "4986EE62B15E4C0197A1E073E098CCAF",
84
+ attrname: "是否绝育",
85
+ attrtype: 0,
86
+ info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","data":["否","是"],"must":true}',
87
+ info_base64: 0,
88
+ createtime: "2026-01-05 21:28:34",
89
+ attrvalue: "",
90
+ serialnum: 6,
91
+ children: []
92
+ },
93
+ {
94
+ xh: 7,
95
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
96
+ astype: 0,
97
+ tname: "gg_table",
98
+ attrid: "8561D992C88645EE9EA184800BBE0E1D",
99
+ attrname: "是否对其他狗有攻击性",
100
+ attrtype: 0,
101
+ info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","data":["否","是","视情况而定","不确定"],"must":true}',
102
+ info_base64: 0,
103
+ createtime: "2026-01-05 21:29:07",
104
+ attrvalue: "",
105
+ serialnum: 7,
106
+ children: []
107
+ },
108
+ {
109
+ xh: 8,
110
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
111
+ astype: 0,
112
+ tname: "gg_table",
113
+ attrid: "93366648DF5146E98AE3D58DE5D6BD73",
114
+ attrname: "是否对人有攻击性",
115
+ attrtype: 0,
116
+ info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","data":["否","是","视情况而定","不确定"],"must":true}',
117
+ info_base64: 0,
118
+ createtime: "2026-01-05 21:29:24",
119
+ attrvalue: "",
120
+ serialnum: 8,
121
+ children: []
122
+ },
123
+ {
124
+ xh: 9,
125
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
126
+ astype: 0,
127
+ tname: "gg_table",
128
+ attrid: "6A63A6508C0E44D38AB68CB27EC332E8",
129
+ attrname: "狗狗照片",
130
+ attrtype: 0,
131
+ info: '{"input":"image","upload-accept":".png,.jpg,.jpeg","upload-max-count":"5","upload-size":"5","dataType":"string","length":4000}',
132
+ info_base64: 0,
133
+ createtime: "2026-01-05 21:29:46",
134
+ attrvalue: "",
135
+ serialnum: 9,
136
+ children: []
137
+ },
138
+ {
139
+ xh: 10,
140
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
141
+ astype: 0,
142
+ tname: "gg_table",
143
+ attrid: "6730DFF94989425F9ED90A4A77EE3C5B",
144
+ attrname: "疫苗证明",
145
+ attrtype: 0,
146
+ info: '{"input":"file","upload-accept":".png,jpeg,jpg,.pdf,.doc,.docx,.xls,.xlsx,.txt,.zip,.rar,.7z","upload-max-count":"5","upload-size":"10","dataType":"string","length":4000}',
147
+ info_base64: 0,
148
+ createtime: "2026-01-05 21:30:05",
149
+ attrvalue: "",
150
+ serialnum: 10,
151
+ children: []
152
+ },
153
+ {
154
+ xh: 11,
155
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
156
+ astype: 0,
157
+ tname: "gg_table",
158
+ attrid: "23A6082D509340BCA10ED419A95F9B7D",
159
+ attrname: "生日",
160
+ attrtype: 0,
161
+ info: '{"input":"date-picker","dataType":"date","instruction":"如不确定出生日期可选择大概日期","instruction-color":"#999999","must":true}',
162
+ info_base64: 0,
163
+ createtime: "2026-01-05 21:30:21",
164
+ attrvalue: "",
165
+ serialnum: 11,
166
+ children: []
167
+ },
168
+ {
169
+ xh: 12,
170
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
171
+ astype: 0,
172
+ tname: "gg_table",
173
+ attrid: "7A870062F2C94795ABA9923F300BE99A",
174
+ attrname: "备注",
175
+ attrtype: 0,
176
+ info: '{"input":"textarea","dataType":"string","length":500}',
177
+ info_base64: 0,
178
+ createtime: "2026-01-05 21:30:40",
179
+ attrvalue: "",
180
+ serialnum: 12,
181
+ children: []
182
+ },
183
+ {
184
+ xh: 13,
185
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
186
+ astype: 0,
187
+ tname: "gg_table",
188
+ attrid: "5A1C6C69500B42708F71B1A4CF4009C5",
189
+ attrname: "确认状态",
190
+ attrtype: 0,
191
+ info: '{"input":"select","dataType":"string","length":10,"inputType":"local","data":["未确认","已确认"],"default":"已确认"}',
192
+ info_base64: 0,
193
+ createtime: "2026-01-05 21:30:54",
194
+ attrvalue: "",
195
+ serialnum: 13,
196
+ children: []
197
+ },
198
+ {
199
+ xh: 14,
200
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
201
+ astype: 0,
202
+ tname: "gg_table",
203
+ attrid: "B5EA8BEBDABE4B508CD72F5921FD1C0F",
204
+ attrname: "关联账号",
205
+ attrtype: 0,
206
+ info: '{"input":"text","dataType":"string","length":100}',
207
+ info_base64: 0,
208
+ createtime: "2026-01-05 21:31:07",
209
+ attrvalue: "",
210
+ serialnum: 14,
211
+ children: []
212
+ },
213
+ {
214
+ xh: 15,
215
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
216
+ astype: 0,
217
+ tname: "gg_table",
218
+ attrid: "8BC4EEE820374EAA90B42756F6B1E4A5",
219
+ attrname: "主人姓",
220
+ attrtype: 0,
221
+ info: '{"input":"text","dataType":"string","length":100}',
222
+ info_base64: 0,
223
+ createtime: "2026-01-05 21:36:38",
224
+ attrvalue: "",
225
+ serialnum: 15,
226
+ children: []
227
+ },
228
+ {
229
+ xh: 16,
230
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
231
+ astype: 0,
232
+ tname: "gg_table",
233
+ attrid: "66A7EA71D61A4D0E86C8C44C7F788DD9",
234
+ attrname: "主人名",
235
+ attrtype: 0,
236
+ info: '{"input":"text","dataType":"string","length":100}',
237
+ info_base64: 0,
238
+ createtime: "2026-01-16 15:02:21",
239
+ attrvalue: "",
240
+ serialnum: 15,
241
+ children: []
242
+ },
243
+ {
244
+ xh: 17,
245
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
246
+ astype: 0,
247
+ tname: "gg_table",
248
+ attrid: "069E5167BD4E4BAF86B57EE19826DF0C",
249
+ attrname: "关联账号对应id",
250
+ attrtype: 0,
251
+ info: '{"input":"text","dataType":"string","length":32}',
252
+ info_base64: 0,
253
+ createtime: "2026-01-06 12:17:44",
254
+ attrvalue: "",
255
+ serialnum: 16,
256
+ children: []
257
+ },
258
+ {
259
+ xh: 18,
260
+ asid: "2EA2AABF953F4A3483ED854A0034BF92",
261
+ astype: 0,
262
+ tname: "gg_table",
263
+ attrid: "69008E895864440A9972137E5AC1C983",
264
+ attrname: "创建时间",
265
+ attrtype: 0,
266
+ info: '{"input":"date-picker","dataType":"date","auto-generate":true,"auto-generate-type":"currenttime"}',
267
+ info_base64: 0,
268
+ createtime: "2026-01-05 22:08:40",
269
+ attrvalue: "",
270
+ serialnum: 17,
271
+ children: []
272
+ }
273
+ ];
274
+ const langConfig = [
275
+ {
276
+ xh: "1",
277
+ lanid: "8338DC5023354520A7E9E67C21E2DA3E",
278
+ sysid: "2",
279
+ sysname: "下拉框数据",
280
+ systype: "",
281
+ pageid: "00",
282
+ pageinfo: "狗狗网站/狗狗后台管理系统",
283
+ dataid: "001",
284
+ datainfo: "重量-单位",
285
+ dicid: "10002",
286
+ info: "English",
287
+ content: "pound"
288
+ },
289
+ {
290
+ xh: "2",
291
+ lanid: "C83B74580A7F486B9D8FE858A4381D7B",
292
+ sysid: "2",
293
+ sysname: "下拉框数据",
294
+ systype: "",
295
+ pageid: "00",
296
+ pageinfo: "狗狗网站/狗狗后台管理系统",
297
+ dataid: "002",
298
+ datainfo: "重量-单位",
299
+ dicid: "10002",
300
+ info: "English",
301
+ content: "jin"
302
+ },
303
+ {
304
+ xh: "3",
305
+ lanid: "9ABF026B60764D9FAD8142D5C68D9BC9",
306
+ sysid: "2",
307
+ sysname: "下拉框数据",
308
+ systype: "",
309
+ pageid: "00",
310
+ pageinfo: "狗狗网站/狗狗后台管理系统",
311
+ dataid: "003",
312
+ datainfo: "性别",
313
+ dicid: "10002",
314
+ info: "English",
315
+ content: "male"
316
+ },
317
+ {
318
+ xh: "4",
319
+ lanid: "FB86A6C57CD341B3B1F8EF8410A1D488",
320
+ sysid: "2",
321
+ sysname: "下拉框数据",
322
+ systype: "",
323
+ pageid: "00",
324
+ pageinfo: "狗狗网站/狗狗后台管理系统",
325
+ dataid: "004",
326
+ datainfo: "性别",
327
+ dicid: "10002",
328
+ info: "English",
329
+ content: "female"
330
+ },
331
+ {
332
+ xh: "5",
333
+ lanid: "F2B144889AF14898B5AD3E8F3271D3A6",
334
+ sysid: "2",
335
+ sysname: "下拉框数据",
336
+ systype: "",
337
+ pageid: "00",
338
+ pageinfo: "狗狗网站/狗狗后台管理系统",
339
+ dataid: "005",
340
+ datainfo: "是否绝育",
341
+ dicid: "10002",
342
+ info: "English",
343
+ content: "yes"
344
+ },
345
+ {
346
+ xh: "6",
347
+ lanid: "D84DFE47C1D6468D95E5058C393DC6B3",
348
+ sysid: "2",
349
+ sysname: "下拉框数据",
350
+ systype: "",
351
+ pageid: "00",
352
+ pageinfo: "狗狗网站/狗狗后台管理系统",
353
+ dataid: "006",
354
+ datainfo: "是否绝育",
355
+ dicid: "10002",
356
+ info: "English",
357
+ content: "no"
358
+ },
359
+ {
360
+ xh: "7",
361
+ lanid: "7DA23D28310B43B2B774552EFFCFDFC6",
362
+ sysid: "2",
363
+ sysname: "下拉框数据",
364
+ systype: "",
365
+ pageid: "00",
366
+ pageinfo: "狗狗网站/狗狗后台管理系统",
367
+ dataid: "007",
368
+ datainfo: "是否对其他狗有攻击性",
369
+ dicid: "10002",
370
+ info: "English",
371
+ content: "yes"
372
+ },
373
+ {
374
+ xh: "8",
375
+ lanid: "BA3FB7CC2E954594B9F33CFFC68C1031",
376
+ sysid: "2",
377
+ sysname: "下拉框数据",
378
+ systype: "",
379
+ pageid: "5000000",
380
+ pageinfo: "狗狗网站-实例数据-套餐",
381
+ dataid: "5000001-1-1",
382
+ datainfo: "套餐-寄养-名称",
383
+ dicid: "10002",
384
+ info: "English",
385
+ content: "Boarding"
386
+ },
387
+ {
388
+ xh: "9",
389
+ lanid: "21783AB49EDA455B84B5CE3B32130FA5",
390
+ sysid: "2",
391
+ sysname: "下拉框数据",
392
+ systype: "",
393
+ pageid: "5000000",
394
+ pageinfo: "狗狗网站-实例数据-套餐",
395
+ dataid: "5000001-1-2",
396
+ datainfo: "套餐-寄养-介绍",
397
+ dicid: "10002",
398
+ info: "English",
399
+ content: "At The Dog ParQ, our daycare service is designed to provide your dog with a day filled with socialization, fun, and plenty of exercise. For a flat rate of $25 per day, your dog can enjoy our extensive play areas and interact with other dogs in a safe, supervised environment. We also offer a 10-day p"
400
+ },
401
+ {
402
+ xh: "10",
403
+ lanid: "345D84917C3B459CA48D49060FA1A00E",
404
+ sysid: "2",
405
+ sysname: "下拉框数据",
406
+ systype: "",
407
+ pageid: "5000000",
408
+ pageinfo: "狗狗网站-实例数据-套餐",
409
+ dataid: "5000001-1-3",
410
+ datainfo: "套餐-寄养/日托-价格规格",
411
+ dicid: "10002",
412
+ info: "English",
413
+ content: "/day"
111
414
  }
112
415
  ];
113
416
  export {
114
417
  attrList,
115
- baseAttrList
418
+ baseAttrList,
419
+ langConfig
116
420
  };
@@ -112,7 +112,7 @@ export declare const handleUrlOptions: (val: any, delimiter: string, list: any[]
112
112
  * @param param0
113
113
  * @returns
114
114
  */
115
- export declare const handleSelectOptions: ({ commonRequestWidthParams, commonRequest, interfaceTypeDict, interfaceTypeSysDict, actionUrlKey, actionUrlExtraParams, item, }: {
115
+ export declare const handleSelectOptions: ({ commonRequestWidthParams, commonRequest, interfaceTypeDict, interfaceTypeSysDict, actionUrlKey, actionUrlExtraParams, item, langConfig, }: {
116
116
  commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
117
117
  commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
118
118
  interfaceTypeDict?: string | undefined;
@@ -120,6 +120,7 @@ export declare const handleSelectOptions: ({ commonRequestWidthParams, commonReq
120
120
  actionUrlKey?: string | undefined;
121
121
  actionUrlExtraParams?: object | undefined;
122
122
  item: Ijson;
123
+ langConfig?: any[] | undefined;
123
124
  }) => Promise<any[]>;
124
125
  /**
125
126
  * 单层详情数据对应到单个属性集
@@ -1,6 +1,7 @@
1
1
  import { message } from "antd";
2
2
  import dayjs from "dayjs";
3
3
  import _ from "lodash";
4
+ import { getTitle } from "../components/DynamicForm/func";
4
5
  function getJson(jsonStr) {
5
6
  try {
6
7
  return JSON.parse(jsonStr);
@@ -448,7 +449,8 @@ const handleSelectOptions = async ({
448
449
  interfaceTypeSysDict = "YLZDSysConfigList",
449
450
  actionUrlKey = "action-url",
450
451
  actionUrlExtraParams = {},
451
- item
452
+ item,
453
+ langConfig
452
454
  }) => {
453
455
  var _a;
454
456
  let options = [];
@@ -518,7 +520,7 @@ const handleSelectOptions = async ({
518
520
  };
519
521
  if (item.inputType === "local") {
520
522
  options = ((_a = item.data) == null ? void 0 : _a.map((val) => ({
521
- label: val,
523
+ label: (langConfig == null ? void 0 : langConfig.length) ? getTitle(langConfig, val) : val,
522
524
  value: val
523
525
  }))) || [];
524
526
  if (item.options && Array.isArray(item.options)) {
@@ -12,14 +12,10 @@ export declare const disabledDate: RangePickerProps['disabledDate'];
12
12
  * 将URL中的指定字段拼接为字符串
13
13
  */
14
14
  export declare const handleUrlOptions: (val: any, delimiter: string, list: any[]) => string;
15
- /**
16
- * 根据配置处理成下拉数据
17
- * @param param0
18
- * @returns
19
- */
20
15
  /**
21
16
  * attrList 格式的单层数组 处理成对象{attrid:attrname}
22
17
  */
23
18
  export declare const handleGetSingleAttrListObj: (children: any[]) => {
24
19
  [key: string]: any;
25
20
  }[];
21
+ export declare const getTitle: (langConfig: any[], dataID?: string) => any;
@@ -114,7 +114,12 @@ const handleGetSingleAttrListObj = (children) => {
114
114
  });
115
115
  return dealList(children);
116
116
  };
117
+ const getTitle = (langConfig, dataID) => {
118
+ const titleData = langConfig.find((x) => (x == null ? void 0 : x.dataid) === dataID);
119
+ return (titleData == null ? void 0 : titleData.content) ?? dataID;
120
+ };
117
121
  exports.disabledDate = disabledDate;
122
+ exports.getTitle = getTitle;
118
123
  exports.handleGetPlaceholder = handleGetPlaceholder;
119
124
  exports.handleGetSingleAttrListObj = handleGetSingleAttrListObj;
120
125
  exports.handleSetFormItemInitialValue = handleSetFormItemInitialValue;
@@ -30,7 +30,8 @@ const DynamicForm = react.forwardRef((props, ref) => {
30
30
  formListItemWidth,
31
31
  formListItemName,
32
32
  isEdit = false,
33
- langId = "10001"
33
+ langId = "10001",
34
+ langConfig = []
34
35
  } = props;
35
36
  const delFileListRef = react.useRef([]);
36
37
  const updateDelFileList = (file) => {
@@ -51,7 +52,8 @@ const DynamicForm = react.forwardRef((props, ref) => {
51
52
  CustomModalComponent,
52
53
  isEdit,
53
54
  formShowType,
54
- langId
55
+ langId,
56
+ langConfig
55
57
  });
56
58
  react.useImperativeHandle(ref, () => ({
57
59
  getDelFileList: () => {
@@ -14,7 +14,7 @@ export interface IMYRadio {
14
14
  interfaceTypeSysDict: string;
15
15
  actionUrlKey: string;
16
16
  actionUrlExtraParams: object;
17
- langId?: string;
17
+ langConfig?: any[];
18
18
  }
19
19
  declare const MyCheckbox: (props: IMYRadio) => import("react/jsx-runtime").JSX.Element;
20
20
  export default MyCheckbox;