wl-design-mobile 0.8.5 → 0.8.7

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.
@@ -77,6 +77,8 @@
77
77
  v-model="auditComment"
78
78
  type="textarea"
79
79
  :rows="3"
80
+ maxlength="200"
81
+ show-word-limit
80
82
  placeholder="请输入审批意见..."
81
83
  />
82
84
  </div>
@@ -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
@@ -39,6 +39,8 @@
39
39
  v-model="applyDescription"
40
40
  type="textarea"
41
41
  :rows="4"
42
+ maxlength="200"
43
+ show-word-limit
42
44
  placeholder="请输入申请描述..."
43
45
  />
44
46
 
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.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "finch",
@@ -41,6 +41,7 @@ import 'ag-grid-community/styles/ag-theme-balham.css'
41
41
  *
42
42
  */
43
43
  import {AgGridVue} from 'ag-grid-vue/lib/main.cjs.js'
44
+ // import {AgGridVue} from 'ag-grid-vue'
44
45
  /**
45
46
  * 本地运行的时候,把这一行放开,上面的一行注释掉
46
47
  * import {AgGridVue} from 'ag-grid-vue'