发布球局

This commit is contained in:
筱野
2025-08-23 15:14:37 +08:00
parent e5176f4f5f
commit fb150617c6
34 changed files with 679 additions and 602 deletions

View File

@@ -0,0 +1,49 @@
import React from 'react'
import { View, Text, Button } from '@tarojs/components'
import './NumberInterval.scss'
import { InputNumber } from '@nutui/nutui-react-taro'
interface NumberIntervalProps {
minParticipants: number
maxParticipants: number
onMinParticipantsChange: (value: number) => void
onMaxParticipantsChange: (value: number) => void
}
const NumberInterval: React.FC<NumberIntervalProps> = ({
minParticipants,
maxParticipants,
onMinParticipantsChange,
onMaxParticipantsChange
}) => {
return (
<View className='participants-control-section'>
<View className='participant-control'>
<Text className='control-label'></Text>
<View className='control-buttons'>
<InputNumber
className="format-width"
defaultValue={4}
min={0}
max={4}
formatter={(value) => `${value}`}
/>
</View>
</View>
<View className='participant-control'>
<Text className='control-label'></Text>
<View className='control-buttons'>
<InputNumber
className="format-width"
defaultValue={4}
min={0}
max={4}
formatter={(value) => `${value}`}
/>
</View>
</View>
</View>
)
}
export default NumberInterval