修复字体问题

This commit is contained in:
lik
2026-10-24 23:10:54 +08:00
parent 0615b8934f
commit aeafe2131d
3 changed files with 15 additions and 14 deletions
+5 -12
View File
@@ -1,17 +1,10 @@
/**app.wxss**/
/* 图标字体随包发布,避免运行时依赖远程字体域名。
使用独立字体族覆盖 apply-shared 的 TDesign 图标组件,不修改会被 npm 重建的依赖文件。 */
@font-face {
font-family: 'escort-icons';
src: url('/assets/fonts/t.woff') format('woff');
font-weight: 400;
font-style: normal;
}
.t-icon {
font-family: 'escort-icons' !important;
}
/* 图标字体(TDesign t 图标族)已以 base64 形式内嵌在
miniprogram_npm/tdesign-miniprogram/icon/icon.wxss 的 @font-face 中,
不再请求远程域名 tdesign.gtimg.com,也不走本地路径(真机不支持)。
注意:该文件会在「构建 npm」时被 node_modules 覆盖回远程地址,
重建后需重新替换 src 为 base64(脚本步骤见 doc/review.md Q-P3-3)。 */
page {
/* ===== 全站配色令牌 · 唯一来源(改配色只改这里)=====