Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add compatConfig #744

Open
wants to merge 6 commits into
base: v-tooltip-4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/v-tooltip/src/components/Popper.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ if (typeof window !== 'undefined') {
}

export default () => ({
compatConfig: {
MODE: 3,
},

name: 'VPopper',

props: {
Expand Down
4 changes: 4 additions & 0 deletions packages/v-tooltip/src/components/PopperContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ import { ResizeObserver } from 'vue-resize'
import ThemeClass from './ThemeClass'

export default {
compatConfig: {
MODE: 3,
},

name: 'VPopperContent',

components: {
Expand Down
4 changes: 4 additions & 0 deletions packages/v-tooltip/src/components/PopperWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ import PopperMethods from './PopperMethods'
import ThemeClass from './ThemeClass'

export default {
compatConfig: {
MODE: 3,
},

name: 'VPopperWrapper',

components: {
Expand Down
4 changes: 4 additions & 0 deletions packages/v-tooltip/src/components/TooltipDirective.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ import { getDefaultConfig } from '../config'
import PopperMethods from './PopperMethods'

export default {
compatConfig: {
MODE: 3,
},

name: 'VTooltipDirective',

components: {
Expand Down
3 changes: 3 additions & 0 deletions packages/v-tooltip/src/directives/v-close-popper.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ function onTouchCancel (event) {
}

export default {
compatConfig: {
MODE: 3,
},
beforeMount (el, { value, modifiers }) {
el.$_closePopoverModifiers = modifiers
if (typeof value === 'undefined' || value) {
Expand Down
3 changes: 3 additions & 0 deletions packages/v-tooltip/src/directives/v-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export function bind (el, { value, modifiers }) {
}

export default {
compatConfig: {
MODE: 3,
},
beforeMount: bind,
updated: bind,
beforeUnmount (el) {
Expand Down