mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-11-27 04:09:51 +08:00
site: fix auto-complete
This commit is contained in:
parent
db378a829c
commit
37c160d21d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -125,7 +125,7 @@ export default {
|
||||
}
|
||||
|
||||
.naive-title {
|
||||
font-family: 'Metropolis';
|
||||
font-family: Metropolis, sans-serif;
|
||||
font-size: 80px !important;
|
||||
margin-bottom: 18px !important;
|
||||
}
|
||||
|
@ -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 [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user