From bc8becc3573e254945bc5bae5971d5729f0d1c7a Mon Sep 17 00:00:00 2001 From: Yadi Apriyadi Date: Thu, 14 Mar 2024 10:02:25 +0700 Subject: [PATCH 1/2] feat: update package portal-vue & remove slim property --- package.json | 2 +- src/components/toast/toast.js | 2 +- src/components/toast/toaster.js | 2 +- src/vue.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 15e34dc19d7..d6e5ae05c33 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "@nuxt/opencollective": "^0.3.2", "bootstrap": "^4.6.1", "popper.js": "^1.16.1", - "portal-vue": "^2.1.7", + "portal-vue": "3.0.0", "vue-functional-data-merge": "^3.1.0" }, "devDependencies": { diff --git a/src/components/toast/toast.js b/src/components/toast/toast.js index 25ad463a818..ae07ea5e015 100644 --- a/src/components/toast/toast.js +++ b/src/components/toast/toast.js @@ -444,7 +444,7 @@ export const BToast = /*#__PURE__*/ extend({ name, to: this.computedToaster, order, - slim: true, + // slim: true, disabled: isStatic } }, diff --git a/src/components/toast/toaster.js b/src/components/toast/toaster.js index f0196a81b7c..ebf22516d4b 100644 --- a/src/components/toast/toaster.js +++ b/src/components/toast/toaster.js @@ -111,7 +111,7 @@ export const BToaster = /*#__PURE__*/ extend({ name: this.staticName, multiple: true, tag: 'div', - slim: false, + // slim: false, // transition: this.transition || DefaultTransition transition: DefaultTransition } diff --git a/src/vue.js b/src/vue.js index 8bb10cf7c2e..8f4829036b6 100644 --- a/src/vue.js +++ b/src/vue.js @@ -4,7 +4,7 @@ import { mergeData } from 'vue-functional-data-merge' // --- Constants --- const COMPONENT_UID_KEY = '_uid' -const isVue3 = Vue.version.startsWith('3') +const isVue3 = true export const REF_FOR_KEY = isVue3 ? 'ref_for' : 'refInFor' From bce8c154e19d2f0e0dcbd8cbae4af19482119189 Mon Sep 17 00:00:00 2001 From: Yadi Apriyadi Date: Thu, 14 Mar 2024 10:06:46 +0700 Subject: [PATCH 2/2] feat: update to vue3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d6e5ae05c33..3650593defb 100644 --- a/package.json +++ b/package.json @@ -150,7 +150,7 @@ "sass-loader": "^10.1.1", "standard-version": "^9.3.0", "terser": "^5.15.0", - "vue": "^2.6.12", + "vue": "3.2.41", "vue-router": "^3.5.1", "vue-server-renderer": "^2.6.12", "vue-template-compiler": "^2.6.12",