form-driver 0.3.13 → 0.3.14

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/es/m3.js CHANGED
@@ -18005,12 +18005,15 @@ function ItemLabel(props) {
18005
18005
  }));
18006
18006
  }
18007
18007
 
18008
+ console.log('ItemLabel', props);
18009
+
18008
18010
  if (props.labelWidth) {
18011
+ // 防止 提示信息 换行
18009
18012
  return /*#__PURE__*/React.createElement("span", {
18010
18013
  className: "ItemLabel",
18011
18014
  style: {
18012
18015
  display: "inline-block",
18013
- width: props.labelWidth + 20
18016
+ width: props.labelWidth + 40
18014
18017
  }
18015
18018
  }, star, label, popoverDesc);
18016
18019
  } else {
package/lib/m3.js CHANGED
@@ -18027,12 +18027,15 @@ function ItemLabel(props) {
18027
18027
  }));
18028
18028
  }
18029
18029
 
18030
+ console.log('ItemLabel', props);
18031
+
18030
18032
  if (props.labelWidth) {
18033
+ // 防止 提示信息 换行
18031
18034
  return /*#__PURE__*/React__default["default"].createElement("span", {
18032
18035
  className: "ItemLabel",
18033
18036
  style: {
18034
18037
  display: "inline-block",
18035
- width: props.labelWidth + 20
18038
+ width: props.labelWidth + 40
18036
18039
  }
18037
18040
  }, star, label, popoverDesc);
18038
18041
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "form-driver",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "An efficient framework for creating forms.",
5
5
  "license": "MIT",
6
6
  "authors": [
@@ -35,8 +35,10 @@ function ItemLabel(props: { uispec?: M3UISpec, schema: MFieldSchema, labelWidth?
35
35
  </Popover>
36
36
  }
37
37
 
38
+ console.log('ItemLabel', props)
38
39
  if (props.labelWidth) {
39
- return <span className="ItemLabel" style={{ display: "inline-block", width: props.labelWidth + 20 }}>{star}{label}{popoverDesc}</span>;
40
+ // 防止 提示信息 换行
41
+ return <span className="ItemLabel" style={{ display: "inline-block", width: props.labelWidth + 40 }}>{star}{label}{popoverDesc}</span>;
40
42
  } else {
41
43
  return <div className="ItemLabel" key={"字段标题:" + props.schema.name}>{star}{label}{popoverDesc}</div>;
42
44
  }