@hw-component/form 1.10.32 → 1.10.34
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.
|
@@ -46,7 +46,8 @@ var mathRequired = function mathRequired(configItem, form, defaultComponents) {
|
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
var matchDefaultPlaceholder = function matchDefaultPlaceholder(props, defaultComponents) {
|
|
49
|
-
var label = props.label,
|
|
49
|
+
var _props$label = props.label,
|
|
50
|
+
label = _props$label === void 0 ? "" : _props$label,
|
|
50
51
|
placeholder = props.placeholder,
|
|
51
52
|
_props$type = props.type,
|
|
52
53
|
type = _props$type === void 0 ? "input" : _props$type;
|
package/es/Form/index.js
CHANGED
|
@@ -97,7 +97,6 @@ var HForm = (function (_ref) {
|
|
|
97
97
|
children: jsxs(Form, _objectSpread(_objectSpread({}, props), {}, {
|
|
98
98
|
form: hForm,
|
|
99
99
|
onFinish: run,
|
|
100
|
-
initialValues: initialValues,
|
|
101
100
|
onValuesChange: valuesChange,
|
|
102
101
|
style: requiredMode ? _objectSpread({
|
|
103
102
|
paddingLeft: 10
|
|
@@ -49,7 +49,8 @@ var mathRequired = function mathRequired(configItem, form, defaultComponents) {
|
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
var matchDefaultPlaceholder = function matchDefaultPlaceholder(props, defaultComponents) {
|
|
52
|
-
var label = props.label,
|
|
52
|
+
var _props$label = props.label,
|
|
53
|
+
label = _props$label === void 0 ? "" : _props$label,
|
|
53
54
|
placeholder = props.placeholder,
|
|
54
55
|
_props$type = props.type,
|
|
55
56
|
type = _props$type === void 0 ? "input" : _props$type;
|
package/lib/Form/index.js
CHANGED
|
@@ -100,7 +100,6 @@ var HForm = (function (_ref) {
|
|
|
100
100
|
children: jsxRuntime.jsxs(antd.Form, _objectSpread(_objectSpread({}, props), {}, {
|
|
101
101
|
form: hForm,
|
|
102
102
|
onFinish: run,
|
|
103
|
-
initialValues: initialValues,
|
|
104
103
|
onValuesChange: valuesChange,
|
|
105
104
|
style: requiredMode ? _objectSpread({
|
|
106
105
|
paddingLeft: 10
|
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@ const matchDefaultPlaceholder = (
|
|
|
54
54
|
props: HFormItemProps,
|
|
55
55
|
defaultComponents: DefaultComponentModal
|
|
56
56
|
) => {
|
|
57
|
-
const { label, placeholder, type = "input" } = props;
|
|
57
|
+
const { label="", placeholder, type = "input" } = props;
|
|
58
58
|
const dom = defaultComponents[type];
|
|
59
59
|
if (placeholder) {
|
|
60
60
|
return placeholder;
|