fmui-base 2.1.91 → 2.1.93

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.
@@ -0,0 +1,9 @@
1
+ .searchActive .t-search-bar-holder {
2
+ left: 0;
3
+ -webkit-transform: translate3d(0, 0, 0);
4
+ transform: translate3d(0, 0, 0);
5
+ }
6
+
7
+ .t-mask {
8
+ display: none !important;
9
+ }
@@ -106,6 +106,8 @@ var _SelectField = require('saltui/lib/SelectField');
106
106
 
107
107
  var _SelectField2 = _interopRequireDefault(_SelectField);
108
108
 
109
+ require('./processInfo.less');
110
+
109
111
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
110
112
 
111
113
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -7395,7 +7397,7 @@ var PageHome = function (_React$Component) {
7395
7397
  var bottomStyle = { paddingBottom: this.state.bottom + 'px' };
7396
7398
  return _react2.default.createElement(
7397
7399
  'div',
7398
- { style: bottomStyle, className: 'approval-details' },
7400
+ { className: 'approval-details' },
7399
7401
  _react2.default.createElement(
7400
7402
  'div',
7401
7403
  { className: this.state.errorMsg == '任务不存在' ? "dd-state-page" : 't-DN' },
@@ -0,0 +1,4 @@
1
+ .approval-details{
2
+ padding-bottom: calc(62px + constant(safe-area-inset-bottom)) !important; /* 兼容旧版 iOS */
3
+ padding-bottom: calc(62px + env(safe-area-inset-bottom)) !important; /* 兼容新版 iOS */
4
+ }
@@ -189,9 +189,26 @@ var ListItem = function (_React$Component) {
189
189
  value: function render() {
190
190
  var data = this.props;
191
191
  var checkIsNotComplete = true;
192
+ var urgencyTag = false;
193
+ var tagClass = '';
192
194
  if (data.type == 0) {
193
195
  //待办
194
196
  checkIsNotComplete = true;
197
+ if (data.urgency == '90') {
198
+ urgencyTag = true;
199
+ tagClass = 'label label-danger';
200
+ } else if (data.urgency == '80') {
201
+ urgencyTag = true;
202
+ tagClass = 'label label-danger';
203
+ } else if (data.urgency == '70') {
204
+ urgencyTag = true;
205
+ tagClass = 'label label-warn';
206
+ } else if (data.urgency == '60') {
207
+ urgencyTag = true;
208
+ tagClass = 'label label-primary';
209
+ } else {
210
+ urgencyTag = false;
211
+ }
195
212
  } else if (data.type == 1) {
196
213
  //待阅
197
214
  if (data.status == 2) {
@@ -382,8 +399,8 @@ var ListItem = function (_React$Component) {
382
399
  { className: 'approveItem-title' },
383
400
  _react2.default.createElement(
384
401
  Box,
385
- { className: this.props.urgency == '1' && this.props.type == 0 ? 'label label-danger' : 't-DN' },
386
- '\u52A0\u6025'
402
+ { className: urgencyTag ? tagClass : 't-DN' },
403
+ this.props.urgencyName
387
404
  ),
388
405
  _react2.default.createElement(
389
406
  Box,
@@ -458,7 +475,8 @@ var PageHome = function (_React$Component2) {
458
475
  //获取内容显示区域高度
459
476
  var hasBottomTabHidden = document.getElementById("hasBottomTab") ? document.getElementById("hasBottomTab").value : "0";
460
477
  var hasBottomTab = props.hasBottomTab ? props.hasBottomTab : hasBottomTabHidden;
461
- var winHeight = getScrollHigh(1, 1, hasBottomTab);
478
+ var winHeight = getScrollHigh(1, 1, hasBottomTab, 1); // 50为标题栏高度
479
+
462
480
 
463
481
  var constIndex = document.getElementById("activeTabIndex").value; //常量
464
482
  var activeIndex = props.activeIndex ? props.activeIndex : 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.91",
3
+ "version": "2.1.93",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",