修改日历与弹出窗

This commit is contained in:
筱野
2025-11-14 20:50:20 +08:00
parent b13979c4ab
commit 95e17d19f8
8 changed files with 24 additions and 42 deletions

View File

@@ -56,8 +56,8 @@ const SectionTitle: React.FC<{ title: string,prop: string }> = ({ title, prop })
}
// 公共的容器组件
const SectionContainer: React.FC<{ title: string; children: React.ReactNode, prop: string }> = ({ title, children, prop }) => (
<View className='venue-type-section'>
const SectionContainer: React.FC<{ title: string; children: React.ReactNode, prop: string, type?: string }> = ({ title, children, prop, type }) => (
<View className={`venue-type-section ${type === 'image' ? 'image-wrap' : ''}`}>
<SectionTitle title={title} prop={prop}/>
<View className='option-buttons'>
{children}
@@ -218,8 +218,8 @@ const StadiumDetail = forwardRef<StadiumDetailRef, StadiumDetailProps>(({
<TextareaTag
value={formData[item.prop]}
onChange={(value) => updateFormData(item.prop, value)}
// onBlur={() => onAnyInput(false)}
// onFocus={() => onAnyInput(true)}
onBlur={() => changePicker(false)}
onFocus={() => changePicker(true)}
placeholder='有其他场地信息可备注'
options={(item.options || []).map((o) => ({ label: o, value: o }))}
/>
@@ -230,7 +230,7 @@ const StadiumDetail = forwardRef<StadiumDetailRef, StadiumDetailProps>(({
if (item.type === 'image') {
return (
<SectionContainer key={item.label} title={item.label} prop={item.prop}>
<SectionContainer key={item.label} title={item.label} prop={item.prop} type={item.type}>
<UploadCover
value={formData[item.prop]}
changePicker={changePicker}