datastake-daf 0.6.567 → 0.6.568
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/components/index.js
CHANGED
|
@@ -40585,10 +40585,6 @@ function AuthForm(_ref) {
|
|
|
40585
40585
|
};
|
|
40586
40586
|
const renderField = field => {
|
|
40587
40587
|
var _field$options;
|
|
40588
|
-
const rules = [...(field.required ? [{
|
|
40589
|
-
required: true,
|
|
40590
|
-
message: "".concat(field.label, " is required")
|
|
40591
|
-
}] : []), ...(field.rules || [])];
|
|
40592
40588
|
let inputNode = null;
|
|
40593
40589
|
switch (field.type) {
|
|
40594
40590
|
case "input":
|
|
@@ -40630,7 +40626,10 @@ function AuthForm(_ref) {
|
|
|
40630
40626
|
return /*#__PURE__*/jsxRuntime.jsx(antd.Form.Item, {
|
|
40631
40627
|
name: field.name,
|
|
40632
40628
|
label: field.label,
|
|
40633
|
-
rules: rules,
|
|
40629
|
+
rules: field.rules,
|
|
40630
|
+
style: {
|
|
40631
|
+
marginBottom: 0
|
|
40632
|
+
},
|
|
40634
40633
|
children: inputNode
|
|
40635
40634
|
}, field.name);
|
|
40636
40635
|
};
|
package/package.json
CHANGED
|
@@ -106,13 +106,6 @@ function AuthForm ({
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
const renderField = (field) => {
|
|
109
|
-
const rules = [
|
|
110
|
-
...(field.required
|
|
111
|
-
? [{ required: true, message: `${field.label} is required` }]
|
|
112
|
-
: []),
|
|
113
|
-
...(field.rules || []),
|
|
114
|
-
];
|
|
115
|
-
|
|
116
109
|
let inputNode = null;
|
|
117
110
|
switch (field.type) {
|
|
118
111
|
case "input":
|
|
@@ -145,7 +138,7 @@ function AuthForm ({
|
|
|
145
138
|
}
|
|
146
139
|
|
|
147
140
|
return (
|
|
148
|
-
<Form.Item key={field.name} name={field.name} label={field.label} rules={rules}>
|
|
141
|
+
<Form.Item key={field.name} name={field.name} label={field.label} rules={field.rules} style={{ marginBottom: 0 }}>
|
|
149
142
|
{inputNode}
|
|
150
143
|
</Form.Item>
|
|
151
144
|
);
|