input字体固定大小

This commit is contained in:
al 2024-11-14 17:46:42 +08:00
parent 685b2c39e7
commit ad5881a987
5 changed files with 1 additions and 9 deletions

View File

@ -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) =>

View File

@ -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 }))

View File

@ -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 }))

View File

@ -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) =>

View File

@ -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">