File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ ReactDom.render(
140140| destroyInactiveTabPane | boolean | false | whether destroy inactive TabPane when change tab |
141141| active | boolean | false | active feature of tab item |
142142| tabKey | string | - | key linked to tab |
143+ | scrollPosition | ` 'start' \| 'end' \| 'center' \| 'auto' ` | ` 'auto' ` | scroll position |
143144
144145
145146### TabPane(support in older versions)
Original file line number Diff line number Diff line change @@ -49,6 +49,16 @@ export default () => {
4949 onChange = { e => setScrollPosition ( e . target . value as ScrollPosition ) }
5050 />
5151 </ label >
52+ < label >
53+ Auto
54+ < input
55+ type = "radio"
56+ name = "scrollPosition"
57+ value = "auto"
58+ checked = { scrollPosition === 'auto' }
59+ onChange = { e => setScrollPosition ( e . target . value as ScrollPosition ) }
60+ />
61+ </ label >
5262 </ div >
5363 < div style = { { maxWidth : 550 } } >
5464 < Tabs
You can’t perform that action at this time.
0 commit comments