小修整
This commit is contained in:
@@ -127,17 +127,14 @@ export const StationDiagramView: FC<props> = ({ route }) => {
|
|||||||
(item) => item === "Forwarding"
|
(item) => item === "Forwarding"
|
||||||
) !== -1
|
) !== -1
|
||||||
) {
|
) {
|
||||||
console.log("回送");
|
|
||||||
console.log(d);
|
|
||||||
console.log(!d.match(/[A,B,R,H,E,T,L]/));
|
|
||||||
if (!d.match(/[A,B,R,H,E,T,L]/)) return;
|
if (!d.match(/[A,B,R,H,E,T,L]/)) return;
|
||||||
}
|
} else if (
|
||||||
else if (
|
|
||||||
selectedTypeList.findIndex((item) => item === "SPCL") !== -1
|
selectedTypeList.findIndex((item) => item === "SPCL") !== -1
|
||||||
) {
|
) {
|
||||||
if (!d.match(/9\d\d\d[D,M,S]/)) return;
|
if (!d.match(/9\d\d\d[D,M,S]/)) return;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else{ return; }
|
|
||||||
}
|
}
|
||||||
returnDataArray.push(arrayData);
|
returnDataArray.push(arrayData);
|
||||||
});
|
});
|
||||||
@@ -252,7 +249,14 @@ export const StationDiagramView: FC<props> = ({ route }) => {
|
|||||||
当駅止
|
当駅止
|
||||||
</Text>
|
</Text>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
<View style={{ height: "auto", borderLeftWidth: 1, margin: 5, borderColor: "white" }} />
|
<View
|
||||||
|
style={{
|
||||||
|
height: "auto",
|
||||||
|
borderLeftWidth: 1,
|
||||||
|
margin: 5,
|
||||||
|
borderColor: "white",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
{showTypeFiltering ? (
|
{showTypeFiltering ? (
|
||||||
<>
|
<>
|
||||||
<TypeSelectorBox
|
<TypeSelectorBox
|
||||||
@@ -404,18 +408,17 @@ export const TypeSelectorBox: FC<{
|
|||||||
typeName,
|
typeName,
|
||||||
typeID,
|
typeID,
|
||||||
relativeID,
|
relativeID,
|
||||||
color
|
color,
|
||||||
} = props;
|
} = props;
|
||||||
|
const isSelected =
|
||||||
|
selectedTypeList.findIndex((item) => item === typeID) !== -1;
|
||||||
return (
|
return (
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={{
|
style={{
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
marginHorizontal: 5,
|
marginHorizontal: 5,
|
||||||
opacity: selectedTypeList.findIndex((item) => item === typeID) !== -1 ? 1 : 0.8,
|
opacity: isSelected ? 1 : 0.8,
|
||||||
backgroundColor:
|
backgroundColor: isSelected ? "white" : color,
|
||||||
selectedTypeList.findIndex((item) => item === typeID) !== -1
|
|
||||||
? "white"
|
|
||||||
: color,
|
|
||||||
alignSelf: "center",
|
alignSelf: "center",
|
||||||
borderColor: color,
|
borderColor: color,
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
@@ -439,10 +442,7 @@ export const TypeSelectorBox: FC<{
|
|||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{
|
style={{
|
||||||
color:
|
color: isSelected ? color : "white",
|
||||||
selectedTypeList.findIndex((item) => item === typeID) !== -1
|
|
||||||
? color
|
|
||||||
: "white",
|
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
margin: 5,
|
margin: 5,
|
||||||
}}
|
}}
|
||||||
|
Reference in New Issue
Block a user