Skip to content

Commit

Permalink
docs: fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
tianlei authored and ZakaryCode committed Oct 19, 2023
1 parent 01a44cc commit fb91a12
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
13 changes: 7 additions & 6 deletions docs/components/viewContainer/cover-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ class App extends Components {
render () {
return (
<View className='container'>
<Video id='myVideo' src='src'>
<CoverView className='controls'>
<CoverView className='play' onClick='play'>
<CoverImage className='img' src='src' />
<Video id='myVideo' src='src'>
<CoverView className='controls'>
<CoverView className='play' onClick='play'>
<CoverImage className='img' src='src' />
</CoverView>
</CoverView>
</CoverView>
</Video>
</Video>
</View>
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ class App extends Components {
render () {
return (
<View className='container'>
<Video id='myVideo' src='src'>
<CoverView className='controls'>
<CoverView className='play' onClick='play'>
<CoverImage className='img' src='src' />
<Video id='myVideo' src='src'>
<CoverView className='controls'>
<CoverView className='play' onClick='play'>
<CoverImage className='img' src='src' />
</CoverView>
</CoverView>
</CoverView>
</Video>
</Video>
</View>
)
}
}
Expand Down
17 changes: 9 additions & 8 deletions packages/taro-components/types/CoverImage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@ interface CoverImageProps extends StandardProps {
* class App extends Components {
* render () {
* return (
* <View className='container'>
* <Video id='myVideo' src='src'>
* <CoverView className='controls'>
* <CoverView className='play' onClick='play'>
* <CoverImage className='img' src='src' />
* </CoverView>
* </CoverView>
* </Video>
* <View className='container'>
* <Video id='myVideo' src='src'>
* <CoverView className='controls'>
* <CoverView className='play' onClick='play'>
* <CoverImage className='img' src='src' />
* </CoverView>
* </CoverView>
* </Video>
* </View>
* )
* }
* }
Expand Down

0 comments on commit fb91a12

Please sign in to comment.