File tree Expand file tree Collapse file tree 11 files changed +108
-100
lines changed
Expand file tree Collapse file tree 11 files changed +108
-100
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import './style/index.less';
1313export default function Base ( ) {
1414 return (
1515 < div className = "tdesign-mobile-demo" >
16- < Navbar title = "Navbar 导航条" style = { { zIndex : 999 } } leftArrow />
16+ < Navbar title = "Navbar 导航条" style = { { zIndex : 999 } } leftArrow fixed />
1717
1818 < TDemoHeader title = "Navbar 导航栏" summary = "用于不同页面之间切换或者跳转,位于内容区的上方,系统状态栏的下方。" />
1919 < TDemoBlock title = "01 组件类型" summary = "基础导航栏" >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function TabBarBaseDemo() {
2222
2323 return (
2424 < div className = "demo-tab-bar" >
25- < TabBar value = { value } onChange = { change } split = { false } >
25+ < TabBar value = { value } onChange = { change } fixed = { false } split = { false } >
2626 { list . map ( ( item , i ) => (
2727 < TabBarItem key = { item . name || i } icon = { item . icon } value = { item . name } badgeProps = { item . badgeProps } >
2828 { item . text }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function TabBarBaseDemo() {
2222
2323 return (
2424 < div className = "demo-tab-bar" >
25- < TabBar value = { value } onChange = { change } theme = "tag" split = { false } >
25+ < TabBar value = { value } onChange = { change } theme = "tag" fixed = { false } split = { false } >
2626 { list . map ( ( item , i ) => (
2727 < TabBarItem key = { item . value || i } icon = { item . icon } value = { item . value } >
2828 { item . label }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function TabBarBaseDemo() {
2222
2323 return (
2424 < div className = "demo-tab-bar section-custom" >
25- < TabBar value = { value } onChange = { change } >
25+ < TabBar value = { value } fixed = { false } onChange = { change } >
2626 { list . map ( ( item , i ) => (
2727 < TabBarItem key = { item . value || i } icon = { item . icon } value = { item . value } />
2828 ) ) }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function TabBarBaseDemo() {
2222
2323 return (
2424 < div className = "demo-tab-bar" >
25- < TabBar value = { value } onChange = { change } theme = "tag" split = { false } >
25+ < TabBar value = { value } theme = "tag" fixed = { false } split = { false } onChange = { change } >
2626 { list . map ( ( item , i ) => (
2727 < TabBarItem key = { item . value || i } icon = { item . icon } value = { item . value } />
2828 ) ) }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function TabBarBaseDemo() {
2222
2323 return (
2424 < div className = "demo-tab-bar" >
25- < TabBar value = { value } onChange = { change } shape = "round" theme = "tag" split = { false } >
25+ < TabBar value = { value } shape = "round" theme = "tag" fixed = { false } split = { false } onChange = { change } >
2626 { list . map ( ( item , i ) => (
2727 < TabBarItem key = { item . value || i } icon = { item . icon } value = { item . value } />
2828 ) ) }
Original file line number Diff line number Diff line change 11.tdesign-mobile-demo {
2- .t-tab-bar {
3- position : relative ;
4- }
52 .t-tab-bar + .t-tab-bar {
63 margin-top : 16px ;
74 }
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function TabBarBaseDemo() {
3535
3636 return (
3737 < div className = "demo-tab-bar" >
38- < TabBar defaultValue = "home" theme = "tag" split = { false } >
38+ < TabBar defaultValue = "home" theme = "tag" fixed = { false } split = { false } >
3939 { list . map ( ( item , i ) => (
4040 < TabBarItem key = { item . value || i } value = { item . value } subTabBar = { item . children } >
4141 { item . label }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function TabBarBaseDemo() {
2121
2222 return (
2323 < div className = "demo-tab-bar" >
24- < TabBar value = { value } onChange = { change } theme = "tag" split = { false } >
24+ < TabBar value = { value } onChange = { change } theme = "tag" fixed = { false } split = { false } >
2525 { list . map ( ( item , i ) => (
2626 < TabBarItem key = { item . value || i } value = { item . value } >
2727 { item . label }
You can’t perform that action at this time.
0 commit comments