Sfoglia il codice sorgente

输入框自动获取焦点

bding 2 mesi fa
parent
commit
114a89cbdd

+ 1 - 0
src/Column/components/ColumnContentMessage.tsx

@@ -112,6 +112,7 @@ const ColumnContentMessage: React.FC<IColumnCenterProps> = props => {
             required
             value={messageContent}
             onChange={handleChangeMessage}
+            autoFocus
           />
           <div className={styles['columndetail-messge-ipt-btn']}>
             <span

+ 2 - 2
src/Column/components/LikesCollections.tsx

@@ -18,8 +18,8 @@ const LikesCollections: React.FC<IColumnCenterProps> = props => {
   }
   return (
     <Modal title="获赞与收藏" open={open} onCancel={handleOnClose} footer={null}>
-      <div>当前获得点赞数 {columnInfoFrom?.CollectNum}</div>
-      <div>当前获得收藏数 {columnInfoFrom?.SpecialLikeCount}</div>
+      <div>当前获得点赞数 {columnInfoFrom?.SpecialLikeCount}</div>
+      <div>当前获得收藏数 {columnInfoFrom?.CollectNum}</div>
     </Modal>
   )
 }