Skip to content

Commit

Permalink
fix(rate): 修改展示页
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczj committed Aug 8, 2018
1 parent 19cc951 commit 4820c6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/form/rate/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Taro from '@tarojs/taro'
import { View } from '@tarojs/components'
import { View, Text } from '@tarojs/components'
import AtRate from '../../../components/rate/index'
import DocsHeader from '../../components/doc-header'
import './index.scss'
Expand Down Expand Up @@ -57,12 +57,11 @@ export default class Index extends Taro.Component {
</View>
</View>
</View>

<View className='panel'>
<View className='panel__title'>只读</View>
<View className='panel__content'>
<View className='example-item'>
<AtRate value={5} />
<View><AtRate value={3.5} /><Text className='rate'>评分: 3.5</Text></View>
</View>
</View>
</View>
Expand Down
7 changes: 7 additions & 0 deletions src/pages/form/rate/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.example-item {
font-size: 28px;

.rate {
margin-left: 30px;
}
}

0 comments on commit 4820c6b

Please sign in to comment.