fmui-base 2.0.48 → 2.0.49

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/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.0.49:移动门户图表组件修改
6
7
  - 2.0.48:移动门户组件修改
7
8
  - 2.0.47:移动端默认传阅
8
9
  - 2.0.46:移动门户图表组件单维表多维表不支持提示
@@ -36,9 +36,17 @@ var NoData = function (_React$Component) {
36
36
 
37
37
  var portalId = props.portalId;
38
38
  var height = props.height;
39
+ var hasTitle = props.hasTitle ? props.height : false;
39
40
  if (!height) {
40
41
  height = 400;
41
42
  }
43
+ if (hasTitle) {
44
+ if ((height + "").indexOf("%") > 0) {
45
+ height = "calc(" + height + " - 50px)";
46
+ } else {
47
+ height = height - 50;
48
+ }
49
+ }
42
50
  _this.state = {
43
51
  loadTrue: false,
44
52
  portalId: portalId,