Explorar o código

设置TextArea的width为100

code4eat %!s(int64=3) %!d(string=hai) anos
pai
achega
ae40e93248

+ 6 - 7
src/pages/GradeHospitalAccreditation/articleManagement/components/articleDetailModule/index.tsx

@@ -1,11 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2022-03-08 10:41:15
-<<<<<<< HEAD
- * @LastEditTime: 2022-03-09 18:14:12
-=======
- * @LastEditTime: 2022-03-10 11:44:00
->>>>>>> master
+ * @LastEditTime: 2022-03-14 15:56:40
  * @LastEditors: Please set LastEditors
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  * @FilePath: /MedicalWisdomCheckSys/src/pages/GradeHospitalAccreditation/articleManagement/components/articleDetailModule/index.tsx
@@ -423,14 +419,17 @@ const ArticleDetail = ({ isModeTwo = false }) => {
                                         <div className='card' key={index} style={{ marginBottom: isModeTwo ? 0 : '16px', paddingBottom: isModeTwo ? 0 : '16px', paddingTop: isModeTwo ? 0 : '16px' }}>
                                             <div className='cardTitle' style={{ marginBottom: isModeTwo ? '8px' : '16px' }}>{`执行情况说明(等级${item.level})`}</div>
 
-                                            <TextArea allowClear showCount maxLength={2000}
+                                            <TextArea  showCount maxLength={2000}
+                                                className='aticleTextarea'
                                                 autoSize={{
                                                     minRows: 5,
                                                     maxRows: 20
                                                 }}
+                
                                                 disabled={!restModelData.editMode} value={item.note}
                                                 onChange={e => onTextAreaChange(e, item.level)}
-                                                style={{ marginBottom: 20 }} />
+                                                style={{ marginBottom: 20,width:'100%' }} 
+                                            />
 
                                             {
                                                 !isModeTwo && (

+ 6 - 1
src/pages/GradeHospitalAccreditation/articleManagement/components/articleDetailModule/style.less

@@ -1,5 +1,10 @@
 
-
+.aticleTextarea {
+   
+  textarea {
+    width: 100% !important;
+  }
+}
 
 .articleDetailContainer {
       

+ 2 - 1
src/pages/GradeHospitalAccreditation/articleManagement/index.less

@@ -96,7 +96,6 @@ textarea.mwc-ant-input {
 }
 .cardWrap {
   overflow-y: scroll;
-
   .card {
     padding: 16px;
     background: #FFFFFF;
@@ -111,6 +110,8 @@ textarea.mwc-ant-input {
       margin-bottom: 16px;
     }
 
+    
+
     &:last-child {
       margin-bottom: 0 !important;