Просмотр исходного кода

复制内容样式乱掉问题解决

Luolei 6 лет назад
Родитель
Сommit
b9bb9cba1f

+ 2 - 2
src/components/AddAssistCheck/Textarea/index.less

@@ -4,8 +4,8 @@
   max-height: 100px;
   border-bottom: 1px dashed #333;
   box-sizing: border-box;
-  min-height: 20px;
-  width: 100%;
+  // min-height: 20px;
+  // width: 100%;
   outline: none;
   line-height: 20px;
   resize: none;

+ 2 - 2
src/components/AddAssistCheck/index.jsx

@@ -108,8 +108,8 @@ class AddAssistCheck extends React.Component {
         return <ul className={styles.labelWrap} id="datePick">
             {
                 assistLabel.map((item,idx) => {
-                    return (<li key={item.id}> 
-                        <span className={styles.assistName} style={{float:"left"}}>{item.name}:</span>
+                    return (<li key={item.id} className={styles.assistLists}>
+                        <span className={styles.assistName}>{item.name}:</span>
                         <div className={styles.textareaWrap}>
                             <Textarea value={item.value} handlePush={handlePush} isRead={isRead} handleChangeAssistValue={handleChangeAssistValue} idx={idx}></Textarea>
                         </div>

+ 6 - 29
src/components/AddAssistCheck/index.less

@@ -2,18 +2,10 @@
 
 .staticTag {
     cursor: pointer;
-    // color: #767676;
     color: @blue;
-    /*padding-top: 6px;*/
     box-sizing: border-box;
     display: inline-block;
     position: relative;
-    /* &:before {
-        content: '\300C';
-    }
-    &:after {
-        content: '\300D';
-    } */
 }
 .pointerFinger {
   cursor: pointer;
@@ -37,14 +29,12 @@
     box-sizing: border-box;
 }
 .labelWrap {
-    &>li {
+    .assistLists {
         padding: 10px;
         box-sizing: border-box;
         position: relative;
         .pointerFinger {
-            display: inline-block;
-            float: right;
-            width: 230px;
+            width: 222px;
             position: absolute;
             right: 0;
             top: 10px;
@@ -79,29 +69,16 @@
             }
         }
         .assistName {
-            display: inline-block;
             height: 20px;
             line-height: 20px;
             box-sizing: border-box;
+            float: left;
         }
-        .divTextarea {
-            overflow-y: auto;
-            border-bottom: 1px dashed #333;
-            box-sizing: border-box;
-            min-height: 18px;
-            width: 100%;
-            outline: none;
-            line-height: 17px;
-            resize: none;
-            font-family: inherit;
+        .textareaWrap {
+          padding-right: 215px;
+          width: 100%;
         }
     }
-    .textareaWrap {
-      float: none;
-      overflow: hidden;
-      margin-right: 215px;
-      padding-left: 8px;
-    }
 }
 .center {
     text-align: center;

+ 0 - 1
src/components/AddInspect/index.jsx

@@ -155,7 +155,6 @@ class Inspect extends React.Component {
                 if(tempNumPlus == tempArr.details.length){
                     tempArr.show = false;
                 }
-                   
             }
         }
         tempArr.time = this.state.dateTime;