File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const Demo1 = () => {
1515 >
1616 { list . map ( ( item ) => (
1717 < SideBar . Item key = { item } title = { `Opt ${ item + 1 } ` } >
18- Content { item + 1 }
18+ { ` Content $ {item + 1 } ` }
1919 </ SideBar . Item >
2020 ) ) }
2121 </ SideBar >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const Demo4 = () => {
1515 >
1616 { list . map ( ( item ) => (
1717 < SideBar . Item key = { item } title = { `Opt ${ item + 1 } ` } >
18- Content { item + 1 }
18+ { ` Content $ {item + 1 } ` }
1919 </ SideBar . Item >
2020 ) ) }
2121 </ SideBar >
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const Demo5 = () => {
1717 >
1818 { list . map ( ( item ) => (
1919 < SideBar . Item key = { item } title = { `Opt ${ item + 1 } ` } >
20- Content { item + 1 }
20+ { ` Content $ {item + 1 } ` }
2121 </ SideBar . Item >
2222 ) ) }
2323 </ SideBar >
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const Demo6 = () => {
1717 >
1818 { list . map ( ( item ) => (
1919 < SideBar . Item key = { item } title = { `Opt ${ item + 1 } ` } >
20- Content { item + 1 }
20+ { ` Content $ {item + 1 } ` }
2121 </ SideBar . Item >
2222 ) ) }
2323 </ SideBar >
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export const SideBar: FC<Partial<TaroSideBarProps>> & {
147147 )
148148 index = index < 0 ? 0 : index
149149 return {
150- transform : `translate3d( 0, -${ index * 100 } %, 0 )` ,
150+ transform : `translateY( -${ index * 100 } %)` ,
151151 transitionDuration : `${ contentDuration } ms` ,
152152 }
153153 }
@@ -192,14 +192,14 @@ export const SideBar: FC<Partial<TaroSideBarProps>> & {
192192 className = { classNames ( `${ classPrefix } -titles-item` , {
193193 [ `${ classPrefix } -titles-item-active` ] :
194194 ! item . disabled && String ( item . value ) === String ( value ) ,
195- [ `${ classPrefix } -titles-item-disabled` ] : item . disabled ,
196195 } ) }
197196 key = { item . value }
198197 >
199198 < View
200199 className = { classNames (
201200 `${ classPrefix } -ellipsis` ,
202- `${ classPrefix } -titles-item-text`
201+ `${ classPrefix } -titles-item-text` ,
202+ { [ `${ classPrefix } -titles-item-disabled` ] : item . disabled }
203203 ) }
204204 >
205205 { item . title }
You can’t perform that action at this time.
0 commit comments