@@ -2,7 +2,7 @@ import { reactive, provide, VNodeTypes, PropType, defineComponent, watch } from
2
2
import PropTypes from '../_util/vue-types' ;
3
3
import defaultRenderEmpty , { RenderEmptyHandler } from './renderEmpty' ;
4
4
import LocaleProvider , { Locale , ANT_MARK } from '../locale-provider' ;
5
-
5
+ import { TransformCellTextProps } from '../table/interface' ;
6
6
import LocaleReceiver from '../locale-provider/LocaleReceiver' ;
7
7
import { withInstall } from '../_util/type' ;
8
8
@@ -20,6 +20,7 @@ export interface ConfigConsumerProps {
20
20
rootPrefixCls ?: string ;
21
21
getPrefixCls : ( suffixCls ?: string , customizePrefixCls ?: string ) => string ;
22
22
renderEmpty : RenderEmptyHandler ;
23
+ transformCellText ?: ( tableProps : TransformCellTextProps ) => any ;
23
24
csp ?: CSPConfig ;
24
25
autoInsertSpaceInButton ?: boolean ;
25
26
input ?: {
@@ -55,6 +56,7 @@ export interface ConfigProviderProps {
55
56
prefixCls ?: string ;
56
57
children ?: VNodeTypes ;
57
58
renderEmpty ?: RenderEmptyHandler ;
59
+ transformCellText ?: ( tableProps : TransformCellTextProps ) => any ;
58
60
csp ?: CSPConfig ;
59
61
autoInsertSpaceInButton ?: boolean ;
60
62
input ?: {
@@ -89,6 +91,9 @@ const ConfigProvider = defineComponent({
89
91
renderEmpty : {
90
92
type : Function as PropType < RenderEmptyHandler > ,
91
93
} ,
94
+ transformCellText : {
95
+ type : Function as PropType < ( tableProps : TransformCellTextProps ) => any > ,
96
+ } ,
92
97
csp : {
93
98
type : Object as PropType < CSPConfig > ,
94
99
} ,
0 commit comments