szld-libs 0.2.98 → 0.3.1

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 (106) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/szld-components.es.js +32089 -20004
  3. package/dist/szld-components.umd.js +72 -60
  4. package/es/components/DynamicForm/index.d.ts +2 -0
  5. package/es/components/DynamicForm/index.js +3 -2
  6. package/es/components/DynamicForm/selectModel/index.js +1 -1
  7. package/es/components/DynamicForm/selectModelBackfillFormItem/index.d.ts +27 -0
  8. package/es/components/DynamicForm/selectModelBackfillFormItem/index.js +242 -0
  9. package/es/components/DynamicForm/selectModelBackfillFormItem/vite.svg +1 -0
  10. package/es/components/DynamicForm/useDynamicForm.js +22 -1
  11. package/es/components/DynamicFormMobile/func.d.ts +35 -0
  12. package/es/components/DynamicFormMobile/func.js +204 -0
  13. package/es/components/DynamicFormMobile/index.d.ts +116 -0
  14. package/es/components/DynamicFormMobile/index.js +134 -0
  15. package/es/components/DynamicFormMobile/myCascader/index.d.ts +17 -0
  16. package/es/components/DynamicFormMobile/myCascader/index.js +196 -0
  17. package/es/components/DynamicFormMobile/myCascader/vite.svg +1 -0
  18. package/es/components/DynamicFormMobile/myCheckbox/index.d.ts +19 -0
  19. package/es/components/DynamicFormMobile/myCheckbox/index.js +109 -0
  20. package/es/components/DynamicFormMobile/myCheckbox/vite.svg +1 -0
  21. package/es/components/DynamicFormMobile/myRadio/index.d.ts +20 -0
  22. package/es/components/DynamicFormMobile/myRadio/index.js +107 -0
  23. package/es/components/DynamicFormMobile/myRadio/vite.svg +1 -0
  24. package/es/components/DynamicFormMobile/mySelect/index.css +31 -0
  25. package/es/components/DynamicFormMobile/mySelect/index.d.ts +16 -0
  26. package/es/components/DynamicFormMobile/mySelect/index.js +147 -0
  27. package/es/components/DynamicFormMobile/mySelect/vite.svg +1 -0
  28. package/es/components/DynamicFormMobile/myUpload/index.css +3 -0
  29. package/es/components/DynamicFormMobile/myUpload/index.d.ts +16 -0
  30. package/es/components/DynamicFormMobile/myUpload/index.js +103 -0
  31. package/es/components/DynamicFormMobile/myUpload/vite.svg +1 -0
  32. package/es/components/DynamicFormMobile/radioCard/index.d.ts +12 -0
  33. package/es/components/DynamicFormMobile/radioCard/index.js +142 -0
  34. package/es/components/DynamicFormMobile/radioCard/vite.svg +1 -0
  35. package/es/components/DynamicFormMobile/selectModel/index.d.ts +22 -0
  36. package/es/components/DynamicFormMobile/selectModel/index.js +235 -0
  37. package/es/components/DynamicFormMobile/selectModel/vite.svg +1 -0
  38. package/es/components/DynamicFormMobile/selectModelBackfillFormItem/index.d.ts +27 -0
  39. package/es/components/DynamicFormMobile/selectModelBackfillFormItem/index.js +242 -0
  40. package/es/components/DynamicFormMobile/selectModelBackfillFormItem/vite.svg +1 -0
  41. package/es/components/DynamicFormMobile/useDynamicForm.d.ts +43 -0
  42. package/es/components/DynamicFormMobile/useDynamicForm.js +772 -0
  43. package/es/components/DynamicFormMobile/vite.svg +1 -0
  44. package/es/index.css +1 -0
  45. package/es/index.d.ts +1 -1
  46. package/es/index.js +36 -30
  47. package/es/main.d.ts +2 -1
  48. package/es/main.js +22 -20
  49. package/es/mock/index.d.ts +1 -305
  50. package/es/mock/index.js +20 -364
  51. package/es/services/index.js +3 -5
  52. package/es/services/request.js +2 -2
  53. package/es/utils/method.d.ts +4 -1
  54. package/es/utils/method.js +25 -8
  55. package/lib/components/DynamicForm/index.d.ts +2 -0
  56. package/lib/components/DynamicForm/index.js +3 -2
  57. package/lib/components/DynamicForm/selectModel/index.js +1 -1
  58. package/lib/components/DynamicForm/selectModelBackfillFormItem/index.d.ts +27 -0
  59. package/lib/components/DynamicForm/selectModelBackfillFormItem/index.js +242 -0
  60. package/lib/components/DynamicForm/selectModelBackfillFormItem/vite.svg +1 -0
  61. package/lib/components/DynamicForm/useDynamicForm.js +22 -1
  62. package/lib/components/DynamicFormMobile/func.d.ts +35 -0
  63. package/lib/components/DynamicFormMobile/func.js +204 -0
  64. package/lib/components/DynamicFormMobile/index.d.ts +116 -0
  65. package/lib/components/DynamicFormMobile/index.js +133 -0
  66. package/lib/components/DynamicFormMobile/myCascader/index.d.ts +17 -0
  67. package/lib/components/DynamicFormMobile/myCascader/index.js +195 -0
  68. package/lib/components/DynamicFormMobile/myCascader/vite.svg +1 -0
  69. package/lib/components/DynamicFormMobile/myCheckbox/index.d.ts +19 -0
  70. package/lib/components/DynamicFormMobile/myCheckbox/index.js +108 -0
  71. package/lib/components/DynamicFormMobile/myCheckbox/vite.svg +1 -0
  72. package/lib/components/DynamicFormMobile/myRadio/index.d.ts +20 -0
  73. package/lib/components/DynamicFormMobile/myRadio/index.js +106 -0
  74. package/lib/components/DynamicFormMobile/myRadio/vite.svg +1 -0
  75. package/lib/components/DynamicFormMobile/mySelect/index.css +31 -0
  76. package/lib/components/DynamicFormMobile/mySelect/index.d.ts +16 -0
  77. package/lib/components/DynamicFormMobile/mySelect/index.js +146 -0
  78. package/lib/components/DynamicFormMobile/mySelect/vite.svg +1 -0
  79. package/lib/components/DynamicFormMobile/myUpload/index.css +3 -0
  80. package/lib/components/DynamicFormMobile/myUpload/index.d.ts +16 -0
  81. package/lib/components/DynamicFormMobile/myUpload/index.js +102 -0
  82. package/lib/components/DynamicFormMobile/myUpload/vite.svg +1 -0
  83. package/lib/components/DynamicFormMobile/radioCard/index.d.ts +12 -0
  84. package/lib/components/DynamicFormMobile/radioCard/index.js +141 -0
  85. package/lib/components/DynamicFormMobile/radioCard/vite.svg +1 -0
  86. package/lib/components/DynamicFormMobile/selectModel/index.d.ts +22 -0
  87. package/lib/components/DynamicFormMobile/selectModel/index.js +235 -0
  88. package/lib/components/DynamicFormMobile/selectModel/vite.svg +1 -0
  89. package/lib/components/DynamicFormMobile/selectModelBackfillFormItem/index.d.ts +27 -0
  90. package/lib/components/DynamicFormMobile/selectModelBackfillFormItem/index.js +242 -0
  91. package/lib/components/DynamicFormMobile/selectModelBackfillFormItem/vite.svg +1 -0
  92. package/lib/components/DynamicFormMobile/useDynamicForm.d.ts +43 -0
  93. package/lib/components/DynamicFormMobile/useDynamicForm.js +771 -0
  94. package/lib/components/DynamicFormMobile/vite.svg +1 -0
  95. package/lib/index.css +1 -0
  96. package/lib/index.d.ts +1 -1
  97. package/lib/index.js +36 -30
  98. package/lib/main.d.ts +2 -1
  99. package/lib/main.js +2 -0
  100. package/lib/mock/index.d.ts +1 -305
  101. package/lib/mock/index.js +19 -363
  102. package/lib/services/index.js +3 -5
  103. package/lib/services/request.js +2 -2
  104. package/lib/utils/method.d.ts +4 -1
  105. package/lib/utils/method.js +25 -8
  106. package/package.json +1 -1
package/lib/mock/index.js CHANGED
@@ -1,387 +1,43 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const baseAttrList = [
4
- {
5
- xh: 1,
6
- asid: "2C648B554C994DED994D6049BA8E7488",
7
- astype: 0,
8
- tname: "fcctest",
9
- attrid: "987C9E76D2604B2587A259E193E0E4D4",
10
- attrname: "输入框",
11
- attrtype: 0,
12
- info: '{"input":"text","dataType":"string","length":100}',
13
- info_base64: 0,
14
- createtime: "2026-01-25 14:02:34",
15
- attrvalue: "",
16
- serialnum: 1,
17
- children: [],
18
- json: {
19
- input: "text",
20
- dataType: "string",
21
- length: 100
22
- }
23
- },
24
- {
25
- xh: 2,
26
- asid: "2C648B554C994DED994D6049BA8E7488",
27
- astype: 0,
28
- tname: "fcctest",
29
- attrid: "28F623FA152D44B89BA2518D52AA172B",
30
- attrname: "数字输入框",
31
- attrtype: 0,
32
- info: '{"input":"number","dataType":"int"}',
33
- info_base64: 0,
34
- createtime: "2026-01-25 14:03:01",
35
- attrvalue: "",
36
- serialnum: 2,
37
- children: [],
38
- json: {
39
- input: "number",
40
- dataType: "int"
41
- }
42
- },
43
- {
44
- xh: 3,
45
- asid: "2C648B554C994DED994D6049BA8E7488",
46
- astype: 0,
47
- tname: "fcctest",
48
- attrid: "309919F2EFCD4625B4428D4B12B5169F",
49
- attrname: "日期段选择",
50
- attrtype: 0,
51
- info: '{"input":"range-picker","range-picker-save":"range","dataType":"string","length":100,"disable-date-goover":true}',
52
- info_base64: 0,
53
- createtime: "2026-01-25 14:05:35",
54
- attrvalue: "",
55
- serialnum: 3,
56
- children: [],
57
- json: {
58
- input: "range-picker",
59
- "range-picker-save": "range",
60
- dataType: "string",
61
- length: 100,
62
- "disable-date-goover": true
63
- }
64
- }
65
- ];
3
+ const baseAttrList = [];
66
4
  const attrList = [
67
5
  {
68
6
  xh: 1,
69
- asid: "2C648B554C994DED994D6049BA8E7488",
70
- astype: 0,
71
- tname: "fcctest",
72
- attrid: "987C9E76D2604B2587A259E193E0E4D4",
73
- attrname: "输入框",
7
+ asid: "904A28FACAF346DFA63CBEEB3437BDA8",
8
+ attrid: "6970C54A08E54463888CD8F9E7FD851B",
9
+ attrname: "喂药日期",
74
10
  attrtype: 0,
75
- info: '{"input":"text","dataType":"string","length":100}',
11
+ info: '{"input":"multiple-date-picker","range-picker-save":"single","dataType":"string","length":1000}',
76
12
  info_base64: 0,
77
- createtime: "2026-01-25 14:02:34",
78
- attrvalue: "",
13
+ createtime: "2026-01-05 15:33:36",
79
14
  serialnum: 1,
80
- children: [],
81
- json: {
82
- input: "text",
83
- dataType: "string",
84
- length: 100
85
- }
15
+ label_list: []
86
16
  },
87
17
  {
88
18
  xh: 2,
89
- asid: "2C648B554C994DED994D6049BA8E7488",
90
- astype: 0,
91
- tname: "fcctest",
92
- attrid: "28F623FA152D44B89BA2518D52AA172B",
93
- attrname: "数字输入框",
19
+ asid: "904A28FACAF346DFA63CBEEB3437BDA8",
20
+ attrid: "98FD46568CAC4F248B5FD66D52DF5086",
21
+ attrname: "当日次数",
94
22
  attrtype: 0,
95
- info: '{"input":"number","dataType":"int"}',
23
+ info: '{"input":"text","dataType":"string","length":1}',
96
24
  info_base64: 0,
97
- createtime: "2026-01-25 14:03:01",
98
- attrvalue: "",
25
+ createtime: "2026-01-05 15:33:45",
99
26
  serialnum: 2,
100
- children: [],
101
- json: {
102
- input: "number",
103
- dataType: "int"
104
- }
27
+ label_list: []
105
28
  },
106
29
  {
107
30
  xh: 3,
108
- asid: "2C648B554C994DED994D6049BA8E7488",
109
- astype: 0,
110
- tname: "fcctest",
111
- attrid: "309919F2EFCD4625B4428D4B12B5169F",
112
- attrname: "日期段选择",
31
+ asid: "904A28FACAF346DFA63CBEEB3437BDA8",
32
+ attrid: "E7C4B706E65E4F81B51AAA9D313B5482",
33
+ attrname: "当日时间",
113
34
  attrtype: 0,
114
- info: '{"input":"range-picker","range-picker-save":"range","dataType":"string","length":100,"disable-date-goover":true}',
35
+ info: '{"input":"mult-select","inputType":"local","data":["09:00","10:00","11:00","12:00","13:00","14:00"],"dataType":"string","length":100}',
115
36
  info_base64: 0,
116
- createtime: "2026-01-25 14:05:35",
117
- attrvalue: "",
37
+ createtime: "2026-01-05 15:34:22",
118
38
  serialnum: 3,
119
- children: [],
120
- json: {
121
- input: "range-picker",
122
- "range-picker-save": "range",
123
- dataType: "string",
124
- length: 100,
125
- "disable-date-goover": true
126
- }
127
- }
128
- ];
129
- const testList = [
130
- {
131
- xh: 1,
132
- asid: "94C24D4B534A43A893ADDD78021AC393",
133
- astype: 0,
134
- tname: "dog_room_type_table",
135
- attrid: "1710D157CDFF46A7A4E4501095C8ACBE",
136
- attrname: "唯一编号",
137
- attrtype: 0,
138
- info: "eyJpbnB1dCI6InRleHQiLCJkYXRhVHlwZSI6InN0cmluZyIsImxlbmd0aCI6MTAwLCJhdXRvLWdlbmVyYXRlIjp0cnVlLCJhdXRvLWdlbmVyYXRlLXR5cGUiOiJndWlkIn0=",
139
- info_base64: 1,
140
- createtime: "2026-01-26 10:06:27",
141
- attrvalue: "01",
142
- serialnum: 0,
143
- children: [],
144
- json: {
145
- input: "text",
146
- dataType: "string",
147
- length: 100,
148
- "auto-generate": true,
149
- "auto-generate-type": "guid"
150
- }
151
- },
152
- {
153
- xh: 2,
154
- asid: "94C24D4B534A43A893ADDD78021AC393",
155
- astype: 0,
156
- tname: "dog_room_type_table",
157
- attrid: "41CCD121BD6A4356A95CC24968F86D75",
158
- attrname: "房型名称",
159
- attrtype: 0,
160
- info: "eyJpbnB1dCI6InRleHQiLCJkYXRhVHlwZSI6InN0cmluZyIsImxlbmd0aCI6MTAwLCJtdXN0Ijp0cnVlfQ==",
161
- info_base64: 1,
162
- createtime: "2025-11-14 16:11:23",
163
- attrvalue: "12",
164
- serialnum: 1,
165
- children: [],
166
- json: {
167
- input: "text",
168
- dataType: "string",
169
- length: 100,
170
- must: true
171
- }
172
- },
173
- {
174
- xh: 3,
175
- asid: "94C24D4B534A43A893ADDD78021AC393",
176
- astype: 0,
177
- tname: "dog_room_type_table",
178
- attrid: "40E6CE0B4C9647FF9786AE8E1B230F94",
179
- attrname: "房型价格",
180
- attrtype: 0,
181
- info: '{"input":"text","dataType":"string","length":20,"must":true}',
182
- info_base64: 0,
183
- createtime: "2025-11-14 16:11:23",
184
- attrvalue: "22",
185
- serialnum: 2,
186
- children: [],
187
- json: {
188
- input: "text",
189
- dataType: "string",
190
- length: 20,
191
- must: true
192
- }
193
- },
194
- {
195
- xh: 4,
196
- asid: "94C24D4B534A43A893ADDD78021AC393",
197
- astype: 0,
198
- tname: "dog_room_type_table",
199
- attrid: "846FC648A4924501A76DAB1F28F3A803",
200
- attrname: "房型说明",
201
- attrtype: 0,
202
- info: '{"input":"textarea","dataType":"string","length":500}',
203
- info_base64: 0,
204
- createtime: "2025-11-14 16:11:23",
205
- attrvalue: "3",
206
- serialnum: 3,
207
- children: [],
208
- json: {
209
- input: "textarea",
210
- dataType: "string",
211
- length: 500
212
- }
213
- },
214
- {
215
- xh: 5,
216
- asid: "94C24D4B534A43A893ADDD78021AC393",
217
- astype: 0,
218
- tname: "dog_room_type_table",
219
- attrid: "394EBAE299694BBA88C2300C5C0FA5F7",
220
- attrname: "房型图片",
221
- attrtype: 0,
222
- info: '{"input":"image","upload-accept":".png,.jpg,.jpeg","upload-max-count":"1","upload-size":"5","dataType":"string","length":1000,"instruction":"仅允许上传1个.png,.jpg,.jpeg文件","instruction-color":"#999999"}',
223
- info_base64: 0,
224
- createtime: "2025-11-14 16:11:23",
225
- attrvalue: "",
226
- serialnum: 4,
227
- children: [],
228
- json: {
229
- input: "image",
230
- "upload-accept": ".png,.jpg,.jpeg",
231
- "upload-max-count": "1",
232
- "upload-size": "5",
233
- dataType: "string",
234
- length: 1e3,
235
- instruction: "仅允许上传1个.png,.jpg,.jpeg文件",
236
- "instruction-color": "#999999"
237
- }
238
- },
239
- {
240
- xh: 6,
241
- asid: "94C24D4B534A43A893ADDD78021AC393",
242
- astype: 0,
243
- tname: "dog_room_type_table",
244
- attrid: "F8F7239DB205465585F5B55755769FF0",
245
- attrname: "总房间数",
246
- attrtype: 0,
247
- info: '{"input":"number","dataType":"int","default":"0"}',
248
- info_base64: 0,
249
- createtime: "2026-01-24 11:06:17",
250
- attrvalue: "0",
251
- serialnum: 5,
252
- children: [],
253
- json: {
254
- input: "number",
255
- dataType: "int",
256
- default: "0"
257
- }
258
- },
259
- {
260
- xh: 7,
261
- asid: "94C24D4B534A43A893ADDD78021AC393",
262
- astype: 0,
263
- tname: "dog_room_type_table",
264
- attrid: "A190218E6AF64176A71544FD4FEE74F6",
265
- attrname: "已住房间数",
266
- attrtype: 0,
267
- info: '{"input":"number","dataType":"int","default":"0"}',
268
- info_base64: 0,
269
- createtime: "2026-01-24 11:09:26",
270
- attrvalue: "0",
271
- serialnum: 6,
272
- children: [],
273
- json: {
274
- input: "number",
275
- dataType: "int",
276
- default: "0"
277
- }
278
- },
279
- {
280
- xh: 8,
281
- asid: "94C24D4B534A43A893ADDD78021AC393",
282
- astype: 0,
283
- tname: "dog_room_type_table",
284
- attrid: "1666323D69DC4AC8B28EC38B72BC24FF",
285
- attrname: "房间",
286
- attrtype: 1,
287
- info: '{"propertiesID":"2AA903FDA83245C9A933F99BA31FD739"}',
288
- info_base64: 0,
289
- createtime: "2026-01-26 10:09:33",
290
- attrvalue: "dog_room_type_table,1666323D69DC4AC8B28EC38B72BC24FF,dog_room_table",
291
- serialnum: 7,
292
- children: [
293
- [
294
- {
295
- xh: 1,
296
- asid: "2AA903FDA83245C9A933F99BA31FD739",
297
- astype: 0,
298
- tname: "dog_room_table",
299
- attrid: "3C8FDCA9AD3E46F58006FA0DFE6B7612",
300
- attrname: "唯一编号",
301
- attrtype: 0,
302
- info: '{"input":"text","dataType":"string","length":100,"auto-generate":true,"auto-generate-type":"guid"}',
303
- info_base64: 0,
304
- createtime: "2026-01-26 10:03:45",
305
- attrvalue: "",
306
- serialnum: 0,
307
- children: [],
308
- json: {
309
- input: "text",
310
- dataType: "string",
311
- length: 100,
312
- "auto-generate": true,
313
- "auto-generate-type": "guid"
314
- }
315
- },
316
- {
317
- xh: 2,
318
- asid: "2AA903FDA83245C9A933F99BA31FD739",
319
- astype: 0,
320
- tname: "dog_room_table",
321
- attrid: "902B5AD407D34B9E8F267FABBE244B15",
322
- attrname: "房间编号",
323
- attrtype: 0,
324
- info: '{"input":"text","dataType":"string","length":100,"must":true}',
325
- info_base64: 0,
326
- createtime: "2025-11-14 16:18:24",
327
- attrvalue: "",
328
- serialnum: 1,
329
- children: [],
330
- json: {
331
- input: "text",
332
- dataType: "string",
333
- length: 100,
334
- must: true
335
- }
336
- },
337
- {
338
- xh: 3,
339
- asid: "2AA903FDA83245C9A933F99BA31FD739",
340
- astype: 0,
341
- tname: "dog_room_table",
342
- attrid: "276B08A817F540A3B5B56FBB5016E1D2",
343
- attrname: "房间名称",
344
- attrtype: 0,
345
- info: '{"input":"text","dataType":"string","length":100,"must":true}',
346
- info_base64: 0,
347
- createtime: "2026-01-24 11:53:53",
348
- attrvalue: "",
349
- serialnum: 2,
350
- children: [],
351
- json: {
352
- input: "text",
353
- dataType: "string",
354
- length: 100,
355
- must: true
356
- }
357
- },
358
- {
359
- xh: 4,
360
- asid: "2AA903FDA83245C9A933F99BA31FD739",
361
- astype: 0,
362
- tname: "dog_room_table",
363
- attrid: "BBB307871C054A1AAC8B39526B62B4D0",
364
- attrname: "关联房型编号",
365
- attrtype: 0,
366
- info: '{"input":"text","dataType":"string","length":100}',
367
- info_base64: 0,
368
- createtime: "2025-11-14 16:18:24",
369
- attrvalue: "",
370
- serialnum: 3,
371
- children: [],
372
- json: {
373
- input: "text",
374
- dataType: "string",
375
- length: 100
376
- }
377
- }
378
- ]
379
- ],
380
- json: {
381
- propertiesID: "2AA903FDA83245C9A933F99BA31FD739"
382
- }
39
+ label_list: []
383
40
  }
384
41
  ];
385
42
  exports.attrList = attrList;
386
43
  exports.baseAttrList = baseAttrList;
387
- exports.testList = testList;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const queryString = require("query-string");
4
4
  const request = require("./request");
5
5
  const _enum = require("../utils/enum");
6
- const szldLibs = require("szld-libs");
6
+ const main = require("../main");
7
7
  const commonRequest = async (InterfaceType, data) => {
8
8
  return request.post("", data, {
9
9
  params: {
@@ -36,7 +36,6 @@ const commonRequestActionUrl = async (data) => {
36
36
  });
37
37
  };
38
38
  const uploadAction = () => {
39
- var _a;
40
39
  const SessionID = sessionStorage.getItem(_enum.TOKEN);
41
40
  const params = {
42
41
  ...request.domainSetting.baseParams,
@@ -52,12 +51,11 @@ const uploadAction = () => {
52
51
  obj[key] = params[key] || "";
53
52
  });
54
53
  const encryptParams = queryString.stringify(obj, { sort: false });
55
- const sha = new szldLibs.HmacSHA512((_a = window == null ? void 0 : window.CONFIG) == null ? void 0 : _a.Salt);
54
+ const sha = new main.HmacSHA512("HnSzldjt#2557013#");
56
55
  params["TokenId"] = sha.encrypt(encryptParams);
57
56
  return request.domainSetting.baseUrl + "?" + queryString.stringify(params);
58
57
  };
59
58
  const uploadFormAction = () => {
60
- var _a;
61
59
  const SessionID = sessionStorage.getItem(_enum.TOKEN);
62
60
  const params = {
63
61
  ...request.domainSetting.baseParams,
@@ -73,7 +71,7 @@ const uploadFormAction = () => {
73
71
  obj[key] = params[key] || "";
74
72
  });
75
73
  const encryptParams = queryString.stringify(obj, { sort: false });
76
- const sha = new szldLibs.HmacSHA512((_a = window == null ? void 0 : window.CONFIG) == null ? void 0 : _a.Salt);
74
+ const sha = new main.HmacSHA512("HnSzldjt#2557013#");
77
75
  params["TokenId"] = sha.encrypt(encryptParams);
78
76
  return request.domainSetting.baseUrl + "?" + queryString.stringify(params);
79
77
  };
@@ -17,8 +17,8 @@ const domainSetting = {
17
17
  if (env === "test" || env === "dev") {
18
18
  domainSetting.baseUrl = "/ucc";
19
19
  domainSetting.baseParams = {
20
- AppID: "KF_SZLD_YLFWLR",
21
- Password: "KF_SZLD_YLFWLR2557013"
20
+ AppID: "KF_SZLD_DDGLXT",
21
+ Password: "KF_SZLD_DDGLXT2557013"
22
22
  };
23
23
  }
24
24
  if (env === "dev") {
@@ -10,7 +10,10 @@ export declare function isBase64(str: string): boolean;
10
10
  * @param isListToObj 是否将列表转换为提交数据格式对象,默认false
11
11
  * @returns
12
12
  */
13
- export declare const handleSubmitForm: (originalData: any, allValues: any, isListToObj?: boolean) => {
13
+ export declare const handleSubmitForm: (originalData: {
14
+ attr_list: any[];
15
+ isMobile?: boolean;
16
+ }, allValues: any, isListToObj?: boolean) => {
14
17
  updatedData: any;
15
18
  uploadedFiles: any[];
16
19
  };
@@ -31,6 +31,7 @@ function isBase64(str) {
31
31
  }
32
32
  const handleSubmitForm = (originalData, allValues, isListToObj) => {
33
33
  let updatedData = _.cloneDeep(originalData);
34
+ const { isMobile = false } = originalData;
34
35
  let uploadedFiles = [];
35
36
  const processAttrList = (attrList) => {
36
37
  try {
@@ -44,7 +45,7 @@ const handleSubmitForm = (originalData, allValues, isListToObj) => {
44
45
  attrItem.attrvalue = "";
45
46
  continue;
46
47
  }
47
- handleDealValue(attrItem, formValue);
48
+ handleDealValue(attrItem, formValue, isMobile);
48
49
  }
49
50
  attrList.forEach((item) => {
50
51
  if (item.children && Array.isArray(item.children) && item.children.length > 0 && !Array.isArray(item.children[0])) {
@@ -61,7 +62,7 @@ const handleSubmitForm = (originalData, allValues, isListToObj) => {
61
62
  } catch (error) {
62
63
  }
63
64
  };
64
- const handleDealValue = (attrItem, formValue) => {
65
+ const handleDealValue = (attrItem, formValue, isMobile2) => {
65
66
  var _a, _b, _c, _d;
66
67
  const inputType = (_a = attrItem.json) == null ? void 0 : _a.input;
67
68
  const format = (_b = attrItem.json) == null ? void 0 : _b["format"];
@@ -93,17 +94,33 @@ const handleSubmitForm = (originalData, allValues, isListToObj) => {
93
94
  }
94
95
  break;
95
96
  case "range-picker":
96
- if (Array.isArray(formValue) && formValue.length > 0) {
97
- attrItem.attrvalue = formValue.join("~");
97
+ if (isMobile2) {
98
+ if (Array.isArray(formValue) && formValue.length > 0) {
99
+ attrItem.attrvalue = formValue == null ? void 0 : formValue.map((v) => dayjs(v).format(format || "YYYY-MM-DD")).join("~");
100
+ } else {
101
+ attrItem.attrvalue = "";
102
+ }
98
103
  } else {
99
- attrItem.attrvalue = "";
104
+ if (Array.isArray(formValue) && formValue.length > 0) {
105
+ attrItem.attrvalue = formValue.join("~");
106
+ } else {
107
+ attrItem.attrvalue = "";
108
+ }
100
109
  }
101
110
  break;
102
111
  case "multiple-date-picker":
103
- if (Array.isArray(formValue) && formValue.length > 0) {
104
- attrItem.attrvalue = formValue.join(",");
112
+ if (isMobile2) {
113
+ if (Array.isArray(formValue) && formValue.length > 0) {
114
+ attrItem.attrvalue = formValue == null ? void 0 : formValue.map((v) => dayjs(v).format(format || "YYYY-MM-DD")).join(",");
115
+ } else {
116
+ attrItem.attrvalue = formValue;
117
+ }
105
118
  } else {
106
- attrItem.attrvalue = formValue;
119
+ if (Array.isArray(formValue) && formValue.length > 0) {
120
+ attrItem.attrvalue = formValue.join(",");
121
+ } else {
122
+ attrItem.attrvalue = formValue;
123
+ }
107
124
  }
108
125
  break;
109
126
  case "checkbox":
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.2.98",
4
+ "version": "0.3.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",