修复单双打 ,多选功能

This commit is contained in:
张成
2025-12-06 22:02:27 +08:00
parent 2c83d9faa5
commit 10ff967f4a
5 changed files with 37 additions and 19 deletions

View File

@@ -8,10 +8,10 @@ import styles from './index.module.scss'
interface IProps {
name: string;
options: BubbleOption[];
value: string;
onChange: (name: string, value: string) => void;
value: string | string[];
onChange: (name: string, value: string | string[] | number | (string | number)[]) => void;
}
const GamePlayType = (props: IProps) => {
const CourtType = (props: IProps) => {
const { name, onChange , options, value} = props;
return (
<View className={styles.courtTypeWrapper}>
@@ -24,8 +24,9 @@ const GamePlayType = (props: IProps) => {
size="small"
columns={3}
name={name}
multiple={true}
/>
</View>
);
};
export default GamePlayType;
export default CourtType;