integrations
integrations copied to clipboard
bug: InjectionKey is not working
https://nolebase-integrations.ayaka.io/pages/zh-CN/integrations/vitepress-plugin-inline-link-preview/configuration#%E5%A6%82%E4%BD%95%E5%9C%A8-vitepress-%E4%B8%AD%E8%BF%9B%E8%A1%8C%E9%85%8D%E7%BD%AE
This is my configuration in index.js
import {
NolebaseInlineLinkPreviewPlugin,
InjectionKey,
} from "@nolebase/vitepress-plugin-inline-link-preview/client";
import "@nolebase/vitepress-plugin-inline-link-preview/client/style.css";
export default {
enhanceApp({ app }) {
app.use(NolebaseInlineLinkPreviewPlugin);
app.provide(InjectionKey, {
popupWidth: 100,
popupHeight: 100,
locales: {
"zh-TW": {
popup: {
loading: "加載中...",
loadingAriaLabel: "加載中",
iframeAriaLabel: "連結預覽",
},
},
},
});
}
}
its not working component is still the default style.