szld-libs 0.1.6 → 0.1.7
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 +607 -610
- package/dist/szld-components.umd.js +24 -24
- package/es/components/CreateForm/index.js +30 -33
- package/lib/components/CreateForm/index.js +30 -33
- package/package.json +1 -1
|
@@ -78,39 +78,36 @@ const CreateForm = (props) => {
|
|
|
78
78
|
form: formProps == null ? void 0 : formProps.form,
|
|
79
79
|
...formLayout,
|
|
80
80
|
...formProps || {},
|
|
81
|
-
children: /* @__PURE__ */ jsx(Row, { gutter: 16, ...rowProps, children: items.filter((v) => !v.hidden).map((item, index) =>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
onChange: (e)
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
item.dataIndex || index
|
|
112
|
-
);
|
|
113
|
-
}) })
|
|
81
|
+
children: /* @__PURE__ */ jsx(Row, { gutter: 16, ...rowProps, children: items.filter((v) => !v.hidden).map((item, index) => /* @__PURE__ */ jsx(
|
|
82
|
+
Col,
|
|
83
|
+
{
|
|
84
|
+
...item.colProps || { span: 24 },
|
|
85
|
+
children: /* @__PURE__ */ jsx(
|
|
86
|
+
Form.Item,
|
|
87
|
+
{
|
|
88
|
+
...item.valueType === "upload" ? {
|
|
89
|
+
getValueFromEvent: normFile
|
|
90
|
+
} : {},
|
|
91
|
+
label: !hiddenTitle ? item.title : "",
|
|
92
|
+
name: item.valueType === "btns" ? void 0 : item.dataIndex,
|
|
93
|
+
...item.formItemProps,
|
|
94
|
+
children: item.readonly ? /* @__PURE__ */ jsx("div", { children: renderReadOnly(item) }) : item.readonly === void 0 && readonly ? /* @__PURE__ */ jsx("div", { children: renderReadOnly(item) }) : /* @__PURE__ */ jsx(
|
|
95
|
+
FormFields,
|
|
96
|
+
{
|
|
97
|
+
onChange: (e) => {
|
|
98
|
+
var _a;
|
|
99
|
+
return (_a = item == null ? void 0 : item.onChange) == null ? void 0 : _a.call(item, e);
|
|
100
|
+
},
|
|
101
|
+
valueType: item.valueType,
|
|
102
|
+
onBtnClick,
|
|
103
|
+
valueProps: item.valueProps
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
},
|
|
109
|
+
item.dataIndex || index
|
|
110
|
+
)) })
|
|
114
111
|
}
|
|
115
112
|
);
|
|
116
113
|
};
|
|
@@ -80,39 +80,36 @@ const CreateForm = (props) => {
|
|
|
80
80
|
form: formProps == null ? void 0 : formProps.form,
|
|
81
81
|
...formLayout,
|
|
82
82
|
...formProps || {},
|
|
83
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(antd.Row, { gutter: 16, ...rowProps, children: items.filter((v) => !v.hidden).map((item, index) =>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
onChange: (e)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
item.dataIndex || index
|
|
114
|
-
);
|
|
115
|
-
}) })
|
|
83
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(antd.Row, { gutter: 16, ...rowProps, children: items.filter((v) => !v.hidden).map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
84
|
+
antd.Col,
|
|
85
|
+
{
|
|
86
|
+
...item.colProps || { span: 24 },
|
|
87
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
88
|
+
antd.Form.Item,
|
|
89
|
+
{
|
|
90
|
+
...item.valueType === "upload" ? {
|
|
91
|
+
getValueFromEvent: normFile
|
|
92
|
+
} : {},
|
|
93
|
+
label: !hiddenTitle ? item.title : "",
|
|
94
|
+
name: item.valueType === "btns" ? void 0 : item.dataIndex,
|
|
95
|
+
...item.formItemProps,
|
|
96
|
+
children: item.readonly ? /* @__PURE__ */ jsxRuntime.jsx("div", { children: renderReadOnly(item) }) : item.readonly === void 0 && readonly ? /* @__PURE__ */ jsxRuntime.jsx("div", { children: renderReadOnly(item) }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
+
FormFields,
|
|
98
|
+
{
|
|
99
|
+
onChange: (e) => {
|
|
100
|
+
var _a;
|
|
101
|
+
return (_a = item == null ? void 0 : item.onChange) == null ? void 0 : _a.call(item, e);
|
|
102
|
+
},
|
|
103
|
+
valueType: item.valueType,
|
|
104
|
+
onBtnClick,
|
|
105
|
+
valueProps: item.valueProps
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
},
|
|
111
|
+
item.dataIndex || index
|
|
112
|
+
)) })
|
|
116
113
|
}
|
|
117
114
|
);
|
|
118
115
|
};
|