|
@@ -1,3 +1,4 @@
|
|
|
|
|
+import GradientText from "@/components/basic/GradientText";
|
|
|
import { View, PickerView, PickerViewColumn } from "@tarojs/components";
|
|
import { View, PickerView, PickerViewColumn } from "@tarojs/components";
|
|
|
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
|
import { LayoutChangeEvent, Text } from "react-native";
|
|
import { LayoutChangeEvent, Text } from "react-native";
|
|
@@ -6,18 +7,18 @@ export default function DemoA() {
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
}, [])
|
|
}, [])
|
|
|
|
|
|
|
|
- const years = [0,1,2,3,4,5]
|
|
|
|
|
- const months = [0,1,2,3,4,5]
|
|
|
|
|
- const days = [0,1,2,3,4,5]
|
|
|
|
|
|
|
+ const years = [0, 1, 2, 3, 4, 5]
|
|
|
|
|
+ const months = [0, 1, 2, 3, 4, 5]
|
|
|
|
|
+ const days = [0, 1, 2, 3, 4, 5]
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <View style={{ backgroundColor: 'blue', height: 800, width: 375 }} >
|
|
|
|
|
|
|
+ <View style={{ backgroundColor: 'white', height: 800, width: 375 }} >
|
|
|
<Text style={{ color: 'red', fontSize: 50 }}>hello world</Text>
|
|
<Text style={{ color: 'red', fontSize: 50 }}>hello world</Text>
|
|
|
- <PickerView title="hhhh" itemStyle={{color:'#fff',fonSize:10}} indicatorStyle='height: 50px;' style='width: 100%; height: 300px;color:white' value={[0,1,2,3,4]} onChange={(e)=>{}}>
|
|
|
|
|
- <PickerViewColumn style={{color:'#fff'}}>
|
|
|
|
|
|
|
+ <PickerView title="hhhh" itemStyle={{ color: '#000', fonSize: 10 }} indicatorStyle='height: 50px;' style='width: 100%; height: 300px;color:white' value={[0, 1, 2, 3, 4]} onChange={(e) => { }}>
|
|
|
|
|
+ <PickerViewColumn style={{ color: '#fff' }}>
|
|
|
{years.map(item => {
|
|
{years.map(item => {
|
|
|
return (
|
|
return (
|
|
|
- <View style={{color:'white',opacity:0,backgroundColor:'pink'}}>{item}年</View>
|
|
|
|
|
|
|
+ <View style={{ color: 'white', opacity: 0, backgroundColor: 'pink' }}>{item}年</View>
|
|
|
);
|
|
);
|
|
|
})}
|
|
})}
|
|
|
</PickerViewColumn>
|
|
</PickerViewColumn>
|
|
@@ -36,6 +37,7 @@ export default function DemoA() {
|
|
|
})}
|
|
})}
|
|
|
</PickerViewColumn>
|
|
</PickerViewColumn>
|
|
|
</PickerView>
|
|
</PickerView>
|
|
|
|
|
+ <GradientText style={{fontSize:20}}>Hello world</GradientText>
|
|
|
</View>
|
|
</View>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|