优化昵称修改
This commit is contained in:
@@ -32,7 +32,7 @@ const EditModal: React.FC<EditModalProps> = ({
|
|||||||
const [value, setValue] = useState(initialValue);
|
const [value, setValue] = useState(initialValue);
|
||||||
const [isValid, setIsValid] = useState(true);
|
const [isValid, setIsValid] = useState(true);
|
||||||
const [isIllegal, setIsIllegal] = useState(false);
|
const [isIllegal, setIsIllegal] = useState(false);
|
||||||
const [hasIllegal, setHasIllegal] = useState(true);
|
const [hasIllegal, setHasIllegal] = useState(false);
|
||||||
const [canEdit, setCanEdit] = useState(true);
|
const [canEdit, setCanEdit] = useState(true);
|
||||||
// 使用全局键盘状态
|
// 使用全局键盘状态
|
||||||
const {
|
const {
|
||||||
@@ -169,6 +169,7 @@ const EditModal: React.FC<EditModalProps> = ({
|
|||||||
confirmType="done"
|
confirmType="done"
|
||||||
// autoFocus={true}
|
// autoFocus={true}
|
||||||
onConfirm={handle_save}
|
onConfirm={handle_save}
|
||||||
|
onBlur={() => {}}
|
||||||
/>
|
/>
|
||||||
<View className="char_count">
|
<View className="char_count">
|
||||||
<Text
|
<Text
|
||||||
|
|||||||
@@ -182,7 +182,7 @@
|
|||||||
padding: 12px 16px 12px 12px;
|
padding: 12px 16px 12px 12px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
background: #000000;
|
background: #000000;
|
||||||
border: 0.5pt solid rgba(0, 0, 0, 0.06);
|
border: 1pt solid rgba(0, 0, 0, 0.06);
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
|||||||
Reference in New Issue
Block a user