Skip to content

Commit

Permalink
fix(TransitionImage): 图片组件预览图地址失效修复
Browse files Browse the repository at this point in the history
  • Loading branch information
nullptr-z committed Mar 2, 2023
1 parent e37e77f commit 4c41ed2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/core/src/Stepper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ function Demo() {
value={value}
disabled={true}
width={150}
color={{color: '#ccc',borderColor: '#999',controlColor: 'red',valueColor: '#000'}}
onChange={(value)=>{
setValue(value)
}}
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/TransitionImage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Demo() {
return (
<Fragment>
<TransitionImage
source={{ uri: 'https://img11.51tietu.net/pic/2016-071418/20160714181543xyu10ukncwf221991.jpg' }}
source={{ uri: 'https://avatars.githubusercontent.com/u/24369183?v=4' }}
style={{ width: 200, height: 200, }}
onPress={()=> console.log('点击图片回调事件')}
onLongPress={()=> console.log('长按组件回调事件')}
Expand All @@ -41,10 +41,10 @@ function Demo() {
return (
<Fragment>
<TransitionImage
source={{ uri: 'https://img11.51tietu.net/pic/2016-071418/20160714181543xyu10ukncwf221991.jpg' }}
source={{ uri: 'https://avatars.githubusercontent.com/u/24369183?v=4' }}
style={{ width: 200, height: 200, }}
PlaceholderContent={<ActivityIndicator />}
placeholderStyle={{backgroundColor: 'red'}}
placeholderStyle={{backgroundColor: '#000a'}}
containerStyle={{backgroundColor:'#eee',}}
transition={true}
transitionDuration={1000}
Expand Down

0 comments on commit 4c41ed2

Please sign in to comment.