Leon il y a 1 an
Parent
commit
d6c80dfb71

+ 2 - 2
src/components/input/SingleSelect.scss

@@ -1,6 +1,6 @@
 @import '@/utils/common.scss';
 @import '@/utils/common.scss';
 
 
-.item{
+.item1{
     margin: 0 46px  40px 46px;
     margin: 0 46px  40px 46px;
     background-color: #1C1C1C;
     background-color: #1C1C1C;
     border: solid 4px #1C1C1C;
     border: solid 4px #1C1C1C;
@@ -13,6 +13,6 @@
     justify-content: space-between;
     justify-content: space-between;
 }
 }
 
 
-.item_select{
+.item_select1{
     border: solid 4px #fff;
     border: solid 4px #fff;
 }
 }

+ 1 - 1
src/components/input/SingleSelect.tsx

@@ -27,7 +27,7 @@ export default function Component(props: { items: any[],
     return (
     return (
         <View>{
         <View>{
             props.items.map((item, index) => {
             props.items.map((item, index) => {
-                return <View className={selIndex == index ? 'item item_select' : 'item'} key={index} onClick={() => itemClick(index)}>
+                return <View className={selIndex == index ? 'item1 item_select1' : 'item1'} key={index} onClick={() => itemClick(index)}>
                     {/* <Text>{item}</Text> */}
                     {/* <Text>{item}</Text> */}
                     {
                     {
                         isString(item) ? <Text style={{color:'#fff'}}>{item}</Text> : item
                         isString(item) ? <Text style={{color:'#fff'}}>{item}</Text> : item