@vuepress-reco/style-default
Version:
It is default type of vuepress-theme-reco.
17 lines (16 loc) • 623 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const vue_1 = require("vue");
const client_1 = require("@vuepress/client");
require("./styles/index.scss");
const Icon_vue_1 = require("../client/components/Icon.vue");
exports.default = client_1.defineClientAppEnhance(({ app, router }) => {
app.component('NavbarSearch', () => {
const SearchComponent = app.component('Docsearch') || app.component('SearchBox');
if (SearchComponent) {
return vue_1.h(SearchComponent);
}
return null;
});
app.component('Icon', () => Icon_vue_1.default);
});