input字体固定大小
This commit is contained in:
parent
685b2c39e7
commit
ad5881a987
|
@ -84,7 +84,6 @@ const ListItemWithCheckbox = ({
|
|||
<span className="mr-1 text-[#ffffffae] text-sm">¥</span>
|
||||
<OwnInput
|
||||
type="number"
|
||||
fontSize="22"
|
||||
value={formData.superSingle[superSingle.key].price}
|
||||
onChange={(value) => {
|
||||
const newFormData = { ...formData };
|
||||
|
@ -399,7 +398,6 @@ export default function CreateProfile() {
|
|||
<OwnInput
|
||||
id="spacePrice"
|
||||
type="number"
|
||||
fontSize="22"
|
||||
placeholder="0~3888,仅支持整数"
|
||||
value={formData.spacePrice}
|
||||
onChange={(value) =>
|
||||
|
@ -434,7 +432,6 @@ export default function CreateProfile() {
|
|||
<OwnInput
|
||||
id="ironPrice"
|
||||
type="number"
|
||||
fontSize="22"
|
||||
placeholder="1~3888,仅支持整数"
|
||||
value={formData.ironFanPrice}
|
||||
onChange={(value) =>
|
||||
|
|
|
@ -624,7 +624,6 @@ export default function EditHome() {
|
|||
<OwnInput
|
||||
id="addWeChatPrice"
|
||||
type="number"
|
||||
fontSize="22"
|
||||
value={formData.wechatPrice}
|
||||
onChange={(value) =>
|
||||
setFormData((old) => ({ ...old, wechatPrice: value }))
|
||||
|
|
|
@ -913,7 +913,6 @@ export default function CompleteStreamerInformation() {
|
|||
<OwnInput
|
||||
id="addWeChatPrice"
|
||||
type="number"
|
||||
fontSize="22"
|
||||
value={formData.wechatPrice}
|
||||
onChange={(value) =>
|
||||
setFormData((old) => ({ ...old, wechatPrice: value }))
|
||||
|
|
|
@ -442,7 +442,6 @@ export default function spacePaymentSetting() {
|
|||
<OwnInput
|
||||
id="spacePrice"
|
||||
type="number"
|
||||
fontSize="22"
|
||||
placeholder="0~3888,仅支持整数"
|
||||
value={formData.spacePrice}
|
||||
onChange={(value) =>
|
||||
|
@ -482,7 +481,6 @@ export default function spacePaymentSetting() {
|
|||
<OwnInput
|
||||
id="ironPrice"
|
||||
type="number"
|
||||
fontSize="22"
|
||||
placeholder="1~3888,仅支持整数"
|
||||
value={formData.ironFanPrice}
|
||||
onChange={(value) =>
|
||||
|
|
|
@ -14,7 +14,6 @@ export default function OwnInput({
|
|||
disabled = false,
|
||||
className,
|
||||
inputClassName = "",
|
||||
fontSize = 16,
|
||||
id,
|
||||
}) {
|
||||
return (
|
||||
|
@ -29,7 +28,7 @@ export default function OwnInput({
|
|||
onChange={(e) => onChange(e.target?.value)}
|
||||
value={value}
|
||||
className={`w-full placeholder:text-[#FFFFFF80] ${inputClassName}`}
|
||||
style={{ fontSize: `${fontSize}px!important` }}
|
||||
style={{ fontSize: `16px!important` }}
|
||||
/>
|
||||
{clearable && value != "" && (
|
||||
<div className="w-4 h-4 absolute right-2 top-[2px] flex justify-center items-center bg-[#ffffff33] p-1 rounded-full">
|
||||
|
|
Loading…
Reference in New Issue