|
|
@@ -1,12 +1,13 @@
|
|
|
import {Input, Text, View} from '@tarojs/components';
|
|
|
|
|
|
-export default function Field({label}) {
|
|
|
+export default function Field({label, password}) {
|
|
|
return (
|
|
|
<View className='mt-3 first:mt-0'>
|
|
|
<Text className='block text-lg font-semibold'>{label}</Text>
|
|
|
<Input
|
|
|
placeholder={`请输入${label}`}
|
|
|
className='mt-1 border-0 border-b border-solid border-gray-200 py-2'
|
|
|
+ password={password}
|
|
|
/>
|
|
|
</View>
|
|
|
);
|