Browse Source

限制长度

gcj 3 years ago
parent
commit
fca79fcaab

+ 1 - 1
src/common/font/font.css

@@ -60,7 +60,7 @@
   font-family: 'sourceR';
   src: url('SourceSansPro-Regular.ttf');
 }
+
 #app{
   font-family: "sourceR";
-
 }

+ 1 - 0
src/components/learnCenter/HeaderOne.vue

@@ -44,6 +44,7 @@
           style="width: 300px"
           :placeholder="$t('Key46')"
           v-model="SeekName"
+          maxlength="200"
         >
         </el-input>
         <img

+ 5 - 1
src/components/learnCenter/LoginNav.vue

@@ -55,7 +55,11 @@
     </div>
     <div class="userName">
       <div class="seek" v-if="type == 'Live'">
-        <el-input style="width: 300px; height: 40px" type="text" />
+        <el-input
+          style="width: 300px; height: 40px"
+          type="text"
+          maxlength="200"
+        />
         <img src="../../assets/learncenter/Group2149.png" alt="" />
       </div>
       <!-- <div class="headPhoto"></div> -->

+ 1 - 0
src/views/learn-center/index.vue

@@ -25,6 +25,7 @@
             v-model="SeekName"
             style="width: 300px"
             :placeholder="$t('Key46')"
+            maxlength="200"
           >
           </el-input>
           <img