diff --git a/public/index.html b/public/index.html index 6fcb4e54..3872c266 100644 --- a/public/index.html +++ b/public/index.html @@ -19,6 +19,8 @@ height: 100%; margin: 0px; padding: 0px; + font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, + Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; } .chromeframe { margin: 0.2em 0; diff --git a/src/assets/icons/noData.png b/src/assets/icons/noData.png new file mode 100644 index 00000000..0e9eb354 Binary files /dev/null and b/src/assets/icons/noData.png differ diff --git a/src/assets/images/com-1.png b/src/assets/images/com-1.png new file mode 100644 index 00000000..6cf51886 Binary files /dev/null and b/src/assets/images/com-1.png differ diff --git a/src/assets/images/com-2.png b/src/assets/images/com-2.png new file mode 100644 index 00000000..810ac1ce Binary files /dev/null and b/src/assets/images/com-2.png differ diff --git a/src/assets/images/logo-home.png b/src/assets/images/logo-home.png new file mode 100644 index 00000000..601ccf37 Binary files /dev/null and b/src/assets/images/logo-home.png differ diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 48666db7..a559cef7 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -236,3 +236,32 @@ aside { overflow: auto; padding: 20px; } + +/* el-table 空态:覆盖 Element UI 默认样式 */ +.el-table__empty-block { + min-height: 200px; + display: flex; + align-items: center; + justify-content: center; +} + +.el-table__empty-text { + width: auto; /* 覆盖 50% */ + line-height: 1.2 !important; /* 🔥 干掉 60px 行高 */ + font-size: 14px; + color: #999; + + display: flex; + flex-direction: column; + align-items: center; +} + +/* 空态图片 */ +.el-table__empty-text::before { + content: ''; + width: 208px; + height: 208px; + //margin-bottom: 16px; + background: url('~@/assets/icons/noData.png') no-repeat center; + background-size: contain; +} diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 29f211ab..1f220c63 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -2,7 +2,7 @@