doway-coms 1.1.57 → 1.1.58
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/package.json +1 -1
- package/packages/index.js +17 -0
package/package.json
CHANGED
package/packages/index.js
CHANGED
|
@@ -66,6 +66,23 @@ VXETable.interceptor.add('event.clearFilter', (params) => {
|
|
|
66
66
|
return popupInterceptor(params)
|
|
67
67
|
})
|
|
68
68
|
|
|
69
|
+
//表格自定义格式化
|
|
70
|
+
VXETable.formats.mixin({
|
|
71
|
+
// 格式化下拉选项
|
|
72
|
+
formatSelect(scope) {
|
|
73
|
+
let dataSource = scope.column.params.dataSource
|
|
74
|
+
if (!dataSource) {
|
|
75
|
+
// console.error(scope.cellValue + ' 字典缺失')
|
|
76
|
+
return scope.cellValue
|
|
77
|
+
}
|
|
78
|
+
const item = dataSource.find(item => item.value === scope.cellValue)
|
|
79
|
+
return item ? item.caption : scope.cellValue
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
69
86
|
|
|
70
87
|
|
|
71
88
|
const install = function (Vue) {
|