凉纪 2 年 前
コミット
8c13c4eff4

BIN
src/assets/fonts/SourceHanSansCN-ExtraLight.otf


BIN
src/assets/fonts/SourceHanSansCN-Light.otf


BIN
src/assets/fonts/SourceHanSansCN-Normal.otf


+ 31 - 2
src/assets/styles/index.scss

@@ -5,13 +5,42 @@
 @import "./sidebar.scss";
 @import "./btn.scss";
 
+@font-face {
+  font-family: ExtraLight;
+  font-style: normal;
+  font-weight: bold;
+  src: local("ExtraLight"), url("@/assets/fonts/SourceHanSansCN-ExtraLight.otf");
+}
+
+@font-face {
+  font-family: SYLight;
+  font-style: normal;
+  src: local("SYLight"), url("@/assets/fonts/SourceHanSansCN-Light.otf");
+}
+
+@font-face {
+  font-family: SYNormal;
+  font-style: normal;
+  src: local("SYNormal"), url("@/assets/fonts/SourceHanSansCN-Normal.otf");
+}
+
 body {
   height: 100%;
   -moz-osx-font-smoothing: grayscale;
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
-  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
-    Microsoft YaHei, Arial, sans-serif;
+  font-family: ExtraLight,Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
+  /*框架自带字体*/
+  //font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
+  //  Microsoft YaHei, Arial, sans-serif;
+}
+
+.el-button{
+  font-family: SYLight,Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
+}
+
+.el-table__header-wrapper{
+  font-family: SYNormal,Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
 }
 
 label {