fmui-base 2.0.41 → 2.0.42

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,7 +1032,6 @@ var PageHome = function (_React$Component) {
1032
1032
  }, {
1033
1033
  key: 'forSubCalculateExpList',
1034
1034
  value: function forSubCalculateExpList(data, itemParam, uniqueName) {
1035
- var that = this;
1036
1035
  var calculateExpList = data.subCalculateExpList;
1037
1036
  if (calculateExpList) {
1038
1037
  var calculateExpValue = calculateExpList[uniqueName];
@@ -1152,10 +1151,10 @@ var PageHome = function (_React$Component) {
1152
1151
  res = Number(res).toFixed(decimalPlace) + '';
1153
1152
  } else {
1154
1153
  if (fieldArray.length == 0) {
1155
- var aDP = that.getActualDecimalPlace(exp);
1154
+ var aDP = getActualDecimalPlace(exp);
1156
1155
  res = res.toFixed(aDP) + '';
1157
1156
  } else {
1158
- var maxDP = that.getMaxDecimalPlace(fieldItemArray); //获取参与计算的字段中 最长的小数位
1157
+ var maxDP = getMaxDecimalPlace(fieldItemArray); //获取参与计算的字段中 最长的小数位
1159
1158
  res = res.toFixed(maxDP) + '';
1160
1159
  }
1161
1160
  }
@@ -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
 
@@ -562,6 +562,7 @@ var MyGrid = function (_React$Component) {
562
562
  var pathUrl = "";
563
563
  var colNum = t.state.todoList.length > 0 ? t.state.todoList.length : 5;
564
564
  if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].bannerImg) {
565
+ debugger;
565
566
  var pathUrlId = t.state[item.portletCode + '_' + item.id].bannerImg;
566
567
  pathUrl = localStorage.getItem('context') + '/api/m/plugin/attachment/mobile/viewImage?token=' + localStorage.getItem('token') + '&fid=' + pathUrlId;
567
568
  } else {
@@ -613,7 +614,7 @@ var MyGrid = function (_React$Component) {
613
614
  _react2.default.createElement(
614
615
  _Badge2.default,
615
616
  { count: item == 'daiban' ? t.state.undo : '' },
616
- _react2.default.createElement('i', { className: 'theme-color iconfont-ywtb' + todoInfo.icon })
617
+ _react2.default.createElement('i', { className: 'theme-color iconfont-ywtb ' + todoInfo.icon })
617
618
  )
618
619
  ),
619
620
  _react2.default.createElement(
@@ -638,7 +639,7 @@ var MyGrid = function (_React$Component) {
638
639
  paddingTop: _styleSetting.otherSet.paddingSet.pt + 'px',
639
640
  paddingBottom: _styleSetting.otherSet.paddingSet.pb + 'px',
640
641
  backgroundColor: _styleSetting.otherSet.bgColor,
641
- backgroundImage: t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].bannerImg ? 'url(' + pathUrl + ')' : ''
642
+ backgroundImage: 'url(' + pathUrl + ')'
642
643
  } },
643
644
  _styleSetting.titleSet.titleStatus == 1 ? componentHead : '',
644
645
  componentContent
@@ -655,7 +656,7 @@ var MyGrid = function (_React$Component) {
655
656
  _Tab2.default.Item,
656
657
  { title: _react2.default.createElement(
657
658
  'div',
658
- { 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" : '' } },
659
+ { 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" : '' } },
659
660
  '\u5E38\u7528\u5E94\u7528'
660
661
  ) },
661
662
  _react2.default.createElement(
@@ -697,7 +698,7 @@ var MyGrid = function (_React$Component) {
697
698
  _Tab2.default.Item,
698
699
  { title: _react2.default.createElement(
699
700
  'div',
700
- { 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" : '' } },
701
+ { 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" : '' } },
701
702
  '\u6211\u7684\u6536\u85CF'
702
703
  ) },
703
704
  _react2.default.createElement(
@@ -793,12 +794,12 @@ var MyGrid = function (_React$Component) {
793
794
  }
794
795
  }
795
796
  var bssxPerTab = '';
796
- if (styleSetting.titleSet.titleStatus == 1 && bssxShowList.indexOf('personWork') > -1) {
797
+ if (bssxShowList.indexOf('personWork') > -1) {
797
798
  bssxPerTab = _react2.default.createElement(
798
799
  _Tab2.default.Item,
799
800
  { title: _react2.default.createElement(
800
801
  'div',
801
- { className: '', 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" : '' } },
802
+ { className: '', 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" : '' } },
802
803
  '\u4E2A\u4EBA\u529E\u4E8B'
803
804
  ), key: 0 },
804
805
  _react2.default.createElement(
@@ -809,12 +810,12 @@ var MyGrid = function (_React$Component) {
809
810
  );
810
811
  }
811
812
  var bssxOrgTab = '';
812
- if (styleSetting.titleSet.titleStatus == 1 && bssxShowList.indexOf('deptWork') > -1) {
813
+ if (bssxShowList.indexOf('deptWork') > -1) {
813
814
  bssxOrgTab = _react2.default.createElement(
814
815
  _Tab2.default.Item,
815
816
  { key: 1, title: _react2.default.createElement(
816
817
  'div',
817
- { className: '', 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" : '' } },
818
+ { className: '', 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" : '' } },
818
819
  '\u90E8\u95E8\u529E\u4E8B'
819
820
  ) },
820
821
  _react2.default.createElement(
@@ -1007,7 +1008,7 @@ var MyGrid = function (_React$Component) {
1007
1008
  _Tab2.default.Item,
1008
1009
  { title: _react2.default.createElement(
1009
1010
  'div',
1010
- { className: '', 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" : '' } },
1011
+ { className: '', 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" : '' } },
1011
1012
  item.columnName
1012
1013
  ), key: item.columnId },
1013
1014
  item.infoList.length > 0 ? _react2.default.createElement(
@@ -1138,7 +1139,7 @@ var MyGrid = function (_React$Component) {
1138
1139
  _Tab2.default.Item,
1139
1140
  { title: _react2.default.createElement(
1140
1141
  'div',
1141
- { className: '', 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" : '' } },
1142
+ { className: '', 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" : '' } },
1142
1143
  '\u4E2A\u4EBA\u90AE\u7BB1'
1143
1144
  ), key: '0' },
1144
1145
  _react2.default.createElement(
@@ -1153,7 +1154,7 @@ var MyGrid = function (_React$Component) {
1153
1154
  _Tab2.default.Item,
1154
1155
  { title: _react2.default.createElement(
1155
1156
  'div',
1156
- { className: '', 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" : '' } },
1157
+ { className: '', 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" : '' } },
1157
1158
  '\u516C\u5171\u90AE\u7BB1'
1158
1159
  ), key: '1' },
1159
1160
  _react2.default.createElement(
@@ -1168,7 +1169,7 @@ var MyGrid = function (_React$Component) {
1168
1169
  null,
1169
1170
  _react2.default.createElement(
1170
1171
  'p',
1171
- { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN' },
1172
+ { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN', onClick: t.skip2More.bind(this, 'ggyj') },
1172
1173
  '\u66F4\u591A',
1173
1174
  _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
1174
1175
  ),
@@ -1189,7 +1190,7 @@ var MyGrid = function (_React$Component) {
1189
1190
  { activeKey: '0', className: 't-MB16' },
1190
1191
  _react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
1191
1192
  'div',
1192
- { className: '', 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" : '' } },
1193
+ { className: '', 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" : '' } },
1193
1194
  '\u6211\u7684\u65E5\u7A0B'
1194
1195
  ), key: '0' })
1195
1196
  )
@@ -1358,7 +1359,7 @@ var MyGrid = function (_React$Component) {
1358
1359
  { className: 'component-bssx' },
1359
1360
  _react2.default.createElement(
1360
1361
  'p',
1361
- { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN' },
1362
+ { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN', onClick: t.skip2More.bind(this, item.portletCode) },
1362
1363
  '\u66F4\u591A',
1363
1364
  _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
1364
1365
  ),
@@ -1367,7 +1368,7 @@ var MyGrid = function (_React$Component) {
1367
1368
  { activeKey: '0', className: 't-MB16' },
1368
1369
  _react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
1369
1370
  'div',
1370
- { className: '', 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" : '' } },
1371
+ { className: '', 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" : '' } },
1371
1372
  '\u6211\u7684\u4F1A\u8BAE'
1372
1373
  ), key: '0' })
1373
1374
  )
@@ -1383,12 +1384,18 @@ var MyGrid = function (_React$Component) {
1383
1384
  componentHead = _react2.default.createElement(
1384
1385
  'div',
1385
1386
  null,
1387
+ _react2.default.createElement(
1388
+ 'p',
1389
+ { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN', onClick: t.skip2More.bind(this, item.portletCode) },
1390
+ '\u66F4\u591A',
1391
+ _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
1392
+ ),
1386
1393
  _react2.default.createElement(
1387
1394
  _Tab2.default,
1388
1395
  { activeKey: '0', className: 't-MB16' },
1389
1396
  _react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
1390
1397
  'div',
1391
- { className: '', 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" : '' } },
1398
+ { className: '', 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" : '' } },
1392
1399
  '\u4E8B\u9879\u53D1\u8D77'
1393
1400
  ), key: '0' })
1394
1401
  )
@@ -1419,7 +1426,7 @@ var MyGrid = function (_React$Component) {
1419
1426
  { activeKey: '0', className: 't-MB16' },
1420
1427
  _react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
1421
1428
  'div',
1422
- { className: '', 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" : '' } },
1429
+ { className: '', 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" : '' } },
1423
1430
  '\u56FE\u8868'
1424
1431
  ), key: '0' })
1425
1432
  )
@@ -1431,12 +1438,18 @@ var MyGrid = function (_React$Component) {
1431
1438
  componentHead = _react2.default.createElement(
1432
1439
  'div',
1433
1440
  null,
1441
+ _react2.default.createElement(
1442
+ 'p',
1443
+ { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN', onClick: t.skip2More.bind(this, item.portletCode) },
1444
+ '\u66F4\u591A',
1445
+ _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
1446
+ ),
1434
1447
  _react2.default.createElement(
1435
1448
  _Tab2.default,
1436
1449
  { activeKey: '0', className: 't-MB16' },
1437
1450
  _react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
1438
1451
  'div',
1439
- { className: '', 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" : '' } },
1452
+ { className: '', 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" : '' } },
1440
1453
  '\u6211\u7684\u4E8B\u9879'
1441
1454
  ), key: '0' })
1442
1455
  )
@@ -1493,12 +1506,18 @@ var MyGrid = function (_React$Component) {
1493
1506
  componentHead = _react2.default.createElement(
1494
1507
  'div',
1495
1508
  null,
1509
+ _react2.default.createElement(
1510
+ 'p',
1511
+ { className: styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN', onClick: t.skip2More.bind(this, item.portletCode) },
1512
+ '\u66F4\u591A',
1513
+ _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-tiaozhuan' })
1514
+ ),
1496
1515
  _react2.default.createElement(
1497
1516
  _Tab2.default,
1498
1517
  { activeKey: '0', className: 't-MB16' },
1499
1518
  _react2.default.createElement(_Tab2.default.Item, { title: _react2.default.createElement(
1500
1519
  'div',
1501
- { className: '', 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" : '' } },
1520
+ { className: '', 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" : '' } },
1502
1521
  '\u7CBE\u9009\u4E13\u9898'
1503
1522
  ), key: '0' })
1504
1523
  )
@@ -1533,7 +1552,7 @@ var MyGrid = function (_React$Component) {
1533
1552
  }
1534
1553
  return _react2.default.createElement(
1535
1554
  'div',
1536
- { className: 'react-grid-component', key: item.id, style: {
1555
+ { className: styleSetting.titleSet.titleStatus == 1 ? 'react-grid-component' : 'noTitle', key: item.id, style: {
1537
1556
  borderTopLeftRadius: styleSetting.otherSet.radius.topLeft + 'px',
1538
1557
  borderTopRightRadius: styleSetting.otherSet.radius.topRight + 'px',
1539
1558
  borderBottomLeftRadius: styleSetting.otherSet.radius.bottomLeft + 'px',
@@ -1622,7 +1641,7 @@ var MyGrid = function (_React$Component) {
1622
1641
  rowHeight: 20,
1623
1642
  width: window.innerWidth,
1624
1643
  isDraggable: this.state.isDraggable,
1625
- margin: [0, 10]
1644
+ margin: [0, 5]
1626
1645
  },
1627
1646
  this.state.data.map(function (item) {
1628
1647
 
@@ -1,24 +1,34 @@
1
1
  .react-grid {
2
2
 
3
+ .noTitle {
4
+ .t-tab-bar {
5
+ display: none;
6
+ }
7
+ }
8
+
3
9
  .t-tab-bar {
4
10
  padding-left: 6px;
5
11
  }
6
12
 
7
13
  .t-tab-bar .t-tab-tab {
8
14
  font-size: 16px;
15
+ min-width: 95px;
9
16
  color: #888;
10
17
  flex: initial;
11
18
  padding: 0 10px;
12
- min-width: 95px;
13
19
  height: 33px;
14
20
  line-height: 20px;
15
21
  display: block;
16
- white-space: nowrap;
17
- overflow: hidden;
18
- text-overflow: ellipsis;
19
- -webkit-line-clamp: 1;
20
- -webkit-box-orient: vertical;
21
22
  background-color: transparent;
23
+
24
+ div {
25
+ max-width: 95px;
26
+ white-space: nowrap;
27
+ overflow: hidden;
28
+ text-overflow: ellipsis;
29
+ -webkit-line-clamp: 1;
30
+ -webkit-box-orient: vertical;
31
+ }
22
32
  }
23
33
 
24
34
  .t-tab-bar .t-tab-tab-active {
@@ -620,7 +630,7 @@
620
630
  }
621
631
 
622
632
  .calendar-container {
623
- background: #fff;
633
+ background: transparent;
624
634
  }
625
635
 
626
636
  .calendar-week {
@@ -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.41",
3
+ "version": "2.0.42",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",