fmui-base 2.0.48 → 2.0.50
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 +2 -0
- package/lib/chart/chart.js +8 -0
- package/lib/css/react_grid.css +15 -6
- package/lib/react_grid/react_grid.js +23 -17
- package/lib/react_grid/react_grid.less +11 -5
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/chart/chart.js
CHANGED
|
@@ -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,
|
package/lib/css/react_grid.css
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
display: none;
|
|
3
3
|
}
|
|
4
4
|
.react-grid .t-tab-bar {
|
|
5
|
-
padding-left:
|
|
5
|
+
padding-left: 10px;
|
|
6
6
|
}
|
|
7
7
|
.react-grid .t-tab-bar .t-tab-tab {
|
|
8
8
|
font-size: 16px;
|
|
9
9
|
min-width: 95px;
|
|
10
10
|
color: #888;
|
|
11
11
|
flex: initial;
|
|
12
|
-
padding: 0 10px;
|
|
13
12
|
height: 33px;
|
|
14
13
|
line-height: 20px;
|
|
15
14
|
display: block;
|
|
16
15
|
background-color: transparent;
|
|
17
16
|
}
|
|
18
17
|
.react-grid .t-tab-bar .t-tab-tab div {
|
|
19
|
-
max-width:
|
|
18
|
+
max-width: 95px;
|
|
19
|
+
padding: 0 5px;
|
|
20
20
|
height: inherit;
|
|
21
21
|
white-space: nowrap;
|
|
22
22
|
overflow: hidden;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
font-size: 18px;
|
|
30
30
|
}
|
|
31
31
|
.react-grid .t-tab-ink-bar {
|
|
32
|
-
margin-left: -
|
|
32
|
+
margin-left: -38px;
|
|
33
33
|
border-radius: 4px;
|
|
34
34
|
height: 4px;
|
|
35
35
|
width: 25px !important;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
left: 30px;
|
|
48
48
|
}
|
|
49
49
|
.react-grid .t-tab-nav-wrap .t-tab-ink-bar {
|
|
50
|
-
margin-left: -
|
|
50
|
+
margin-left: -31px;
|
|
51
51
|
}
|
|
52
52
|
.react-grid .react-grid-item.cssTransforms {
|
|
53
53
|
overflow: auto;
|
|
@@ -358,9 +358,12 @@
|
|
|
358
358
|
border-radius: 5px;
|
|
359
359
|
}
|
|
360
360
|
.react-grid .carousel-notice.t-slide .t-slide-item {
|
|
361
|
-
padding: 16px;
|
|
362
361
|
background-size: 100% 100%;
|
|
363
362
|
}
|
|
363
|
+
.react-grid .carousel-notice.t-slide .t-slide-item-inner {
|
|
364
|
+
background-size: 100% 100%;
|
|
365
|
+
background-repeat: no-repeat;
|
|
366
|
+
}
|
|
364
367
|
.react-grid .carousel-notice.t-slide .t-slide-item img {
|
|
365
368
|
display: none;
|
|
366
369
|
}
|
|
@@ -785,6 +788,9 @@
|
|
|
785
788
|
.react-grid .list-RT-label .list-item .item-title::before {
|
|
786
789
|
background: #713938;
|
|
787
790
|
}
|
|
791
|
+
.react-grid .list-RT-label .list-item {
|
|
792
|
+
margin: 10px 16px;
|
|
793
|
+
}
|
|
788
794
|
.react-grid .rightMore {
|
|
789
795
|
position: absolute;
|
|
790
796
|
right: 10px;
|
|
@@ -824,3 +830,6 @@
|
|
|
824
830
|
align-items: flex-start;
|
|
825
831
|
justify-content: initial;
|
|
826
832
|
}
|
|
833
|
+
.react-grid .t-grid-item + .t-grid-item {
|
|
834
|
+
border-left: none !important;
|
|
835
|
+
}
|
|
@@ -556,6 +556,9 @@ var MyGrid = function (_React$Component) {
|
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
+
|
|
560
|
+
// 区分个人邮件和公共邮件
|
|
561
|
+
|
|
559
562
|
}, {
|
|
560
563
|
key: 'handleChange',
|
|
561
564
|
value: function handleChange(id, obj) {
|
|
@@ -576,6 +579,9 @@ var MyGrid = function (_React$Component) {
|
|
|
576
579
|
this.setState((_setState4 = {}, _defineProperty(_setState4, 'activeIndex_gryj_' + id, true), _defineProperty(_setState4, 'activeIndex_ggyj_' + id, false), _setState4));
|
|
577
580
|
}
|
|
578
581
|
}
|
|
582
|
+
|
|
583
|
+
// 部件内容渲染处理函数
|
|
584
|
+
|
|
579
585
|
}, {
|
|
580
586
|
key: 'portalContent',
|
|
581
587
|
value: function portalContent(item) {
|
|
@@ -658,7 +664,7 @@ var MyGrid = function (_React$Component) {
|
|
|
658
664
|
}.bind(this)) : ''
|
|
659
665
|
)
|
|
660
666
|
);
|
|
661
|
-
|
|
667
|
+
// backgroundImage直接判断有无会报错,单独return
|
|
662
668
|
return _react2.default.createElement(
|
|
663
669
|
'div',
|
|
664
670
|
{ className: 'react-grid-component', key: item.id, style: {
|
|
@@ -691,10 +697,10 @@ var MyGrid = function (_React$Component) {
|
|
|
691
697
|
{ style: { color: styleSetting.titleSet.titleColor, fontWeight: styleSetting.titleSet.titleWeight == 1 ? 700 : '', fontSize: styleSetting.titleSet.titleSize, fontFamily: styleSetting.titleSet.titleFamily, fontStyle: styleSetting.titleSet.titleItalic === "1" ? "italic" : '' } },
|
|
692
698
|
'\u5E38\u7528\u5E94\u7528'
|
|
693
699
|
) },
|
|
694
|
-
_react2.default.createElement(
|
|
700
|
+
t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].length > 0 ? _react2.default.createElement(
|
|
695
701
|
_Grid2.default,
|
|
696
702
|
{ col: personalSetting.cols * 1, className: t.state.showcyyy ? '' : 't-DN' },
|
|
697
|
-
t.state[item.portletCode + '_' + item.id]
|
|
703
|
+
t.state[item.portletCode + '_' + item.id].map(function (ele) {
|
|
698
704
|
return _react2.default.createElement(
|
|
699
705
|
'div',
|
|
700
706
|
{ className: 'systemItem', onClick: t.newPageSkip.bind(t, ele.dingUrl, ele.wxUrl, ele.mhUrl, ele.cocallUrl) },
|
|
@@ -709,11 +715,7 @@ var MyGrid = function (_React$Component) {
|
|
|
709
715
|
ele.name
|
|
710
716
|
)
|
|
711
717
|
);
|
|
712
|
-
})
|
|
713
|
-
'div',
|
|
714
|
-
null,
|
|
715
|
-
_react2.default.createElement('img', { className: 't-W100 t-PL10 t-PR10', src: '../../../fmui/images/home/nodata.png' })
|
|
716
|
-
),
|
|
718
|
+
}),
|
|
717
719
|
_react2.default.createElement(
|
|
718
720
|
'div',
|
|
719
721
|
{ className: t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].length > 0 ? 'systemItem' : 't-DN', onClick: t.jumpPage.bind(this, "homepage/home/applistSetting", personalSetting.cols * 1, item.id) },
|
|
@@ -728,6 +730,10 @@ var MyGrid = function (_React$Component) {
|
|
|
728
730
|
'\u66F4\u591A'
|
|
729
731
|
)
|
|
730
732
|
)
|
|
733
|
+
) : _react2.default.createElement(
|
|
734
|
+
'div',
|
|
735
|
+
null,
|
|
736
|
+
_react2.default.createElement('img', { className: 't-W100 t-PL10 t-PR10', src: '../../../fmui/images/home/nodata.png' })
|
|
731
737
|
)
|
|
732
738
|
),
|
|
733
739
|
_react2.default.createElement(
|
|
@@ -737,10 +743,10 @@ var MyGrid = function (_React$Component) {
|
|
|
737
743
|
{ style: { color: styleSetting.titleSet.titleColor, fontWeight: styleSetting.titleSet.titleWeight == 1 ? 700 : '', fontSize: styleSetting.titleSet.titleSize, fontFamily: styleSetting.titleSet.titleFamily, fontStyle: styleSetting.titleSet.titleItalic === "1" ? "italic" : '' } },
|
|
738
744
|
'\u6211\u7684\u6536\u85CF'
|
|
739
745
|
) },
|
|
740
|
-
_react2.default.createElement(
|
|
746
|
+
t.state['wdsc' + '_' + item.id] && t.state['wdsc' + '_' + item.id].length > 0 ? _react2.default.createElement(
|
|
741
747
|
_Grid2.default,
|
|
742
748
|
{ col: personalSetting.cols * 1 },
|
|
743
|
-
t.state['wdsc' + '_' + item.id]
|
|
749
|
+
t.state['wdsc' + '_' + item.id].map(function (ele) {
|
|
744
750
|
return _react2.default.createElement(
|
|
745
751
|
'div',
|
|
746
752
|
{ className: 'systemItem', onClick: t.newPageSkip.bind(t, ele.dingUrl, ele.wxUrl, ele.mhUrl, ele.cocallUrl) },
|
|
@@ -755,14 +761,10 @@ var MyGrid = function (_React$Component) {
|
|
|
755
761
|
ele.name
|
|
756
762
|
)
|
|
757
763
|
);
|
|
758
|
-
})
|
|
759
|
-
'div',
|
|
760
|
-
null,
|
|
761
|
-
_react2.default.createElement('img', { className: 't-W100 t-PL10 t-PR10', src: '../../../fmui/images/home/nodata.png' })
|
|
762
|
-
),
|
|
764
|
+
}),
|
|
763
765
|
_react2.default.createElement(
|
|
764
766
|
'div',
|
|
765
|
-
{ className:
|
|
767
|
+
{ className: 'systemItem', onClick: t.jumpPage.bind(this, "/appCollect") },
|
|
766
768
|
_react2.default.createElement(
|
|
767
769
|
'div',
|
|
768
770
|
{ className: 'iconblock t-iconBCred' },
|
|
@@ -774,6 +776,10 @@ var MyGrid = function (_React$Component) {
|
|
|
774
776
|
'\u66F4\u591A'
|
|
775
777
|
)
|
|
776
778
|
)
|
|
779
|
+
) : _react2.default.createElement(
|
|
780
|
+
'div',
|
|
781
|
+
null,
|
|
782
|
+
_react2.default.createElement('img', { className: 't-W100 t-PL10 t-PR10', src: '../../../fmui/images/home/nodata.png' })
|
|
777
783
|
)
|
|
778
784
|
)
|
|
779
785
|
)
|
|
@@ -1501,7 +1507,7 @@ var MyGrid = function (_React$Component) {
|
|
|
1501
1507
|
)
|
|
1502
1508
|
);
|
|
1503
1509
|
|
|
1504
|
-
componentContent = _react2.default.createElement(_chart2.default, { portalId: item.id, height: '100%' });
|
|
1510
|
+
componentContent = _react2.default.createElement(_chart2.default, { portalId: item.id, height: '100%', hasTitle: styleSetting.titleSet.titleStatus == 1 });
|
|
1505
1511
|
}
|
|
1506
1512
|
if (item.portletCode === 'wdsx') {
|
|
1507
1513
|
componentHead = _react2.default.createElement(
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.t-tab-bar {
|
|
10
|
-
padding-left:
|
|
10
|
+
padding-left: 10px;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.t-tab-bar .t-tab-tab {
|
|
@@ -15,14 +15,15 @@
|
|
|
15
15
|
min-width: 95px;
|
|
16
16
|
color: #888;
|
|
17
17
|
flex: initial;
|
|
18
|
-
padding: 0
|
|
18
|
+
// padding: 0 8px;
|
|
19
19
|
height: 33px;
|
|
20
20
|
line-height: 20px;
|
|
21
21
|
display: block;
|
|
22
22
|
background-color: transparent;
|
|
23
23
|
|
|
24
24
|
div {
|
|
25
|
-
max-width:
|
|
25
|
+
max-width: 95px;
|
|
26
|
+
padding: 0 5px;
|
|
26
27
|
height: inherit;
|
|
27
28
|
white-space: nowrap;
|
|
28
29
|
overflow: hidden;
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
|
|
40
41
|
.t-tab-ink-bar {
|
|
41
42
|
// background-color: @theme-color !important;
|
|
42
|
-
margin-left: -
|
|
43
|
+
margin-left: -41px;
|
|
43
44
|
border-radius: 4px;
|
|
44
45
|
height: 4px;
|
|
45
46
|
width: 25px !important;
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
.t-tab-nav-wrap .t-tab-ink-bar {
|
|
62
|
-
margin-left: -
|
|
63
|
+
margin-left: -31px;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
.react-grid-item.cssTransforms {
|
|
@@ -987,6 +988,10 @@
|
|
|
987
988
|
background:#713938;
|
|
988
989
|
}
|
|
989
990
|
|
|
991
|
+
.list-RT-label .list-item {
|
|
992
|
+
margin: 10px 16px;
|
|
993
|
+
}
|
|
994
|
+
|
|
990
995
|
.rightMore {
|
|
991
996
|
position: absolute;
|
|
992
997
|
right: 10px;
|
|
@@ -1041,5 +1046,6 @@
|
|
|
1041
1046
|
.t-grid-item+.t-grid-item {
|
|
1042
1047
|
border-left: none !important;
|
|
1043
1048
|
}
|
|
1049
|
+
|
|
1044
1050
|
}
|
|
1045
1051
|
|