Browse Source

更新dashboard样式

Nivek 2 years ago
parent
commit
2dc8525d51
2 changed files with 5 additions and 7 deletions
  1. 5 5
      src/components/Dashboard.vue
  2. 0 2
      src/components/Register.vue

+ 5 - 5
src/components/Dashboard.vue

@@ -145,7 +145,7 @@ import {onBeforeMount, ref} from 'vue';
     </el-aside>
 
 
-    <div  class="flex flex-col h-full w-full  rounded-lg space-y-4">
+    <div  class="flex flex-col h-full w-full  rounded-lg space-y-4 overflow-y-scroll">
 
       <div class="h-auto bg-gray-50 rounded-lg">
 
@@ -200,7 +200,7 @@ import {onBeforeMount, ref} from 'vue';
 
       </div>
 
-      <div class="h-full bg-gray-50 rounded-lg">
+      <div class="h-full bg-gray-50 rounded-lg flex flex-col">
 
         <div class="flex flex-row justify-between px-3 py-2 rounded-t-lg bg-gray-100 border-b-2 border-gray-200">
           <span class="ml-1 text-2xl font-semibold text-center">地址信息</span>
@@ -210,11 +210,11 @@ import {onBeforeMount, ref} from 'vue';
           </button>
         </div>
 
-        <div class="p-5 flex flex-col">
+        <div class="p-5 flex flex-col h-full">
 <!--          <label for="address" class="block mt-2 mb-2 text-sm font-medium text-gray-900">默认地址</label>-->
-          <textarea id="address" rows="7"
+          <textarea id="address"
                     v-model="address"
-                    class="overflow-auto block p-3 w-full text-xl text-gray-900 bg-white rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500" placeholder="中华门"></textarea>
+                    class="overflow-auto block p-3 h-full w-full text-xl text-gray-900 bg-white rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500" placeholder="中华门"></textarea>
 
         </div>
 

+ 0 - 2
src/components/Register.vue

@@ -4,7 +4,6 @@
   import {userRegister} from "../api/user.ts";
 
 
-
   const name = ref('')
   const identity = ref('')
   const tel = ref('')
@@ -13,7 +12,6 @@
   const confirmPassword = ref('')
 
 
-
   // const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
   const chinaMobileRegex = /^1(3[0-9]|4[579]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[189])\d{8}$/;