diff --git a/docs/en-US/component/table.md b/docs/en-US/component/table.md index 839d733ab6..86a7738e50 100644 --- a/docs/en-US/component/table.md +++ b/docs/en-US/component/table.md @@ -304,6 +304,7 @@ table/tooltip-formatter | allow-drag-last-column ^(2.9.2) | whether to allow drag the last column | ^[boolean] | true | | tooltip-formatter ^(2.9.4) | customize tooltip content when using `show-overflow-tooltip` | ^[Function]`(data: { row: any, column: any, cellValue: any }) => VNode \| string` | — | | preserve-expanded-content ^(2.9.7) | whether to preserve expanded row content in DOM when collapsed | ^[boolean] | false | +| native-scrollbar ^(2.10.5) | whether to use native scrollbars | ^[boolean] | false | ### Table Events diff --git a/packages/components/table/src/table.vue b/packages/components/table/src/table.vue index e414b8ead3..f43ccfd4f9 100644 --- a/packages/components/table/src/table.vue +++ b/packages/components/table/src/table.vue @@ -66,6 +66,7 @@ :wrap-style="scrollbarStyle" :always="scrollbarAlwaysOn" :tabindex="scrollbarTabindex" + :native="nativeScrollbar" @scroll="$emit('scroll', $event)" > { tooltipFormatter?: TableOverflowTooltipFormatter appendFilterPanelTo?: string scrollbarTabindex?: number | string + nativeScrollbar?: boolean } type TableTooltipData = Parameters< @@ -421,6 +422,10 @@ export default { * @description whether to preserve expanded row content in DOM when collapsed */ preserveExpandedContent: Boolean, + /** + * @description whether to use native scrollbars + */ + nativeScrollbar: Boolean, } export type { SummaryMethod,