site: fix auto-complete

This commit is contained in:
07akioni 2020-10-07 21:03:23 +08:00
parent db378a829c
commit 37c160d21d
3 changed files with 6 additions and 5 deletions

View File

@ -248,7 +248,7 @@ export default {
padding-left: 32px;
}
.nav-menu::v-deep(.n-menu-item) {
.nav-menu ::v-deep(.n-menu-item) {
height: 63px !important;
}

View File

@ -125,7 +125,7 @@ export default {
}
.naive-title {
font-family: 'Metropolis';
font-family: Metropolis, sans-serif;
font-size: 80px !important;
margin-bottom: 18px !important;
}

View File

@ -1,3 +1,5 @@
import { h } from 'vue'
const env = process.env.NODE_ENV
const appendCounts = item => {
@ -9,7 +11,7 @@ const appendCounts = item => {
item.childItems.forEach(appendCounts)
item.count = item.childItems.reduce((sum, item) => sum + item.count, 0)
if (!item.group) {
item.title = h => {
item.title = () => {
return h('n-config-consumer', {
props: {
abstract: true
@ -47,8 +49,7 @@ const appendDebugDemos = (item, mode) => {
}
export default function (instance) {
// TODO fix
const { lang = 'zh-CN', theme = 'light' } = {}
const { lang, theme } = instance
if (lang === 'zh-CN') {
return [
{