From 8a78d275f4b946a135cf8c9763b282cb2dbb5a0b Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 8 Nov 2023 15:50:00 +0300 Subject: [PATCH] Refactor #4739 - For TieredMenu --- components/lib/tieredmenu/BaseTieredMenu.vue | 4 ---- components/lib/tieredmenu/TieredMenu.d.ts | 1 + components/lib/tieredmenu/TieredMenu.vue | 6 ------ components/lib/tieredmenu/TieredMenuSub.vue | 17 +---------------- .../lib/tieredmenu/style/TieredMenuStyle.js | 8 +------- 5 files changed, 3 insertions(+), 33 deletions(-) diff --git a/components/lib/tieredmenu/BaseTieredMenu.vue b/components/lib/tieredmenu/BaseTieredMenu.vue index e91997353..1d0ce1a9c 100644 --- a/components/lib/tieredmenu/BaseTieredMenu.vue +++ b/components/lib/tieredmenu/BaseTieredMenu.vue @@ -26,10 +26,6 @@ export default { type: Number, default: 0 }, - exact: { - type: Boolean, - default: true - }, disabled: { type: Boolean, default: false diff --git a/components/lib/tieredmenu/TieredMenu.d.ts b/components/lib/tieredmenu/TieredMenu.d.ts index 024517eec..2c354cbfe 100755 --- a/components/lib/tieredmenu/TieredMenu.d.ts +++ b/components/lib/tieredmenu/TieredMenu.d.ts @@ -235,6 +235,7 @@ export interface TieredMenuProps { baseZIndex?: number | undefined; /** * Whether to apply 'router-link-active-exact' class if route exactly matches the item path. + * @deprecated since v3.40.0. * @defaultValue true */ exact?: boolean | undefined; diff --git a/components/lib/tieredmenu/TieredMenu.vue b/components/lib/tieredmenu/TieredMenu.vue index 03bd154f1..cbd6cc83d 100755 --- a/components/lib/tieredmenu/TieredMenu.vue +++ b/components/lib/tieredmenu/TieredMenu.vue @@ -20,7 +20,6 @@ :items="processedItems" :templates="$slots" :activeItemPath="activeItemPath" - :exact="exact" :level="0" :pt="pt" :unstyled="unstyled" @@ -84,11 +83,6 @@ export default { } } }, - beforeMount() { - if (!this.$slots.item) { - console.warn('In future versions, vue-router support will be removed. Item templating should be used.'); - } - }, mounted() { this.id = this.id || UniqueComponentId(); }, diff --git a/components/lib/tieredmenu/TieredMenuSub.vue b/components/lib/tieredmenu/TieredMenuSub.vue index 69a7c87e5..76e2a9dcb 100755 --- a/components/lib/tieredmenu/TieredMenuSub.vue +++ b/components/lib/tieredmenu/TieredMenuSub.vue @@ -21,14 +21,7 @@ >