File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed
packages/table-plugin/src Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -259,15 +259,15 @@ export const HTMLTable = function HTMLTable({
259
259
cssRules,
260
260
html,
261
261
sourceBaseUrl,
262
- animationType,
262
+ animationType = 'animated' ,
263
263
computeHeuristicContentHeight = defaultComputeHeuristicContentHeight ,
264
264
computeContainerHeight = defaultComputeContainerHeight ,
265
265
webViewProps : userWebViewProps ,
266
266
style,
267
267
onLinkPress,
268
- animationDuration,
268
+ animationDuration = DEFAULT_TRANSITION_DURATION ,
269
269
htmlAttribs,
270
- maxScale,
270
+ maxScale = 1 ,
271
271
...stats
272
272
} : HTMLTableProps ) {
273
273
const onDOMLinkPress = useCallback (
@@ -331,18 +331,6 @@ const propTypes: Record<keyof HTMLTableProps, any> = {
331
331
displayMode : PropTypes . oneOf ( [ 'flex' , 'expand' ] )
332
332
} ;
333
333
334
- const defaultProps = {
335
- animationDuration : DEFAULT_TRANSITION_DURATION ,
336
- animationType : 'animated' ,
337
- computeHeuristicContentHeight : defaultComputeHeuristicContentHeight ,
338
- computeContainerHeight : defaultComputeContainerHeight ,
339
- maxScale : 1
340
- } ;
341
-
342
334
Object . defineProperty ( HTMLTable , 'propTypes' , {
343
335
value : propTypes
344
336
} ) ;
345
-
346
- Object . defineProperty ( HTMLTable , 'defaultProps' , {
347
- value : defaultProps
348
- } ) ;
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ export interface TableConfig {
234
234
*
235
235
* @defaultValue 1
236
236
*/
237
- maxScale ?: boolean ;
237
+ maxScale ?: number ;
238
238
239
239
/**
240
240
* Container style.
You can’t perform that action at this time.
0 commit comments