mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
Custom Tooltip (#43)
* implemented basic tooltip * add animation * finish up tooltip, added instant option * implemented basic tooltip * add animation * finish up tooltip, added instant option * Uninstall v-tooltip * Match folder structure of focus to tooltip * Register new directives * remove duplicate folder * Export functions, cleanup animate * Export update tooltip function * Increase test covergae * Added start and end options * Structure positioning tests * tooltip right end will now show on the right end * Add tests for modifier states * Update test coverage * Fix stylelint issues * made top as default position * added inverted option * fix lint * Move tooltip style vars to theme * Remove line clamp * Update tests Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import Vue from 'vue';
|
||||
import VueCompositionAPI from '@vue/composition-api';
|
||||
import { mount, createLocalVue, Wrapper } from '@vue/test-utils';
|
||||
import { VTooltip } from 'v-tooltip';
|
||||
import VIcon from '@/components/v-icon/';
|
||||
import { useProjectsStore, ProjectWithKey } from '@/stores/projects';
|
||||
import Tooltip from '@/directives/tooltip/tooltip';
|
||||
|
||||
const localVue = createLocalVue();
|
||||
localVue.use(VueCompositionAPI);
|
||||
localVue.directive('tooltip', VTooltip);
|
||||
localVue.component('v-icon', VIcon);
|
||||
localVue.directive('tooltip', Tooltip);
|
||||
|
||||
import PublicView from './public-view.vue';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user