fmui-base 2.0.42 → 2.0.43

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/lib/form/table.js CHANGED
@@ -1032,6 +1032,7 @@ var PageHome = function (_React$Component) {
1032
1032
  }, {
1033
1033
  key: 'forSubCalculateExpList',
1034
1034
  value: function forSubCalculateExpList(data, itemParam, uniqueName) {
1035
+ var that = this;
1035
1036
  var calculateExpList = data.subCalculateExpList;
1036
1037
  if (calculateExpList) {
1037
1038
  var calculateExpValue = calculateExpList[uniqueName];
@@ -1151,10 +1152,10 @@ var PageHome = function (_React$Component) {
1151
1152
  res = Number(res).toFixed(decimalPlace) + '';
1152
1153
  } else {
1153
1154
  if (fieldArray.length == 0) {
1154
- var aDP = getActualDecimalPlace(exp);
1155
+ var aDP = that.getActualDecimalPlace(exp);
1155
1156
  res = res.toFixed(aDP) + '';
1156
1157
  } else {
1157
- var maxDP = getMaxDecimalPlace(fieldItemArray); //获取参与计算的字段中 最长的小数位
1158
+ var maxDP = that.getMaxDecimalPlace(fieldItemArray); //获取参与计算的字段中 最长的小数位
1158
1159
  res = res.toFixed(maxDP) + '';
1159
1160
  }
1160
1161
  }
@@ -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
 
@@ -93,10 +93,6 @@ var MyGrid = function (_React$Component) {
93
93
  var t = _this;
94
94
  // 部件的初始化信息
95
95
  _db2.default.reactGrid.getPortalPage({ id: t.state.portalId, module: t.state.module }).then(function (res) {
96
- // console.log('====================================');
97
- // console.log(res, 'resresresresres');
98
- // console.log('====================================');
99
-
100
96
  _this.setState({
101
97
  data: res
102
98
  });
@@ -104,9 +100,6 @@ var MyGrid = function (_React$Component) {
104
100
  if (item.portletCode == 'banner') {
105
101
  _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)));
106
102
  } else if (item.portletCode == 'cyyy') {
107
- console.log('====================================');
108
- console.log(item.id, '//////////////////////////');
109
- console.log('====================================');
110
103
  t.getShoucangAppInfo(item.id);
111
104
  t.getComAppInfo(item.id);
112
105
  } else if (item.portletCode !== 'tbgl') {
@@ -125,12 +118,9 @@ var MyGrid = function (_React$Component) {
125
118
  };
126
119
 
127
120
  _this.getShoucangAppInfo = function (id) {
128
- console.log('====================================');
129
- console.log(id, 'ididididididididiididiididiididididi');
130
- console.log('====================================');
131
121
  _db2.default.reactGrid.getNewHomePageCollectAppInfoList({ showClient: "DING" }).then(function (result) {
132
122
  _this.setState(_defineProperty({}, 'wdsc' + '_' + id, result.data), function () {
133
- console.log(_this.state, 'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm');
123
+ // console.log(this.state, 'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm');
134
124
  });
135
125
  }).catch(function (error) {});
136
126
  };
@@ -246,8 +236,8 @@ var MyGrid = function (_React$Component) {
246
236
  bssxPer_show: true, //办事事项_个人_是否显示
247
237
  bssxOrg_show: true, //办事事项_个人_是否显示,
248
238
  cyyyUsuTab_show: true, //常用应用_是否显示
249
- cyyyPerTab_show: true //我的收藏_是否显示
250
-
239
+ cyyyPerTab_show: true, //我的收藏_是否显示
240
+ activeIndex_mail: 0
251
241
 
252
242
  };
253
243
  return _this;
@@ -547,6 +537,24 @@ var MyGrid = function (_React$Component) {
547
537
  }
548
538
  }
549
539
  }
540
+ }, {
541
+ key: 'handleChange',
542
+ value: function handleChange(id, obj) {
543
+ var _this3 = this;
544
+
545
+ debugger;
546
+ var t = this;
547
+ console.log({
548
+ activeIndex: obj.active,
549
+ preActiveIndex: obj.preActive,
550
+ data: id
551
+ });
552
+ this.setState(_defineProperty({}, 'activeIndex_mail_' + id, obj.active), function () {
553
+ console.log('====================================');
554
+ console.log(_this3.state);
555
+ console.log('====================================');
556
+ });
557
+ }
550
558
  }, {
551
559
  key: 'portalContent',
552
560
  value: function portalContent(item) {
@@ -562,7 +570,6 @@ var MyGrid = function (_React$Component) {
562
570
  var pathUrl = "";
563
571
  var colNum = t.state.todoList.length > 0 ? t.state.todoList.length : 5;
564
572
  if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].bannerImg) {
565
- debugger;
566
573
  var pathUrlId = t.state[item.portletCode + '_' + item.id].bannerImg;
567
574
  pathUrl = localStorage.getItem('context') + '/api/m/plugin/attachment/mobile/viewImage?token=' + localStorage.getItem('token') + '&fid=' + pathUrlId;
568
575
  } else {
@@ -1167,7 +1174,12 @@ var MyGrid = function (_React$Component) {
1167
1174
  componentContent = _react2.default.createElement(
1168
1175
  'div',
1169
1176
  null,
1170
- _react2.default.createElement(
1177
+ t.state['activeIndex_mail_' + item.data] && t.state['activeIndex_mail_' + item.data] == "0" ? _react2.default.createElement(
1178
+ 'p',
1179
+ { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN', onClick: t.skip2More.bind(this, 'gryj') },
1180
+ '\u66F4\u591A',
1181
+ _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
1182
+ ) : _react2.default.createElement(
1171
1183
  'p',
1172
1184
  { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN', onClick: t.skip2More.bind(this, 'ggyj') },
1173
1185
  '\u66F4\u591A',
@@ -1175,7 +1187,7 @@ var MyGrid = function (_React$Component) {
1175
1187
  ),
1176
1188
  _react2.default.createElement(
1177
1189
  _Tab2.default,
1178
- { activeKey: gryjShowList.indexOf('personMail') > -1 ? "0" : "1" },
1190
+ { activeKey: gryjShowList.indexOf('personMail') > -1 ? "0" : "1", onChange: t.handleChange.bind(this, item.id) },
1179
1191
  personMailTab,
1180
1192
  publicMailTab
1181
1193
  )
@@ -65,6 +65,9 @@
65
65
  // width: 100% !important;
66
66
  // margin: 0 10px;
67
67
  overflow: auto;
68
+ background-size: contain;
69
+ background-repeat: no-repeat;
70
+ background-size: 100% 100%;
68
71
  // background-color: #fff;
69
72
  }
70
73
 
@@ -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.42",
3
+ "version": "2.0.43",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",