luke vor 6 Jahren
Ursprung
Commit
05aaac4700
2 geänderte Dateien mit 23 neuen und 30 gelöschten Zeilen
  1. 15 17
      chat/src/components/index.vue
  2. 8 13
      chat/src/css/index.css

+ 15 - 17
chat/src/components/index.vue

@@ -339,19 +339,15 @@
 			</yd-popup>
 			<!-- 底部输入框 -->
 			<div class="footer row wrap" id='input_box'>
-				<yd-cell-group>
-					<yd-cell-item>
-						<yd-textarea
-								slot="right"
-								contenteditable="true"
-								v-model.trim="text_info"
-								@keydown="inputNumFun()"
-								placeholder="请输入你的问题:"
-								maxlength="100">
-						</yd-textarea>
-
-					</yd-cell-item>
-				</yd-cell-group>
+				<textarea
+						id="textarea"
+					v-model.trim="text_info"
+					@keydown="inputNumFun()"
+					placeholder="请输入你的问题:"
+					maxlength="100"
+				>
+				</textarea>
+
 				<div class="send row item-center" style="border-bottom:.01rem solid #ddd">
 					<img
 							:src="meme?require('@/assets/faceActive.png'):require('@/assets/face.png')"
@@ -1219,7 +1215,11 @@
 </script>
 
 <style scoped>
-
+	#textarea {
+		margin: 15px;
+		width: 50%;
+		border: none;
+	}
 	.logo {
 		margin: 0 0.1rem;
 		width: 0.4rem;
@@ -1686,9 +1686,7 @@
 	}
 
 	div /deep/ .yd-textarea > textarea {
-		box-sizing: border-box;
-		height: auto;
-		min-height: 1.1rem;
+		height: 1.2rem;
 		font-size: 0.28rem;
 		padding-top: 0.2rem;
 	}

+ 8 - 13
chat/src/css/index.css

@@ -1,17 +1,12 @@
-/* 禁止文本内容被鼠标选中变蓝 */
-* {
-  -o-user-select: none;
-  -moz-user-select: none;
-  /*火狐 firefox*/
-  -webkit-user-select: none;
-  /*webkit浏览器*/
-  -ms-user-select: none;
-  /*IE10+*/
-  -khtml-user-select: none;
-  /*早期的浏览器*/
-  user-select: none;
-  
+input, textarea {
+  -webkit-user-select: auto !important;
+  -khtml-user-select: auto !important;
+  -moz-user-select: auto !important;
+  -ms-user-select: auto !important;
+  -o-user-select: auto !important;
+  user-select: auto !important;
 }
+
 p,img,h1,h2,h3,h4,h5,ul,li,ol,li,dl,dt,dd,body{
   margin: 0;
   padding: 0;