szld-libs 0.4.58 → 0.4.59
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.
- package/dist/szld-components.es.js +2 -2
- package/dist/szld-components.umd.js +1 -1
- package/es/components/DynamicForm/index.js +2 -2
- package/es/index.js +26 -32
- package/es/mock/index.js +122 -8
- package/lib/components/DynamicForm/index.js +2 -2
- package/lib/index.js +26 -32
- package/lib/mock/index.js +122 -8
- package/package.json +1 -1
|
@@ -59,11 +59,11 @@ const DynamicForm = forwardRef((props, ref) => {
|
|
|
59
59
|
// 新增:组件库固定文字语言匹配数据
|
|
60
60
|
});
|
|
61
61
|
useEffect(() => {
|
|
62
|
-
if (!
|
|
62
|
+
if (!langId) {
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
handleGetLangData();
|
|
66
|
-
}, [
|
|
66
|
+
}, [langId]);
|
|
67
67
|
const handleGetLangData = async () => {
|
|
68
68
|
const langData2 = await getLangData({
|
|
69
69
|
commonRequestWidthParams,
|
package/es/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const index = "";
|
|
|
13
13
|
const tableDetail = "";
|
|
14
14
|
dayjs.locale("zh-cn");
|
|
15
15
|
const Demo = () => {
|
|
16
|
-
|
|
16
|
+
useDetailRender({ layoutType: "flex" });
|
|
17
17
|
const formRef = useRef(null);
|
|
18
18
|
const [form] = Form.useForm();
|
|
19
19
|
const [list, setList] = useState([]);
|
|
@@ -33,37 +33,31 @@ const Demo = () => {
|
|
|
33
33
|
};
|
|
34
34
|
return /* @__PURE__ */ jsxs("div", { style: { height: "100vh", display: "flex", flexDirection: "column", gap: 20 }, children: [
|
|
35
35
|
/* @__PURE__ */ jsx(BackHeader, { title: "页头组件", isBack: true }),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
langId
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
/* @__PURE__ */ jsx(Form.Item, { name: "submit", style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsx(Button, { type: "primary", htmlType: "submit", children: "Submit" }) })
|
|
65
|
-
] })
|
|
66
|
-
] }),
|
|
36
|
+
/* @__PURE__ */ jsx("div", { style: { padding: "20px" }, children: /* @__PURE__ */ jsxs(Form, { form, onValuesChange, layout: "vertical", onFinish, children: [
|
|
37
|
+
/* @__PURE__ */ jsx(
|
|
38
|
+
DynamicForm,
|
|
39
|
+
{
|
|
40
|
+
formConfig: list,
|
|
41
|
+
readonly: false,
|
|
42
|
+
form,
|
|
43
|
+
relatedid: "guid",
|
|
44
|
+
colNum: 1,
|
|
45
|
+
commonRequestWidthParams: () => {
|
|
46
|
+
return new Promise((resolve, reject) => {
|
|
47
|
+
});
|
|
48
|
+
},
|
|
49
|
+
uploadAction: () => "",
|
|
50
|
+
commonRequest: () => {
|
|
51
|
+
return new Promise((resolve, reject) => {
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
instructionShowMode: "icon",
|
|
55
|
+
ref: formRef,
|
|
56
|
+
langId
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ jsx(Form.Item, { name: "submit", style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsx(Button, { type: "primary", htmlType: "submit", children: "Submit" }) })
|
|
60
|
+
] }) }),
|
|
67
61
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
68
62
|
"2. 测试循环滚动组件",
|
|
69
63
|
/* @__PURE__ */ jsx(
|
package/es/mock/index.js
CHANGED
|
@@ -2,18 +2,132 @@ const baseAttrList = [];
|
|
|
2
2
|
const attrList = [
|
|
3
3
|
{
|
|
4
4
|
xh: 1,
|
|
5
|
-
asid: "
|
|
5
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
6
6
|
astype: 0,
|
|
7
|
-
tname: "
|
|
8
|
-
attrid: "
|
|
9
|
-
attrname: "
|
|
7
|
+
tname: "qsewfygl_table",
|
|
8
|
+
attrid: "D5500037A9E84FFD937E4D4C9912F3EC",
|
|
9
|
+
attrname: "唯一编号",
|
|
10
10
|
attrtype: 0,
|
|
11
|
-
info: '{"input":"
|
|
11
|
+
info: '{"input":"text","dataType":"string","length":100,"auto-generate":true,"auto-generate-type":"guid","hidden":true}',
|
|
12
12
|
info_base64: 0,
|
|
13
|
-
createtime: "2026-
|
|
14
|
-
attrvalue: "",
|
|
13
|
+
createtime: "2026-04-23 15:30:49",
|
|
14
|
+
attrvalue: "4FE5772592F04921BA10B6FF572332EB",
|
|
15
|
+
serialnum: 0,
|
|
16
|
+
children: [],
|
|
17
|
+
json: {
|
|
18
|
+
input: "text",
|
|
19
|
+
dataType: "string",
|
|
20
|
+
length: 100,
|
|
21
|
+
"auto-generate": true,
|
|
22
|
+
"auto-generate-type": "guid",
|
|
23
|
+
hidden: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
xh: 2,
|
|
28
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
29
|
+
astype: 0,
|
|
30
|
+
tname: "qsewfygl_table",
|
|
31
|
+
attrid: "171E3BE9BD9642F9A6530948386301E2",
|
|
32
|
+
attrname: "计费顺序",
|
|
33
|
+
attrtype: 0,
|
|
34
|
+
info: '{"input":"text","dataType":"int","must":true}',
|
|
35
|
+
info_base64: 0,
|
|
36
|
+
createtime: "2026-04-23 15:32:10",
|
|
37
|
+
attrvalue: 1,
|
|
15
38
|
serialnum: 1,
|
|
16
|
-
children: []
|
|
39
|
+
children: [],
|
|
40
|
+
json: {
|
|
41
|
+
input: "text",
|
|
42
|
+
dataType: "int",
|
|
43
|
+
must: true
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
xh: 3,
|
|
48
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
49
|
+
astype: 0,
|
|
50
|
+
tname: "qsewfygl_table",
|
|
51
|
+
attrid: "CFFFC29035614E9AA3951D76FD26950F",
|
|
52
|
+
attrname: "费用名称",
|
|
53
|
+
attrtype: 0,
|
|
54
|
+
info: '{"input":"text","dataType":"string","length":100,"must":true}',
|
|
55
|
+
info_base64: 0,
|
|
56
|
+
createtime: "2026-04-23 15:31:20",
|
|
57
|
+
attrvalue: "${text}",
|
|
58
|
+
serialnum: 2,
|
|
59
|
+
children: [],
|
|
60
|
+
json: {
|
|
61
|
+
input: "text",
|
|
62
|
+
dataType: "string",
|
|
63
|
+
length: 100,
|
|
64
|
+
must: true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
xh: 4,
|
|
69
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
70
|
+
astype: 0,
|
|
71
|
+
tname: "qsewfygl_table",
|
|
72
|
+
attrid: "AE726C30703941EBA951DF6C5893B1FD",
|
|
73
|
+
attrname: "费用金额",
|
|
74
|
+
attrtype: 0,
|
|
75
|
+
info: '{"input":"text","dataType":"string","length":100,"must":true}',
|
|
76
|
+
info_base64: 0,
|
|
77
|
+
createtime: "2026-04-23 15:31:41",
|
|
78
|
+
attrvalue: "${number}",
|
|
79
|
+
serialnum: 2,
|
|
80
|
+
children: [],
|
|
81
|
+
json: {
|
|
82
|
+
input: "text",
|
|
83
|
+
dataType: "string",
|
|
84
|
+
length: 100,
|
|
85
|
+
must: true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
xh: 6,
|
|
90
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
91
|
+
astype: 0,
|
|
92
|
+
tname: "qsewfygl_table",
|
|
93
|
+
attrid: "08FC37728DB049A1AC83884B956D0AF9",
|
|
94
|
+
attrname: "费用说明",
|
|
95
|
+
attrtype: 0,
|
|
96
|
+
info: '{"input":"text","dataType":"string","length":500,"must":true}',
|
|
97
|
+
info_base64: 0,
|
|
98
|
+
createtime: "2026-04-23 15:32:30",
|
|
99
|
+
attrvalue: "${text}",
|
|
100
|
+
serialnum: 5,
|
|
101
|
+
children: [],
|
|
102
|
+
json: {
|
|
103
|
+
input: "text",
|
|
104
|
+
dataType: "string",
|
|
105
|
+
length: 500,
|
|
106
|
+
must: true
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
xh: 7,
|
|
111
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
112
|
+
astype: 0,
|
|
113
|
+
tname: "qsewfygl_table",
|
|
114
|
+
attrid: "09D8C6B943064F02A22E3A86541F63BD",
|
|
115
|
+
attrname: "创建时间",
|
|
116
|
+
attrtype: 0,
|
|
117
|
+
info: '{"input":"date-picker","dataType":"datetime","auto-generate":true,"auto-generate-type":"currenttime","must":true,"hidden":true}',
|
|
118
|
+
info_base64: 0,
|
|
119
|
+
createtime: "2026-04-23 15:32:52",
|
|
120
|
+
attrvalue: "2026-05-13 11:19:42",
|
|
121
|
+
serialnum: 6,
|
|
122
|
+
children: [],
|
|
123
|
+
json: {
|
|
124
|
+
input: "date-picker",
|
|
125
|
+
dataType: "datetime",
|
|
126
|
+
"auto-generate": true,
|
|
127
|
+
"auto-generate-type": "currenttime",
|
|
128
|
+
must: true,
|
|
129
|
+
hidden: true
|
|
130
|
+
}
|
|
17
131
|
}
|
|
18
132
|
];
|
|
19
133
|
const values = {
|
|
@@ -60,11 +60,11 @@ const DynamicForm = react.forwardRef((props, ref) => {
|
|
|
60
60
|
// 新增:组件库固定文字语言匹配数据
|
|
61
61
|
});
|
|
62
62
|
react.useEffect(() => {
|
|
63
|
-
if (!
|
|
63
|
+
if (!langId) {
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
handleGetLangData();
|
|
67
|
-
}, [
|
|
67
|
+
}, [langId]);
|
|
68
68
|
const handleGetLangData = async () => {
|
|
69
69
|
const langData2 = await szxkFunc.getLangData({
|
|
70
70
|
commonRequestWidthParams,
|
package/lib/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const index = "";
|
|
|
14
14
|
const tableDetail = "";
|
|
15
15
|
dayjs.locale("zh-cn");
|
|
16
16
|
const Demo = () => {
|
|
17
|
-
|
|
17
|
+
useDetailRender({ layoutType: "flex" });
|
|
18
18
|
const formRef = react.useRef(null);
|
|
19
19
|
const [form] = antd.Form.useForm();
|
|
20
20
|
const [list, setList] = react.useState([]);
|
|
@@ -34,37 +34,31 @@ const Demo = () => {
|
|
|
34
34
|
};
|
|
35
35
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { height: "100vh", display: "flex", flexDirection: "column", gap: 20 }, children: [
|
|
36
36
|
/* @__PURE__ */ jsxRuntime.jsx(main.BackHeader, { title: "页头组件", isBack: true }),
|
|
37
|
-
/* @__PURE__ */ jsxRuntime.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
langId
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
/* @__PURE__ */ jsxRuntime.jsx(antd.Form.Item, { name: "submit", style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsxRuntime.jsx(antd.Button, { type: "primary", htmlType: "submit", children: "Submit" }) })
|
|
66
|
-
] })
|
|
67
|
-
] }),
|
|
37
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "20px" }, children: /* @__PURE__ */ jsxRuntime.jsxs(antd.Form, { form, onValuesChange, layout: "vertical", onFinish, children: [
|
|
38
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39
|
+
main.DynamicForm,
|
|
40
|
+
{
|
|
41
|
+
formConfig: list,
|
|
42
|
+
readonly: false,
|
|
43
|
+
form,
|
|
44
|
+
relatedid: "guid",
|
|
45
|
+
colNum: 1,
|
|
46
|
+
commonRequestWidthParams: () => {
|
|
47
|
+
return new Promise((resolve, reject) => {
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
uploadAction: () => "",
|
|
51
|
+
commonRequest: () => {
|
|
52
|
+
return new Promise((resolve, reject) => {
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
instructionShowMode: "icon",
|
|
56
|
+
ref: formRef,
|
|
57
|
+
langId
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ jsxRuntime.jsx(antd.Form.Item, { name: "submit", style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsxRuntime.jsx(antd.Button, { type: "primary", htmlType: "submit", children: "Submit" }) })
|
|
61
|
+
] }) }),
|
|
68
62
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
69
63
|
"2. 测试循环滚动组件",
|
|
70
64
|
/* @__PURE__ */ jsxRuntime.jsx(
|
package/lib/mock/index.js
CHANGED
|
@@ -4,18 +4,132 @@ const baseAttrList = [];
|
|
|
4
4
|
const attrList = [
|
|
5
5
|
{
|
|
6
6
|
xh: 1,
|
|
7
|
-
asid: "
|
|
7
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
8
8
|
astype: 0,
|
|
9
|
-
tname: "
|
|
10
|
-
attrid: "
|
|
11
|
-
attrname: "
|
|
9
|
+
tname: "qsewfygl_table",
|
|
10
|
+
attrid: "D5500037A9E84FFD937E4D4C9912F3EC",
|
|
11
|
+
attrname: "唯一编号",
|
|
12
12
|
attrtype: 0,
|
|
13
|
-
info: '{"input":"
|
|
13
|
+
info: '{"input":"text","dataType":"string","length":100,"auto-generate":true,"auto-generate-type":"guid","hidden":true}',
|
|
14
14
|
info_base64: 0,
|
|
15
|
-
createtime: "2026-
|
|
16
|
-
attrvalue: "",
|
|
15
|
+
createtime: "2026-04-23 15:30:49",
|
|
16
|
+
attrvalue: "4FE5772592F04921BA10B6FF572332EB",
|
|
17
|
+
serialnum: 0,
|
|
18
|
+
children: [],
|
|
19
|
+
json: {
|
|
20
|
+
input: "text",
|
|
21
|
+
dataType: "string",
|
|
22
|
+
length: 100,
|
|
23
|
+
"auto-generate": true,
|
|
24
|
+
"auto-generate-type": "guid",
|
|
25
|
+
hidden: true
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
xh: 2,
|
|
30
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
31
|
+
astype: 0,
|
|
32
|
+
tname: "qsewfygl_table",
|
|
33
|
+
attrid: "171E3BE9BD9642F9A6530948386301E2",
|
|
34
|
+
attrname: "计费顺序",
|
|
35
|
+
attrtype: 0,
|
|
36
|
+
info: '{"input":"text","dataType":"int","must":true}',
|
|
37
|
+
info_base64: 0,
|
|
38
|
+
createtime: "2026-04-23 15:32:10",
|
|
39
|
+
attrvalue: 1,
|
|
17
40
|
serialnum: 1,
|
|
18
|
-
children: []
|
|
41
|
+
children: [],
|
|
42
|
+
json: {
|
|
43
|
+
input: "text",
|
|
44
|
+
dataType: "int",
|
|
45
|
+
must: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
xh: 3,
|
|
50
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
51
|
+
astype: 0,
|
|
52
|
+
tname: "qsewfygl_table",
|
|
53
|
+
attrid: "CFFFC29035614E9AA3951D76FD26950F",
|
|
54
|
+
attrname: "费用名称",
|
|
55
|
+
attrtype: 0,
|
|
56
|
+
info: '{"input":"text","dataType":"string","length":100,"must":true}',
|
|
57
|
+
info_base64: 0,
|
|
58
|
+
createtime: "2026-04-23 15:31:20",
|
|
59
|
+
attrvalue: "${text}",
|
|
60
|
+
serialnum: 2,
|
|
61
|
+
children: [],
|
|
62
|
+
json: {
|
|
63
|
+
input: "text",
|
|
64
|
+
dataType: "string",
|
|
65
|
+
length: 100,
|
|
66
|
+
must: true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
xh: 4,
|
|
71
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
72
|
+
astype: 0,
|
|
73
|
+
tname: "qsewfygl_table",
|
|
74
|
+
attrid: "AE726C30703941EBA951DF6C5893B1FD",
|
|
75
|
+
attrname: "费用金额",
|
|
76
|
+
attrtype: 0,
|
|
77
|
+
info: '{"input":"text","dataType":"string","length":100,"must":true}',
|
|
78
|
+
info_base64: 0,
|
|
79
|
+
createtime: "2026-04-23 15:31:41",
|
|
80
|
+
attrvalue: "${number}",
|
|
81
|
+
serialnum: 2,
|
|
82
|
+
children: [],
|
|
83
|
+
json: {
|
|
84
|
+
input: "text",
|
|
85
|
+
dataType: "string",
|
|
86
|
+
length: 100,
|
|
87
|
+
must: true
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
xh: 6,
|
|
92
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
93
|
+
astype: 0,
|
|
94
|
+
tname: "qsewfygl_table",
|
|
95
|
+
attrid: "08FC37728DB049A1AC83884B956D0AF9",
|
|
96
|
+
attrname: "费用说明",
|
|
97
|
+
attrtype: 0,
|
|
98
|
+
info: '{"input":"text","dataType":"string","length":500,"must":true}',
|
|
99
|
+
info_base64: 0,
|
|
100
|
+
createtime: "2026-04-23 15:32:30",
|
|
101
|
+
attrvalue: "${text}",
|
|
102
|
+
serialnum: 5,
|
|
103
|
+
children: [],
|
|
104
|
+
json: {
|
|
105
|
+
input: "text",
|
|
106
|
+
dataType: "string",
|
|
107
|
+
length: 500,
|
|
108
|
+
must: true
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
xh: 7,
|
|
113
|
+
asid: "01432D5450294E63A00C7899603DEF31",
|
|
114
|
+
astype: 0,
|
|
115
|
+
tname: "qsewfygl_table",
|
|
116
|
+
attrid: "09D8C6B943064F02A22E3A86541F63BD",
|
|
117
|
+
attrname: "创建时间",
|
|
118
|
+
attrtype: 0,
|
|
119
|
+
info: '{"input":"date-picker","dataType":"datetime","auto-generate":true,"auto-generate-type":"currenttime","must":true,"hidden":true}',
|
|
120
|
+
info_base64: 0,
|
|
121
|
+
createtime: "2026-04-23 15:32:52",
|
|
122
|
+
attrvalue: "2026-05-13 11:19:42",
|
|
123
|
+
serialnum: 6,
|
|
124
|
+
children: [],
|
|
125
|
+
json: {
|
|
126
|
+
input: "date-picker",
|
|
127
|
+
dataType: "datetime",
|
|
128
|
+
"auto-generate": true,
|
|
129
|
+
"auto-generate-type": "currenttime",
|
|
130
|
+
must: true,
|
|
131
|
+
hidden: true
|
|
132
|
+
}
|
|
19
133
|
}
|
|
20
134
|
];
|
|
21
135
|
const values = {
|