szld-libs 0.3.95 → 0.3.96

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.
@@ -58,9 +58,9 @@ const DynamicForm = forwardRef((props, ref) => {
58
58
  return delFileListRef.current;
59
59
  }
60
60
  }));
61
- return /* @__PURE__ */ jsx(Fragment, { children: formShowType === "table" ? /* @__PURE__ */ jsx(Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsx(Flex, { className: "custom-form-body", children: /* @__PURE__ */ jsxs("div", { className: "custom-form-list", children: [
62
- /* @__PURE__ */ jsxs(Flex, { align: "center", style: { position: "relative", backgroundColor: "#004d32" }, children: [
63
- /* @__PURE__ */ jsx(Flex, { className: "custom-form-list-header", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
61
+ return /* @__PURE__ */ jsx(Fragment, { children: formShowType === "table" ? /* @__PURE__ */ jsx(Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxs(Flex, { className: "custom-form-body", children: [
62
+ /* @__PURE__ */ jsxs("div", { className: "custom-form-list", children: [
63
+ /* @__PURE__ */ jsx(Flex, { align: "center", style: { position: "relative", backgroundColor: "#004d32" }, children: /* @__PURE__ */ jsx(Flex, { className: "custom-form-list-header", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
64
64
  var _a, _b;
65
65
  const width = ((_a = child == null ? void 0 : child.json) == null ? void 0 : _a["input-width"]) && Number((_b = child == null ? void 0 : child.json) == null ? void 0 : _b["input-width"]) || defaultWidth;
66
66
  return /* @__PURE__ */ jsxs(
@@ -78,11 +78,8 @@ const DynamicForm = forwardRef((props, ref) => {
78
78
  },
79
79
  index
80
80
  );
81
- }) }),
82
- /* @__PURE__ */ jsx("a", { className: "custom-form-list-add-btn", onClick: () => add(), children: langId === "10001" ? "新增" : "Add" })
83
- ] }),
84
- fields.map((field) => /* @__PURE__ */ jsxs(Flex, { align: "center", className: "custom-form-list-item-container", children: [
85
- /* @__PURE__ */ jsx(Flex, { className: "custom-form-list-item", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
81
+ }) }) }),
82
+ fields.map((field) => /* @__PURE__ */ jsx(Flex, { align: "center", className: "custom-form-list-item-container", children: /* @__PURE__ */ jsx(Flex, { className: "custom-form-list-item", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
86
83
  var _a, _b;
87
84
  const width = ((_a = child == null ? void 0 : child.json) == null ? void 0 : _a["input-width"]) && Number((_b = child == null ? void 0 : child.json) == null ? void 0 : _b["input-width"]) || defaultWidth;
88
85
  return /* @__PURE__ */ jsx(
@@ -111,10 +108,15 @@ const DynamicForm = forwardRef((props, ref) => {
111
108
  },
112
109
  child.attrid || `child-${index}`
113
110
  );
114
- }) }),
115
- /* @__PURE__ */ jsx("a", { className: "custom-form-list-del-btn", onClick: () => remove(field.key), children: langId === "10001" ? "删除" : "Delete" })
116
- ] }, field.key))
117
- ] }) }) }) : /* @__PURE__ */ jsx(Row, { gutter: colSpace, children: formConfig.map((item, index) => /* @__PURE__ */ jsx(Fragment$1, { children: handleRenderItem({
111
+ }) }) }, field.key))
112
+ ] }),
113
+ /* @__PURE__ */ jsxs(Flex, { className: "operation", vertical: true, children: [
114
+ /* @__PURE__ */ jsx("a", { className: "custom-form-list-add-btn", onClick: () => add(), children: langId === "10001" ? "新增" : "Add" }),
115
+ (fields == null ? void 0 : fields.length) > 0 && (fields == null ? void 0 : fields.map((v, i) => {
116
+ return /* @__PURE__ */ jsx("a", { className: "custom-form-list-del-btn", onClick: () => remove(v.key), children: langId === "10001" ? "删除" : "Delete" }, v.key);
117
+ }))
118
+ ] })
119
+ ] }) }) : /* @__PURE__ */ jsx(Row, { gutter: colSpace, children: formConfig.map((item, index) => /* @__PURE__ */ jsx(Fragment$1, { children: handleRenderItem({
118
120
  item,
119
121
  readonly,
120
122
  colNum,
package/es/index.css CHANGED
@@ -1,12 +1,29 @@
1
1
 
2
2
  .custom-form-body {
3
- width: 1300;
3
+ width: 100%;
4
4
  }
5
5
  .custom-form-body .custom-form-list {
6
+ width: calc(100% - 48px);
6
7
  position: relative;
7
- width: 1300px;
8
8
  overflow-x: auto;
9
- background-color: #004d32;
9
+ background-color: #4fb890 !important;
10
+ }
11
+ .custom-form-body .custom-form-list::-webkit-scrollbar {
12
+ width: 8px;
13
+ height: 8px;
14
+ }
15
+ .custom-form-body .custom-form-list::-webkit-scrollbar-track {
16
+ background: #dff2f0;
17
+ }
18
+ .custom-form-body .custom-form-list::-webkit-scrollbar-thumb {
19
+ background: #4fb890;
20
+ border-radius: 4px;
21
+ }
22
+ .custom-form-body .custom-form-list::-webkit-scrollbar-thumb:hover {
23
+ background: #4fb890;
24
+ }
25
+ .custom-form-body .custom-form-list .ant-flex-align-center {
26
+ background-color: #4fb890 !important;
10
27
  }
11
28
  .custom-form-body .custom-form-list .custom-form-list-header {
12
29
  width: fit-content;
@@ -27,9 +44,10 @@
27
44
  }
28
45
  .custom-form-body .custom-form-list .custom-form-list-item-container {
29
46
  position: relative;
47
+ background-color: #fff !important;
30
48
  }
31
49
  .custom-form-body .custom-form-list .custom-form-list-item-container .custom-form-list-item {
32
- width: fit-content;
50
+ width: 100%;
33
51
  min-width: fit-content;
34
52
  /* 确保至少占满可视区域 */
35
53
  min-height: 48px;
@@ -48,49 +66,39 @@
48
66
  margin-left: 14px;
49
67
  }
50
68
  .custom-form-body .custom-form-list .custom-form-list-item-container:nth-child(even) .custom-form-list-item {
51
- width: 100%;
52
- background: #d6e2de !important;
69
+ border-bottom: 1px solid #dff2f0;
70
+ background: #fff !important;
53
71
  }
54
72
  .custom-form-body .custom-form-list .custom-form-list-item-container:nth-child(even) .custom-form-list-item .custom-form-list-item-content {
55
- background: #d6e2de !important;
73
+ background: #fff !important;
56
74
  }
57
75
  .custom-form-body .custom-form-list .custom-form-list-item-container:nth-child(odd) .custom-form-list-item {
58
- background-color: #c2d4ce !important;
76
+ border-bottom: 1px solid #dff2f0;
77
+ background-color: #fff !important;
59
78
  }
60
79
  .custom-form-body .custom-form-list .custom-form-list-item-container:nth-child(odd) .custom-form-list-item .custom-form-list-item-content {
61
- background-color: #c2d4ce !important;
80
+ background-color: #fff !important;
62
81
  }
63
82
  .custom-form-body .custom-form-list-add-btn {
64
- color: #004d32;
65
- background: #fff;
83
+ color: #4588d4;
84
+ background: #dff2f0;
66
85
  width: 48px;
67
86
  height: 48px;
68
87
  line-height: 48px;
69
88
  display: flex;
70
89
  flex-direction: row-reverse;
71
90
  flex-shrink: 0;
72
- position: sticky;
73
- text-decoration: underline;
74
- text-align: right;
75
- right: 0;
76
- top: 0;
77
91
  }
78
92
  .custom-form-body .custom-form-list-del-btn {
79
- background: #fff;
93
+ background: #dff2f0;
80
94
  width: 48px;
81
95
  line-height: 48px;
82
96
  text-align: center;
83
- color: #dc0000;
97
+ color: #ff4d4f;
84
98
  display: flex;
85
99
  flex-direction: row-reverse;
86
100
  align-items: center;
87
101
  align-self: stretch;
88
102
  /* 关键:让按钮高度填满父容器 */
89
103
  flex-shrink: 0;
90
- position: sticky;
91
- text-decoration: underline;
92
- text-align: right;
93
- right: 0;
94
- top: 0;
95
- bottom: 0;
96
104
  }
package/es/index.js CHANGED
@@ -1,10 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { commonRequestWidthParams, uploadFormAction, commonRequest } from "./services";
3
3
  import { handleAttrList } from "./utils/method";
4
- import { BackHeader, DynamicFormMobile } from "./main";
4
+ import { BackHeader, DynamicForm } from "./main";
5
5
  import { BrowserRouter } from "react-router-dom";
6
- import { ConfigProvider, App } from "antd";
7
- import { Form, Button } from "react-vant";
6
+ import { ConfigProvider, App, Form } from "antd";
8
7
  import { useRef, useState, useEffect } from "react";
9
8
  import ReactDOM from "react-dom/client";
10
9
  import zhCN from "antd/es/locale/zh_CN";
@@ -33,26 +32,24 @@ const Demo = () => {
33
32
  };
34
33
  return /* @__PURE__ */ jsxs("div", { style: { height: "100vh", display: "flex", flexDirection: "column", gap: 20 }, children: [
35
34
  /* @__PURE__ */ jsx(BackHeader, { title: "页头组件", isBack: true }),
36
- /* @__PURE__ */ jsx("div", { style: {}, children: /* @__PURE__ */ jsxs(Form, { form, onValuesChange, onFinish, children: [
37
- /* @__PURE__ */ jsx(
38
- DynamicFormMobile,
39
- {
40
- formConfig: list,
41
- readonly: false,
42
- form,
43
- relatedid: "guid",
44
- colNum: 1,
45
- defaultWidth: 358,
46
- commonRequestWidthParams,
47
- uploadAction: uploadFormAction,
48
- commonRequest,
49
- instructionShowMode: "icon",
50
- ref: formRef,
51
- langId
52
- }
53
- ),
54
- /* @__PURE__ */ jsx(Form.Item, { name: "submit", style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsx(Button, { round: true, nativeType: "submit", type: "primary", block: true, children: "提交" }) })
55
- ] }) }),
35
+ /* @__PURE__ */ jsx("div", { style: { padding: "20px" }, children: /* @__PURE__ */ jsx(Form, { form, onValuesChange, onFinish, children: /* @__PURE__ */ jsx(
36
+ DynamicForm,
37
+ {
38
+ formConfig: list,
39
+ readonly: false,
40
+ form,
41
+ relatedid: "guid",
42
+ colNum: 1,
43
+ defaultWidth: 358,
44
+ commonRequestWidthParams,
45
+ uploadAction: uploadFormAction,
46
+ commonRequest,
47
+ instructionShowMode: "icon",
48
+ ref: formRef,
49
+ formShowType: "table",
50
+ langId
51
+ }
52
+ ) }) }),
56
53
  /* @__PURE__ */ jsxs("div", { children: [
57
54
  "2. 测试循环滚动组件",
58
55
  /* @__PURE__ */ jsx(
package/es/mock/index.js CHANGED
@@ -2,366 +2,63 @@ const baseAttrList = [];
2
2
  const attrList = [
3
3
  {
4
4
  xh: 1,
5
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
5
+ asid: "61B08EFD73FF4F8282AAC8B7ED66313D",
6
6
  astype: 0,
7
- tname: "gg_table",
8
- attrid: "BB5FFD9EC1034781BC3E89FEFD78879C",
9
- attrname: "姓名",
7
+ tname: "qsfjfw1_table",
8
+ attrid: "117880C8989140F58118A83C0016D0C5",
9
+ attrname: "日期",
10
10
  attrtype: 0,
11
- info: '{"input":"text","dataType":"string","length":20,"must":true,"regexp":"/^[A-Za-z]+$/","regexp-message":"请输入英文字母"}',
11
+ info: '{"input":"multiple-date-picker","dataType":"date","must":true}',
12
12
  info_base64: 0,
13
- createtime: "2026-01-05 21:25:49",
13
+ createtime: "2026-05-06 17:43:42",
14
14
  attrvalue: "",
15
15
  serialnum: 1,
16
- children: [],
17
- json: {
18
- input: "text",
19
- dataType: "string",
20
- length: 20,
21
- must: true,
22
- regexp: "/^[A-Za-z]+$/",
23
- "regexp-message": "请输入英文字母"
24
- }
16
+ children: []
25
17
  },
26
18
  {
27
19
  xh: 2,
28
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
20
+ asid: "61B08EFD73FF4F8282AAC8B7ED66313D",
29
21
  astype: 0,
30
- tname: "gg_table",
31
- attrid: "799FBD4386A04D8198FC7F33B120F68E",
32
- attrname: "品种",
22
+ tname: "qsfjfw1_table",
23
+ attrid: "0EEA99B962494A438DF6CA8DBA77F1A5",
24
+ attrname: "次数",
33
25
  attrtype: 0,
34
- info: '{"input":"text","dataType":"string","length":100}',
26
+ info: '{"input":"number","dataType":"int","must":true}',
35
27
  info_base64: 0,
36
- createtime: "2026-01-05 21:26:01",
28
+ createtime: "2026-05-06 17:44:57",
37
29
  attrvalue: "",
38
30
  serialnum: 2,
39
- children: [],
40
- json: {
41
- input: "text",
42
- dataType: "string",
43
- length: 100
44
- }
31
+ children: []
45
32
  },
46
33
  {
47
34
  xh: 3,
48
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
35
+ asid: "61B08EFD73FF4F8282AAC8B7ED66313D",
49
36
  astype: 0,
50
- tname: "gg_table",
51
- attrid: "B1B10494F9A949CCBD26567A597E8DAE",
52
- attrname: "重量",
37
+ tname: "qsfjfw1_table",
38
+ attrid: "DBC8E3036BC14E10B231FD86AFA8EC5F",
39
+ attrname: "时间",
53
40
  attrtype: 0,
54
- info: '{"input":"text","dataType":"string","length":3,"combination":true,"combination-id":1,"combination-name":"重量","combination-width-ratio":0.7,"must":true}',
41
+ info: '{"input":"mult-select","dataType":"string","length":100,"inputType":"local","data":["5:00pm – 5:30pm", "5:30pm – 6:00pm", "6:00pm – 6:30pm", "6:30pm – 7:00pm", "7:00pm – 7:30pm", "7:30pm – 8:00pm"],"must":true}',
55
42
  info_base64: 0,
56
- createtime: "2026-01-05 21:26:13",
43
+ createtime: "2026-05-06 17:43:42",
57
44
  attrvalue: "",
58
45
  serialnum: 3,
59
- children: [],
60
- json: {
61
- input: "text",
62
- dataType: "string",
63
- length: 3,
64
- combination: true,
65
- "combination-id": 1,
66
- "combination-name": "重量",
67
- "combination-width-ratio": 0.7,
68
- must: true,
69
- combinations: [
70
- {
71
- xh: 3,
72
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
73
- astype: 0,
74
- tname: "gg_table",
75
- attrid: "B1B10494F9A949CCBD26567A597E8DAE",
76
- attrname: "重量",
77
- attrtype: 0,
78
- info: '{"input":"text","dataType":"string","length":3,"combination":true,"combination-id":1,"combination-name":"重量","combination-width-ratio":0.7,"must":true}',
79
- info_base64: 0,
80
- createtime: "2026-01-05 21:26:13",
81
- attrvalue: "",
82
- serialnum: 3,
83
- children: [],
84
- json: {
85
- input: "text",
86
- dataType: "string",
87
- length: 3,
88
- combination: true,
89
- "combination-id": 1,
90
- "combination-name": "重量",
91
- "combination-width-ratio": 0.7,
92
- must: true
93
- }
94
- },
95
- {
96
- xh: 4,
97
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
98
- astype: 0,
99
- tname: "gg_table",
100
- attrid: "A3CB9307DED6493382C78E065F3C6A99",
101
- attrname: "单位",
102
- attrtype: 0,
103
- info: '{"input":"select","dataType":"string","length":100,"inputType":"local","default":"5000008-1","combination":true,"combination-id":1,"combination-name":"重量","combination-width-ratio":0.3,"must":true,"options":[{"label":"磅","value":"5000008-1"},{"label":"斤","value":"5000008-2"}]}',
104
- info_base64: 0,
105
- createtime: "2026-01-05 21:27:16",
106
- attrvalue: "",
107
- serialnum: 4,
108
- children: [],
109
- json: {
110
- input: "select",
111
- dataType: "string",
112
- length: 100,
113
- inputType: "local",
114
- default: "5000008-1",
115
- combination: true,
116
- "combination-id": 1,
117
- "combination-name": "重量",
118
- "combination-width-ratio": 0.3,
119
- must: true,
120
- options: [
121
- {
122
- label: "磅",
123
- value: "5000008-1"
124
- },
125
- {
126
- label: "斤",
127
- value: "5000008-2"
128
- }
129
- ]
130
- }
131
- }
132
- ]
133
- }
134
- },
135
- {
136
- xh: 5,
137
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
138
- astype: 0,
139
- tname: "gg_table",
140
- attrid: "F0999F269D3C4425A59A883442055C5C",
141
- attrname: "性别",
142
- attrtype: 0,
143
- info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","options":[{"label":"公","value":"5000014-1"},{"label":"母","value":"5000014-2"}]}',
144
- info_base64: 0,
145
- createtime: "2026-01-05 21:28:11",
146
- attrvalue: "",
147
- serialnum: 5,
148
- children: [],
149
- json: {
150
- input: "radio",
151
- dataType: "string",
152
- length: 100,
153
- inputType: "local",
154
- options: [
155
- {
156
- label: "公",
157
- value: "5000014-1"
158
- },
159
- {
160
- label: "母",
161
- value: "5000014-2"
162
- }
163
- ]
164
- }
165
- },
166
- {
167
- xh: 6,
168
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
169
- astype: 0,
170
- tname: "gg_table",
171
- attrid: "4986EE62B15E4C0197A1E073E098CCAF",
172
- attrname: "是否绝育",
173
- attrtype: 0,
174
- info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","must":true,"options":[{"label":"是","value":"5000011-1"},{"label":"否","value":"5000011-2"}]}',
175
- info_base64: 0,
176
- createtime: "2026-01-05 21:28:34",
177
- attrvalue: "",
178
- serialnum: 6,
179
- children: [],
180
- json: {
181
- input: "radio",
182
- dataType: "string",
183
- length: 100,
184
- inputType: "local",
185
- must: true,
186
- options: [
187
- {
188
- label: "是",
189
- value: "5000011-1"
190
- },
191
- {
192
- label: "否",
193
- value: "5000011-2"
194
- }
195
- ]
196
- }
197
- },
198
- {
199
- xh: 7,
200
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
201
- astype: 0,
202
- tname: "gg_table",
203
- attrid: "8561D992C88645EE9EA184800BBE0E1D",
204
- attrname: "是否对其他狗有攻击性",
205
- attrtype: 0,
206
- info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","must":true,"options":[{"label":"是","value":"5000013-1"},{"label":"否","value":"5000013-2"},{"label":"视情况而定","value":"5000013-3"},{"label":"不确定","value":"5000013-4"}]}',
207
- info_base64: 0,
208
- createtime: "2026-01-05 21:29:07",
209
- attrvalue: "",
210
- serialnum: 7,
211
- children: [],
212
- json: {
213
- input: "radio",
214
- dataType: "string",
215
- length: 100,
216
- inputType: "local",
217
- must: true,
218
- options: [
219
- {
220
- label: "是",
221
- value: "5000013-1"
222
- },
223
- {
224
- label: "否",
225
- value: "5000013-2"
226
- },
227
- {
228
- label: "视情况而定",
229
- value: "5000013-3"
230
- },
231
- {
232
- label: "不确定",
233
- value: "5000013-4"
234
- }
235
- ]
236
- }
237
- },
238
- {
239
- xh: 8,
240
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
241
- astype: 0,
242
- tname: "gg_table",
243
- attrid: "93366648DF5146E98AE3D58DE5D6BD73",
244
- attrname: "是否对人有攻击性",
245
- attrtype: 0,
246
- info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","must":true,"options":[{"label":"是","value":"5000013-1"},{"label":"否","value":"5000013-2"},{"label":"视情况而定","value":"5000013-3"},{"label":"不确定","value":"5000013-4"}]}',
247
- info_base64: 0,
248
- createtime: "2026-01-05 21:29:24",
249
- attrvalue: "",
250
- serialnum: 8,
251
- children: [],
252
- json: {
253
- input: "radio",
254
- dataType: "string",
255
- length: 100,
256
- inputType: "local",
257
- must: true,
258
- options: [
259
- {
260
- label: "是",
261
- value: "5000013-1"
262
- },
263
- {
264
- label: "否",
265
- value: "5000013-2"
266
- },
267
- {
268
- label: "视情况而定",
269
- value: "5000013-3"
270
- },
271
- {
272
- label: "不确定",
273
- value: "5000013-4"
274
- }
275
- ]
276
- }
277
- },
278
- {
279
- xh: 9,
280
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
281
- astype: 0,
282
- tname: "gg_table",
283
- attrid: "6A63A6508C0E44D38AB68CB27EC332E8",
284
- attrname: "狗狗照片",
285
- attrtype: 0,
286
- info: '{"input":"image","upload-accept":".png,.jpg,.jpeg","upload-max-count":"5","upload-size":"5","dataType":"string","length":4000}',
287
- info_base64: 0,
288
- createtime: "2026-01-05 21:29:46",
289
- attrvalue: "",
290
- serialnum: 9,
291
- children: [],
292
- json: {
293
- input: "image",
294
- "upload-accept": ".png,.jpg,.jpeg",
295
- "upload-max-count": "5",
296
- "upload-size": "5",
297
- dataType: "string",
298
- length: 4e3
299
- }
300
- },
301
- {
302
- xh: 10,
303
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
304
- astype: 0,
305
- tname: "gg_table",
306
- attrid: "6730DFF94989425F9ED90A4A77EE3C5B",
307
- attrname: "疫苗证明",
308
- attrtype: 0,
309
- 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}',
310
- info_base64: 0,
311
- createtime: "2026-01-05 21:30:05",
312
- attrvalue: "",
313
- serialnum: 10,
314
- children: [],
315
- json: {
316
- input: "file",
317
- "upload-accept": ".png,jpeg,jpg,.pdf,.doc,.docx,.xls,.xlsx,.txt,.zip,.rar,.7z",
318
- "upload-max-count": "5",
319
- "upload-size": "10",
320
- dataType: "string",
321
- length: 4e3
322
- }
323
- },
324
- {
325
- xh: 11,
326
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
327
- astype: 0,
328
- tname: "gg_table",
329
- attrid: "23A6082D509340BCA10ED419A95F9B7D",
330
- attrname: "生日",
331
- attrtype: 0,
332
- info: '{"input":"date-picker","dataType":"date","instruction":"如不确定出生日期可选择大概日期","instruction-color":"#999999","must":true}',
333
- info_base64: 0,
334
- createtime: "2026-01-05 21:30:21",
335
- attrvalue: "",
336
- serialnum: 11,
337
- children: [],
338
- json: {
339
- input: "date-picker",
340
- dataType: "date",
341
- instruction: "如不确定出生日期可选择大概日期",
342
- "instruction-color": "#999999",
343
- must: true
344
- }
345
- },
346
- {
347
- xh: 12,
348
- asid: "2EA2AABF953F4A3483ED854A0034BF92",
46
+ children: []
47
+ },
48
+ {
49
+ xh: 4,
50
+ asid: "61B08EFD73FF4F8282AAC8B7ED66313D",
349
51
  astype: 0,
350
- tname: "gg_table",
351
- attrid: "7A870062F2C94795ABA9923F300BE99A",
352
- attrname: "备注",
52
+ tname: "qsfjfw1_table",
53
+ attrid: "6E8835F705D84C519F616DB81F4CCA0A",
54
+ attrname: "说明",
353
55
  attrtype: 0,
354
- info: '{"input":"textarea","dataType":"string","length":500}',
56
+ info: '{"input":"text","dataType":"string","length":100,"must":true}',
355
57
  info_base64: 0,
356
- createtime: "2026-01-05 21:30:40",
58
+ createtime: "2026-05-06 17:43:42",
357
59
  attrvalue: "",
358
- serialnum: 12,
359
- children: [],
360
- json: {
361
- input: "textarea",
362
- dataType: "string",
363
- length: 500
364
- }
60
+ serialnum: 4,
61
+ children: []
365
62
  }
366
63
  ];
367
64
  const langConfig = [
@@ -59,9 +59,9 @@ const DynamicForm = react.forwardRef((props, ref) => {
59
59
  return delFileListRef.current;
60
60
  }
61
61
  }));
62
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: formShowType === "table" ? /* @__PURE__ */ jsxRuntime.jsx(antd.Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { className: "custom-form-body", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "custom-form-list", children: [
63
- /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { align: "center", style: { position: "relative", backgroundColor: "#004d32" }, children: [
64
- /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { className: "custom-form-list-header", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
62
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: formShowType === "table" ? /* @__PURE__ */ jsxRuntime.jsx(antd.Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { className: "custom-form-body", children: [
63
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "custom-form-list", children: [
64
+ /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { align: "center", style: { position: "relative", backgroundColor: "#004d32" }, children: /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { className: "custom-form-list-header", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
65
65
  var _a, _b;
66
66
  const width = ((_a = child == null ? void 0 : child.json) == null ? void 0 : _a["input-width"]) && Number((_b = child == null ? void 0 : child.json) == null ? void 0 : _b["input-width"]) || defaultWidth;
67
67
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -79,11 +79,8 @@ const DynamicForm = react.forwardRef((props, ref) => {
79
79
  },
80
80
  index
81
81
  );
82
- }) }),
83
- /* @__PURE__ */ jsxRuntime.jsx("a", { className: "custom-form-list-add-btn", onClick: () => add(), children: langId === "10001" ? "新增" : "Add" })
84
- ] }),
85
- fields.map((field) => /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { align: "center", className: "custom-form-list-item-container", children: [
86
- /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { className: "custom-form-list-item", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
82
+ }) }) }),
83
+ fields.map((field) => /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { align: "center", className: "custom-form-list-item-container", children: /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { className: "custom-form-list-item", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
87
84
  var _a, _b;
88
85
  const width = ((_a = child == null ? void 0 : child.json) == null ? void 0 : _a["input-width"]) && Number((_b = child == null ? void 0 : child.json) == null ? void 0 : _b["input-width"]) || defaultWidth;
89
86
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -112,10 +109,15 @@ const DynamicForm = react.forwardRef((props, ref) => {
112
109
  },
113
110
  child.attrid || `child-${index}`
114
111
  );
115
- }) }),
116
- /* @__PURE__ */ jsxRuntime.jsx("a", { className: "custom-form-list-del-btn", onClick: () => remove(field.key), children: langId === "10001" ? "删除" : "Delete" })
117
- ] }, field.key))
118
- ] }) }) }) : /* @__PURE__ */ jsxRuntime.jsx(antd.Row, { gutter: colSpace, children: formConfig.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(react.Fragment, { children: handleRenderItem({
112
+ }) }) }, field.key))
113
+ ] }),
114
+ /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { className: "operation", vertical: true, children: [
115
+ /* @__PURE__ */ jsxRuntime.jsx("a", { className: "custom-form-list-add-btn", onClick: () => add(), children: langId === "10001" ? "新增" : "Add" }),
116
+ (fields == null ? void 0 : fields.length) > 0 && (fields == null ? void 0 : fields.map((v, i) => {
117
+ return /* @__PURE__ */ jsxRuntime.jsx("a", { className: "custom-form-list-del-btn", onClick: () => remove(v.key), children: langId === "10001" ? "删除" : "Delete" }, v.key);
118
+ }))
119
+ ] })
120
+ ] }) }) : /* @__PURE__ */ jsxRuntime.jsx(antd.Row, { gutter: colSpace, children: formConfig.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(react.Fragment, { children: handleRenderItem({
119
121
  item,
120
122
  readonly,
121
123
  colNum,