Explorar el Código

字体文件处理

liuqiang hace 1 año
padre
commit
37ce168eea

+ 0 - 0
src/assets/fonts/Inter-Medium-8.otf → public/fonts/Inter-Medium-8.otf


+ 0 - 0
src/assets/fonts/Inter-var-2.ttf → public/fonts/Inter-var-2.ttf


+ 0 - 0
src/assets/fonts/SourceHanSansCN-Bold_0.otf → public/fonts/SourceHanSansCN-Bold_0.otf


+ 0 - 0
src/assets/fonts/SourceHanSansCN-ExtraLight_0.otf → public/fonts/SourceHanSansCN-ExtraLight_0.otf


+ 0 - 0
src/assets/fonts/SourceHanSansCN-Heavy.otf → public/fonts/SourceHanSansCN-Heavy.otf


+ 0 - 0
src/assets/fonts/SourceHanSansCN-Light_0.otf → public/fonts/SourceHanSansCN-Light_0.otf


+ 0 - 0
src/assets/fonts/SourceHanSansCN-Medium_0.otf → public/fonts/SourceHanSansCN-Medium_0.otf


+ 0 - 0
src/assets/fonts/SourceHanSansCN-Normal_0.otf → public/fonts/SourceHanSansCN-Normal_0.otf


+ 0 - 0
src/assets/fonts/SourceHanSansCN-Regular_0.otf → public/fonts/SourceHanSansCN-Regular_0.otf


+ 36 - 0
public/fonts/font.css

@@ -0,0 +1,36 @@
+  @font-face {
+    font-family: "Inter-Bold";
+    src: url('SourceHanSansCN-Bold_0.otf');
+    font-weight: normal;
+    font-style: normal;
+  }
+  @font-face {
+    font-family: "Inter-Regular";
+    src: url('SourceHanSansCN-Regular_0.otf');
+    font-weight: normal;
+    font-style: normal;
+  }
+  @font-face {
+    font-family: "Inter-Medium";
+    src: url('SourceHanSansCN-Medium_0.otf');
+    font-weight: normal;
+    font-style: normal;
+  }
+  @font-face {
+    font-family: "Inter-LOGO";
+    src: url('logo.otf');
+    font-weight: normal;
+    font-style: normal;
+  }
+  @font-face {
+    font-family: "Inter-Medium-8";
+    src: url('Inter-Medium-8.otf');
+    font-weight: normal;
+    font-style: normal;
+  }
+  @font-face {
+    font-family: "Inter-var";
+    src: url('Inter-var-2.ttf');
+    font-weight: normal;
+    font-style: normal;
+  }

+ 0 - 0
src/assets/fonts/logo.otf → public/fonts/logo.otf


+ 7 - 7
src/assets/fonts/font.css

@@ -1,36 +1,36 @@
   @font-face {
     font-family: "Inter-Bold";
-    src: url('SourceHanSansCN-Bold_0.otf');
+    src: url('../../../public/fonts/SourceHanSansCN-Bold_0.otf');
     font-weight: normal;
     font-style: normal;
   }
   @font-face {
     font-family: "Inter-Regular";
-    src: url('SourceHanSansCN-Regular_0.otf');
+    src: url('../../../public/fonts/SourceHanSansCN-Regular_0.otf');
     font-weight: normal;
     font-style: normal;
   }
   @font-face {
     font-family: "Inter-Medium";
-    src: url('SourceHanSansCN-Medium_0.otf');
+    src: url('../../../public/fonts/SourceHanSansCN-Medium_0.otf');
     font-weight: normal;
     font-style: normal;
   }
   @font-face {
     font-family: "Inter-LOGO";
-    src: url('logo.otf');
+    src: url('../../../public/fonts/logo.otf');
     font-weight: normal;
     font-style: normal;
   }
   @font-face {
-    font-family: "Inter-Medium";
-    src: url('Inter-Medium-8.otf');
+    font-family: "Inter-Medium-8";
+    src: url('../../../public/fonts/Inter-Medium-8.otf');
     font-weight: normal;
     font-style: normal;
   }
   @font-face {
     font-family: "Inter-var";
-    src: url('Inter-var-2.ttf');
+    src: url('../../../public/fonts/Inter-var-2.ttf');
     font-weight: normal;
     font-style: normal;
   }

+ 14 - 9
src/layout/components/DefaultPage/DefaultPage.vue

@@ -704,10 +704,11 @@ onMounted(() => {
       margin-left: 24px;
       font-weight: 400;
       font-size: 16px;
+      font-family: Inter-Regular;
       color: #7c808d;
       .blueT {
-        font-weight: 500;
         font-size: 16px;
+        font-family: Inter-Medium;
         color: #2e8bf6;
         text-decoration-line: underline;
       }
@@ -718,6 +719,7 @@ onMounted(() => {
     }
     :deep(.el-upload) {
       width: 350px !important;
+      height: 48px !important;
       display: flex !important;
       align-items: center !important;
       // height: 40px !important;
@@ -792,13 +794,14 @@ onMounted(() => {
     .text1 {
       font-style: 18px;
       color: #2e8bf6;
-      font-weight: bold;
+      font-family: Inter-Bold;
       margin-top: 16px;
       margin-bottom: 8px;
     }
     .text2 {
       font-weight: 400;
       font-size: 16px;
+      font-family: Inter-Regular;
       color: #7c808d;
       span {
         font-weight: 500;
@@ -808,7 +811,7 @@ onMounted(() => {
       }
     }
     .text3 {
-      font-weight: 400;
+      font-family: Inter-Regular;
       font-size: 14px;
       color: #7c808d;
       margin-top: 8px;
@@ -876,7 +879,7 @@ onMounted(() => {
           flex-direction: column;
           justify-content: space-between;
           .text {
-            font-weight: bold;
+            font-family: Inter-Medium;
             font-size: 16px;
             color: #030102;
           }
@@ -920,7 +923,7 @@ onMounted(() => {
     .title {
       width: 100%;
       height: 22px;
-      font-weight: 400;
+      font-family: Inter-Regular;
       font-size: 14px;
       line-height: 22px;
     }
@@ -938,13 +941,14 @@ onMounted(() => {
         .fileName {
           font-size: 16px;
           color: #2e6bc8;
+          font-family: Inter-Medium;
           text-decoration: underline;
           cursor: pointer;
         }
 
         .flieTime {
           font-size: 12px;
-          font-weight: 400;
+          font-family: Inter-Medium;
           color: #7c808d;
           // line-height: 20px;
           vertical-align: middle;
@@ -961,7 +965,7 @@ onMounted(() => {
           width: 100%;
           font-size: 14px;
           color: #000000;
-          font-weight: 400;
+          font-family: Inter-Regular;
           line-height: 22px;
           display: -webkit-box;
           -webkit-box-orient: vertical;
@@ -983,14 +987,14 @@ onMounted(() => {
       height: 42px;
       border-bottom: 1px solid #dbdbdb;
       span {
-        font-weight: bold;
+        font-family: Inter-Bold;
         font-size: 18px;
         color: #030102;
       }
     }
     .num {
       font-size: 14px;
-      font-weight: 400;
+      font-family: Inter-Regular;
       color: #555d72;
       margin-top: 12px;
     }
@@ -1001,6 +1005,7 @@ onMounted(() => {
     }
     //表格文本超出隐藏
     :deep(.flie_name, .folder) {
+      font-family: Inter-Regular;
       /*第一步: 溢出隐藏 */
       overflow: hidden;
       /* 第二步:让文本不会换行, 在同一行继续 */

+ 12 - 0
src/layout/components/DefaultPage/test.vue

@@ -0,0 +1,12 @@
+<template>
+    <div>
+
+    </div>
+</template>
+
+<script setup>
+
+</script>
+
+<style lang="scss" scoped>
+</style>

+ 2 - 2
src/layout/components/TopMenu/TopMenu.vue

@@ -353,10 +353,10 @@ watchEffect(async () => {
     height: 100%;
     margin-right: 8px;
   }
-  .name{
+  .name {
     font-size: 20px;
     font-family: Inter-LOGO;
-    line-height: 28px;
+    // line-height: 28px;
     color: #fff;
   }
 }

+ 1 - 1
src/views/login.vue

@@ -9,7 +9,7 @@
         :rules="loginRules"
         class="center_box"
       >
-        <span class="title">聚合智慧文档管理系统</span>
+        <span class="title">AI数字文档</span>
         <el-form-item prop="username">
           <span class="ipt_title">用户名</span>
           <el-input