wl-design-mobile 0.8.5 → 0.8.6

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.
@@ -58,9 +58,9 @@ export function getStatusText(status) {
58
58
  export function getAuditResultClass(auditResult) {
59
59
  const classMap = {
60
60
  '30': 'pass',
61
- '40': 'reject',
62
- '50': 'transfer',
63
- '60': 'return'
61
+ '40': 'return',
62
+ '50': 'reject',
63
+ '60': 'transfer'
64
64
  }
65
65
  return classMap[auditResult] || 'default'
66
66
  }
@@ -73,9 +73,9 @@ export function getAuditResultClass(auditResult) {
73
73
  export function getAuditResultText(auditResult) {
74
74
  const textMap = {
75
75
  '30': '同意',
76
- '40': '驳回',
77
- '50': '转办',
78
- '60': '退回'
76
+ '40': '退回',
77
+ '50': '驳回',
78
+ '60': '转办'
79
79
  }
80
80
  return textMap[auditResult] || '审批'
81
81
  }
@@ -88,9 +88,9 @@ export function getAuditResultText(auditResult) {
88
88
  export function getAuditIcon(auditResult) {
89
89
  const iconMap = {
90
90
  '30': 'passed',
91
- '40': 'cross',
92
- '50': 'replay',
93
- '60': 'undo'
91
+ '40': 'undo',
92
+ '50': 'cross',
93
+ '60': 'replay'
94
94
  }
95
95
  return iconMap[auditResult] || 'circle'
96
96
  }
@@ -238,6 +238,7 @@ export default {
238
238
  return this.enableCollapse && this.sortedFlowNodes.length > 4
239
239
  },
240
240
  shouldShowNode(index) {
241
+ if (!this.enableCollapse) return true
241
242
  const total = this.sortedFlowNodes.length
242
243
  if (total <= 4) return true
243
244
  return index < 2 || index >= total - 2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wl-design-mobile",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "finch",