@hw-component/form 1.10.32 → 1.10.33

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;
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.10.32",
3
+ "version": "1.10.33",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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;