fmui-base 2.1.92 → 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
+ }
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.92",
3
+ "version": "2.1.93",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",