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.
@@ -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
- var _a;
83
- return /* @__PURE__ */ jsx(
84
- Col,
85
- {
86
- ...item.colProps || { span: 24 },
87
- children: /* @__PURE__ */ jsx(
88
- 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__ */ jsx("div", { children: renderReadOnly(item) }) : item.readonly === void 0 && readonly ? /* @__PURE__ */ jsx("div", { children: item.value || item.dataIndex && ((_a = formProps == null ? void 0 : formProps.initialValues) == null ? void 0 : _a[item.dataIndex]) }) : /* @__PURE__ */ jsx(
97
- FormFields,
98
- {
99
- onChange: (e) => {
100
- var _a2;
101
- return (_a2 = item == null ? void 0 : item.onChange) == null ? void 0 : _a2.call(item, e);
102
- },
103
- valueType: item.valueType,
104
- onBtnClick,
105
- valueProps: item.valueProps
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
- var _a;
85
- return /* @__PURE__ */ jsxRuntime.jsx(
86
- antd.Col,
87
- {
88
- ...item.colProps || { span: 24 },
89
- children: /* @__PURE__ */ jsxRuntime.jsx(
90
- antd.Form.Item,
91
- {
92
- ...item.valueType === "upload" ? {
93
- getValueFromEvent: normFile
94
- } : {},
95
- label: !hiddenTitle ? item.title : "",
96
- name: item.valueType === "btns" ? void 0 : item.dataIndex,
97
- ...item.formItemProps,
98
- children: item.readonly ? /* @__PURE__ */ jsxRuntime.jsx("div", { children: renderReadOnly(item) }) : item.readonly === void 0 && readonly ? /* @__PURE__ */ jsxRuntime.jsx("div", { children: item.value || item.dataIndex && ((_a = formProps == null ? void 0 : formProps.initialValues) == null ? void 0 : _a[item.dataIndex]) }) : /* @__PURE__ */ jsxRuntime.jsx(
99
- FormFields,
100
- {
101
- onChange: (e) => {
102
- var _a2;
103
- return (_a2 = item == null ? void 0 : item.onChange) == null ? void 0 : _a2.call(item, e);
104
- },
105
- valueType: item.valueType,
106
- onBtnClick,
107
- valueProps: item.valueProps
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
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",