File tree 2 files changed +8
-4
lines changed
cheetah-grid/src/js/list-grid
vue-cheetah-grid/lib/c-grid
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { DG_EVENT_TYPE , DrawGridEvents } from "../core/DG_EVENT_TYPE" ;
2
2
import { extend } from "../internal/utils" ;
3
3
4
- export interface ListGidEvents extends DrawGridEvents {
4
+ export interface ListGridEvents extends DrawGridEvents {
5
5
/**
6
6
* Indicates when the cell value was changed.
7
7
*/
@@ -12,7 +12,7 @@ export interface ListGidEvents extends DrawGridEvents {
12
12
CHANGED_HEADER_VALUE : "changed_header_value" ;
13
13
}
14
14
15
- export const LG_EVENT_TYPE : ListGidEvents = extend ( DG_EVENT_TYPE , {
15
+ export const LG_EVENT_TYPE : ListGridEvents = extend ( DG_EVENT_TYPE , {
16
16
CHANGED_VALUE : "changed_value" as "changed_value" ,
17
17
CHANGED_HEADER_VALUE : "changed_header_value" as "changed_header_value"
18
18
} ) ;
Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ export default {
64
64
default: undefined
65
65
}
66
66
},
67
+ computed: {
68
+ resolvedField () {
69
+ return this .filter ? filterToFn (this , this .field , this .filter ) : this .field
70
+ }
71
+ },
67
72
watch: {
68
73
field: gridUpdateWatcher,
69
74
filter: gridUpdateWatcher,
@@ -79,9 +84,8 @@ export default {
79
84
* @private
80
85
*/
81
86
createColumn () {
82
- const field = this .filter ? filterToFn (this , this .field , this .filter ) : this .field
83
87
return {
84
- field,
88
+ field: this . resolvedField ,
85
89
width: this .width ,
86
90
minWidth: this .minWidth ,
87
91
maxWidth: this .maxWidth ,
You can’t perform that action at this time.
0 commit comments