style(customers): 生日归属前置并与生日类型标注必填星号
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -152,19 +152,23 @@ export function CustomerForm({
|
|||||||
<FormSection title="生日">
|
<FormSection title="生日">
|
||||||
<div className="grid grid-cols-1 gap-x-5 gap-y-4 sm:grid-cols-2 lg:grid-cols-3">
|
<div className="grid grid-cols-1 gap-x-5 gap-y-4 sm:grid-cols-2 lg:grid-cols-3">
|
||||||
<div className="space-y-1.5">
|
<div className="space-y-1.5">
|
||||||
<Label htmlFor="birthdayType">生日类型</Label>
|
<Label htmlFor="birthdayOwner">
|
||||||
<Select id="birthdayType" name="birthdayType" defaultValue={String(v.birthdayType ?? 1)}>
|
生日归属<span className="ml-0.5 text-[var(--color-danger)]">*</span>
|
||||||
<option value="1">阳历</option>
|
</Label>
|
||||||
<option value="2">阴历</option>
|
|
||||||
</Select>
|
|
||||||
</div>
|
|
||||||
<div className="space-y-1.5">
|
|
||||||
<Label htmlFor="birthdayOwner">生日归属</Label>
|
|
||||||
<Select id="birthdayOwner" name="birthdayOwner" defaultValue={String(v.birthdayOwner ?? 2)}>
|
<Select id="birthdayOwner" name="birthdayOwner" defaultValue={String(v.birthdayOwner ?? 2)}>
|
||||||
<option value="1">结算人</option>
|
<option value="1">结算人</option>
|
||||||
<option value="2">联系人</option>
|
<option value="2">联系人</option>
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="space-y-1.5">
|
||||||
|
<Label htmlFor="birthdayType">
|
||||||
|
生日类型<span className="ml-0.5 text-[var(--color-danger)]">*</span>
|
||||||
|
</Label>
|
||||||
|
<Select id="birthdayType" name="birthdayType" defaultValue={String(v.birthdayType ?? 1)}>
|
||||||
|
<option value="1">阳历</option>
|
||||||
|
<option value="2">阴历</option>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
<Field
|
<Field
|
||||||
label="生日"
|
label="生日"
|
||||||
name="birthday"
|
name="birthday"
|
||||||
|
|||||||
Reference in New Issue
Block a user