@@ -2,7 +2,7 @@ import { reactive, provide, VNodeTypes, PropType, defineComponent, watch } from
22import PropTypes from '../_util/vue-types' ;
33import defaultRenderEmpty , { RenderEmptyHandler } from './renderEmpty' ;
44import LocaleProvider , { Locale , ANT_MARK } from '../locale-provider' ;
5-
5+ import { TransformCellTextProps } from '../table/interface' ;
66import LocaleReceiver from '../locale-provider/LocaleReceiver' ;
77import { withInstall } from '../_util/type' ;
88
@@ -20,6 +20,7 @@ export interface ConfigConsumerProps {
2020 rootPrefixCls ?: string ;
2121 getPrefixCls : ( suffixCls ?: string , customizePrefixCls ?: string ) => string ;
2222 renderEmpty : RenderEmptyHandler ;
23+ transformCellText ?: ( tableProps : TransformCellTextProps ) => any ;
2324 csp ?: CSPConfig ;
2425 autoInsertSpaceInButton ?: boolean ;
2526 input ?: {
@@ -55,6 +56,7 @@ export interface ConfigProviderProps {
5556 prefixCls ?: string ;
5657 children ?: VNodeTypes ;
5758 renderEmpty ?: RenderEmptyHandler ;
59+ transformCellText ?: ( tableProps : TransformCellTextProps ) => any ;
5860 csp ?: CSPConfig ;
5961 autoInsertSpaceInButton ?: boolean ;
6062 input ?: {
@@ -89,6 +91,9 @@ const ConfigProvider = defineComponent({
8991 renderEmpty : {
9092 type : Function as PropType < RenderEmptyHandler > ,
9193 } ,
94+ transformCellText : {
95+ type : Function as PropType < ( tableProps : TransformCellTextProps ) => any > ,
96+ } ,
9297 csp : {
9398 type : Object as PropType < CSPConfig > ,
9499 } ,
0 commit comments