fmui-base 2.0.36 → 2.0.38

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.
@@ -187,9 +187,9 @@ var Page = function (_React$Component2) {
187
187
  //this.initData();
188
188
 
189
189
 
190
- /*// 子组件初始化
191
- initState() {
192
- }*/
190
+ /*// 子组件初始化
191
+ initState() {
192
+ }*/
193
193
 
194
194
  //初始化数据
195
195
 
@@ -109,9 +109,7 @@ var MyGrid = function (_React$Component) {
109
109
  _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, res));
110
110
  });
111
111
  } else if (item.portletCode == 'banner') {
112
- _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)), function () {
113
- console.log(_this.state, '///////////////////////////');
114
- });
112
+ _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)));
115
113
  }
116
114
  });
117
115
  });
@@ -403,7 +401,7 @@ var MyGrid = function (_React$Component) {
403
401
  key: 'skip2Zhuanti',
404
402
  value: function skip2Zhuanti(item) {
405
403
  var code = item.data.props.code;
406
- location.hash = "topicservice/" + item.code;
404
+ location.hash = "topicservice/" + code;
407
405
  }
408
406
 
409
407
  //跳转到我的事项
@@ -603,7 +601,7 @@ var MyGrid = function (_React$Component) {
603
601
  }) : '',
604
602
  _react2.default.createElement(
605
603
  'div',
606
- { className: 'systemItem', onClick: t.jumpPage.bind(this, "homepage/home/applistSetting") },
604
+ { className: 'systemItem', onClick: t.jumpPage.bind(this, "homepage/home/applistSetting", personalSetting.cols) },
607
605
  _react2.default.createElement(
608
606
  'div',
609
607
  { className: 'iconblock t-iconBCred' },
@@ -753,7 +751,7 @@ var MyGrid = function (_React$Component) {
753
751
  { className: 'component-bssx' },
754
752
  _react2.default.createElement(
755
753
  'p',
756
- { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN' },
754
+ { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN', onClick: t.jumpPage.bind(this, "/officehall") },
757
755
  '\u66F4\u591A',
758
756
  _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
759
757
  ),
@@ -1088,10 +1086,20 @@ var MyGrid = function (_React$Component) {
1088
1086
  );
1089
1087
  }
1090
1088
  componentContent = _react2.default.createElement(
1091
- _Tab2.default,
1092
- { activeKey: gryjShowList.indexOf('personMail') > -1 ? "0" : "1" },
1093
- personMailTab,
1094
- publicMailTab
1089
+ 'div',
1090
+ null,
1091
+ _react2.default.createElement(
1092
+ 'p',
1093
+ { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN' },
1094
+ '\u66F4\u591A',
1095
+ _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
1096
+ ),
1097
+ _react2.default.createElement(
1098
+ _Tab2.default,
1099
+ { activeKey: gryjShowList.indexOf('personMail') > -1 ? "0" : "1" },
1100
+ personMailTab,
1101
+ publicMailTab
1102
+ )
1095
1103
  );
1096
1104
  }
1097
1105
  if (item.portletCode === 'grrc') {
@@ -1166,9 +1174,11 @@ var MyGrid = function (_React$Component) {
1166
1174
  calendarDom,
1167
1175
  grrcList
1168
1176
  );
1169
- setTimeout(function () {
1170
- t.initCleader(t.state[item.portletCode + '_' + item.id], item.id);
1171
- }, 600);
1177
+ if (t.state[item.portletCode + '_' + item.id]) {
1178
+ setTimeout(function () {
1179
+ t.initCleader(t.state[item.portletCode + '_' + item.id], item.id);
1180
+ }, 600);
1181
+ }
1172
1182
  }
1173
1183
  if (item.portletCode === 'grhy') {
1174
1184
  var grhyContent = '';
@@ -1446,15 +1456,15 @@ var MyGrid = function (_React$Component) {
1446
1456
  return _react2.default.createElement(
1447
1457
  'div',
1448
1458
  { className: 'react-grid-component', key: item.id, style: {
1449
- borderTopLeftRadius: styleSetting.otherSet.radius.topLeft,
1450
- borderTopRightRadius: styleSetting.otherSet.radius.topRight,
1451
- borderBottomLeftRadius: styleSetting.otherSet.radius.bottomLeft,
1452
- borderBottomRightRadius: styleSetting.otherSet.radius.bottomRight,
1453
- paddingLeft: styleSetting.pl,
1454
- paddingright: styleSetting.pr,
1455
- paddingTop: styleSetting.pt,
1456
- paddingBottom: styleSetting.pb,
1457
- background: styleSetting.bgColor ? styleSetting.bgColor : ''
1459
+ borderTopLeftRadius: styleSetting.otherSet.radius.topLeft + 'px',
1460
+ borderTopRightRadius: styleSetting.otherSet.radius.topRight + 'px',
1461
+ borderBottomLeftRadius: styleSetting.otherSet.radius.bottomLeft + 'px',
1462
+ borderBottomRightRadius: styleSetting.otherSet.radius.bottomRight + 'px',
1463
+ paddingLeft: styleSetting.otherSet.paddingSet.pl + 'px',
1464
+ paddingright: styleSetting.otherSet.paddingSet.pr + 'px',
1465
+ paddingTop: styleSetting.otherSet.paddingSet.pt + 'px',
1466
+ paddingBottom: styleSetting.otherSet.paddingSet.pb + 'px',
1467
+ backgroundColor: styleSetting.otherSet.bgColor
1458
1468
  } },
1459
1469
  styleSetting.titleSet.titleStatus == 1 ? componentHead : '',
1460
1470
  componentContent
@@ -1537,9 +1547,7 @@ var MyGrid = function (_React$Component) {
1537
1547
  margin: [0, 10]
1538
1548
  },
1539
1549
  this.state.data.map(function (item) {
1540
- console.log('====================================');
1541
- console.log(t.portalContent(item), ' t.portalContent(item) t.portalContent(item)');
1542
- console.log('====================================');
1550
+
1543
1551
  return t.portalContent(item) || null;
1544
1552
 
1545
1553
  // 添加一个默认返回值,以避免未指定键的错误
@@ -232,7 +232,7 @@
232
232
  .systemItem {
233
233
  display: inline-block;
234
234
  text-align: center;
235
- // width: 25%;
235
+ width: fit-content;
236
236
  vertical-align: top;
237
237
  padding-top: 25px;
238
238
 
@@ -467,9 +467,9 @@
467
467
  }
468
468
 
469
469
  .jxzt-content {
470
+ margin: 16px;
470
471
  .t-image-slide-item {
471
- margin: 16px;
472
- height: 91px !important;
472
+ // height: 91px !important;
473
473
  background-image: url(/mobile/fmui/images/notice-card-bg.png);
474
474
  background-size: 100% 100%;
475
475
  border-radius: 10px;
@@ -635,14 +635,19 @@
635
635
  margin-bottom: 10px;
636
636
  }
637
637
 
638
- .calendar-content .canChoose-active span {
638
+ .calendar-content .canChoose-active span ,.calendar-content div.today span{
639
639
  color:#713938 !important;
640
- // background: #F6F6F6 !important;
640
+ }
641
+ .calendar-content .canChoose-active span {
642
+ background: #F6F6F6 !important;
643
+ }
644
+
645
+ .calendar-content div.today span {
641
646
  background: transparent !important;
642
647
  }
643
648
 
644
649
  .calendar-content span.hasEvent:before {
645
- color: #FAB88D;
650
+ color: #FAB88D !important;
646
651
  }
647
652
 
648
653
  .rc-list {
@@ -626,7 +626,7 @@ var Page = function (_React$Component) {
626
626
  }, {
627
627
  key: 'closMask',
628
628
  value: function closMask() {
629
- /* $("#App").removeAttr("style");
629
+ /* $("#App").removeAttr("style");
630
630
  $(document).scrollTop(this.props.top);*/
631
631
  }
632
632
  }, {
@@ -540,7 +540,7 @@ var Page = function (_React$Component) {
540
540
  }, {
541
541
  key: 'closMask',
542
542
  value: function closMask() {
543
- /* $("#App").removeAttr("style");
543
+ /* $("#App").removeAttr("style");
544
544
  $(document).scrollTop(this.props.top);*/
545
545
  }
546
546
  }, {
@@ -538,7 +538,7 @@ var Page = function (_Component) {
538
538
  }, {
539
539
  key: 'closMask',
540
540
  value: function closMask() {
541
- /* $("#App").removeAttr("style");
541
+ /* $("#App").removeAttr("style");
542
542
  $(document).scrollTop(this.props.top);*/
543
543
  }
544
544
  }, {
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- /**
7
- * Created by louizhai on 17/6/30.
8
- * description: Use canvas to draw.
6
+ /**
7
+ * Created by louizhai on 17/6/30.
8
+ * description: Use canvas to draw.
9
9
  */
10
10
  function Draw(canvas, degree) {
11
11
  var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -1,73 +1,73 @@
1
- .page-demo {
2
- color:#666;
3
- }
4
-
5
-
6
- #canvasBox {
7
- display: flex;
8
- flex-direction: column;
9
- height: 100%;
10
- }
11
- .greet {
12
- padding: 20px;
13
- font-size: 20px;
14
- user-select: none;
15
- }
16
- .greet a {
17
- cursor: pointer;
18
- }
19
- .greet select {
20
- font-size: 18px;
21
- }
22
- canvas {
23
- flex: 1;
24
- //border: 0.5px solid #ccc;
25
- cursor: crosshair;
26
- }
27
-
28
-
29
-
30
-
31
- @media screen and (orientation: portrait) {
32
- .dd-write-sign-page {
33
- position: absolute;
34
- width: 100vh;
35
- height: 100vw;
36
- top: 0;
37
- left: 100vw;
38
- -webkit-transform: rotate(90deg);
39
- -moz-transform: rotate(90deg);
40
- -ms-transform: rotate(90deg);
41
- transform: rotate(90deg);
42
- transform-origin: 0% 0%;
43
- }
44
- }
45
-
46
- @media screen and (orientation: landscape) {
47
- .dd-write-sign-page {
48
- -webkit-transform: rotate(0);
49
- -moz-transform: rotate(0);
50
- -ms-transform: rotate(0);
51
- transform: rotate(0)
52
- }
53
- }
54
-
55
- .dd-write-sign {
56
- height: calc(~"100% - 83px");
57
- }
58
-
59
- .dd-write-sign-del.t-text-button {
60
- height: 32px;
61
- line-height: 32px;
62
-
63
- .iconfont {
64
- height: 32px;
65
- }
66
- }
67
- .img-border{
68
- border:1px solid #ccc;
69
-
70
- }
71
-
72
-
73
-
1
+ .page-demo {
2
+ color:#666;
3
+ }
4
+
5
+
6
+ #canvasBox {
7
+ display: flex;
8
+ flex-direction: column;
9
+ height: 100%;
10
+ }
11
+ .greet {
12
+ padding: 20px;
13
+ font-size: 20px;
14
+ user-select: none;
15
+ }
16
+ .greet a {
17
+ cursor: pointer;
18
+ }
19
+ .greet select {
20
+ font-size: 18px;
21
+ }
22
+ canvas {
23
+ flex: 1;
24
+ //border: 0.5px solid #ccc;
25
+ cursor: crosshair;
26
+ }
27
+
28
+
29
+
30
+
31
+ @media screen and (orientation: portrait) {
32
+ .dd-write-sign-page {
33
+ position: absolute;
34
+ width: 100vh;
35
+ height: 100vw;
36
+ top: 0;
37
+ left: 100vw;
38
+ -webkit-transform: rotate(90deg);
39
+ -moz-transform: rotate(90deg);
40
+ -ms-transform: rotate(90deg);
41
+ transform: rotate(90deg);
42
+ transform-origin: 0% 0%;
43
+ }
44
+ }
45
+
46
+ @media screen and (orientation: landscape) {
47
+ .dd-write-sign-page {
48
+ -webkit-transform: rotate(0);
49
+ -moz-transform: rotate(0);
50
+ -ms-transform: rotate(0);
51
+ transform: rotate(0)
52
+ }
53
+ }
54
+
55
+ .dd-write-sign {
56
+ height: calc(~"100% - 83px");
57
+ }
58
+
59
+ .dd-write-sign-del.t-text-button {
60
+ height: 32px;
61
+ line-height: 32px;
62
+
63
+ .iconfont {
64
+ height: 32px;
65
+ }
66
+ }
67
+ .img-border{
68
+ border:1px solid #ccc;
69
+
70
+ }
71
+
72
+
73
+
@@ -1,12 +1,12 @@
1
- # 手写签名使用文档
2
-
3
- 1. 安装fmui 0.0.36-ygy以上的版本
4
- 2. 引用: import Sign from 'fmui/lib/signature';
5
- 3. 写标签
6
- ```
7
- <Sign upload={(val)=>{alert(val)}}/>
8
- ```
9
- 4. 参数
10
- - upload : (必填项)回调方法,返回参数为生成手写签名图片的id
11
- - title : (必填项)显示的输入框标题
1
+ # 手写签名使用文档
2
+
3
+ 1. 安装fmui 0.0.36-ygy以上的版本
4
+ 2. 引用: import Sign from 'fmui/lib/signature';
5
+ 3. 写标签
6
+ ```
7
+ <Sign upload={(val)=>{alert(val)}}/>
8
+ ```
9
+ 4. 参数
10
+ - upload : (必填项)回调方法,返回参数为生成手写签名图片的id
11
+ - title : (必填项)显示的输入框标题
12
12
  - fileId : 初始化签名图片文件id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.36",
3
+ "version": "2.0.38",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",