Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

make Portal packed in bootstrap-vue availabel to users#6894

scil started this conversation inShow and tell
Discussion options

just a little patch used by patch-package . if you want to use Portal,no need to install the second piece of code.

diff --git a/node_modules/bootstrap-vue/dist/bootstrap-vue.js b/node_modules/bootstrap-vue/dist/bootstrap-vue.jsindex 3255ed4..8112f13 100644--- a/node_modules/bootstrap-vue/dist/bootstrap-vue.js+++ b/node_modules/bootstrap-vue/dist/bootstrap-vue.js@@ -30166,6 +30166,18 @@    // Main entry point for the browser build   +    if ( // @ts-ignore+  typeof window !== 'undefined' && window.Vue && window.Vue === Vue) {+    window.Vue.use({+      install: function install(Vue$$1) {+        var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};+        Vue$$1.component(options.portalName || 'Portal', Portal);+        Vue$$1.component(options.portalTargetName || 'PortalTarget', PortalTarget);+        Vue$$1.component(options.MountingPortalName || 'MountingPortal', MountingPortal);+      }+    });+  }+   vueUse(BootstrapVue);    return BootstrapVue;
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
1 participant
@scil

[8]ページ先頭

©2009-2025 Movatter.jp