Explorar el Código

老,背景颜色

wushaodong hace 2 años
padre
commit
eb2ff25635
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 2 1
      jscore/pages/Desktop/Home.js
  2. 1 1
      jscore/pages/Desktop/Set.js

+ 2 - 1
jscore/pages/Desktop/Home.js

@@ -352,7 +352,8 @@ class DesktopHome extends Component {
 
 const styles = StyleSheet.create({
     container: {
-        flex: 1
+        flex: 1,
+        backgroundColor:'#fff'
     },
     button: {
         borderRadius: 5,

+ 1 - 1
jscore/pages/Desktop/Set.js

@@ -73,7 +73,7 @@ class SetPower extends Component {
     render() {
         return (
             <Provider>
-                <View style={{margin: 10}}>
+                <View style={{padding: 10, backgroundColor:'#fff'}}>
                     <Text style={styles.font14}>当前功率:{this.state.power}</Text>
                     <Slider
                         value={this.state.power}