add vue usings
This commit is contained in:
parent
5791368a75
commit
ca5467addb
|
@ -19,7 +19,7 @@ class BetterDiscord {
|
||||||
}
|
}
|
||||||
|
|
||||||
globalReady() {
|
globalReady() {
|
||||||
BdUI.injectUi();
|
this.vueInstance = BdUI.injectUi();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,18 @@
|
||||||
|
|
||||||
import Dom from './dom';
|
import Dom from './dom';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
import VTooltip from 'v-tooltip';
|
||||||
import { BdSettingsWrapper } from './components';
|
import { BdSettingsWrapper } from './components';
|
||||||
|
|
||||||
export default class {
|
export default class {
|
||||||
static injectUi() {
|
static injectUi() {
|
||||||
|
Vue.use(VTooltip, {
|
||||||
|
defaultContainer: 'bdtooltips',
|
||||||
|
defaultClass: 'bd-tooltip',
|
||||||
|
defaultTargetClass: 'bd-has-tooltip',
|
||||||
|
defaultInnerSelector: '.bd-tooltip-inner',
|
||||||
|
defaultTemplate: '<div class="bd-tooltip"><span class="bd-tooltip-inner"></span></div>'
|
||||||
|
});
|
||||||
|
|
||||||
Dom.createElement('div', null, 'bd-settings').appendTo(Dom.bdBody);
|
Dom.createElement('div', null, 'bd-settings').appendTo(Dom.bdBody);
|
||||||
|
|
||||||
|
@ -22,5 +30,7 @@ export default class {
|
||||||
components: { BdSettingsWrapper },
|
components: { BdSettingsWrapper },
|
||||||
template: '<BdSettingsWrapper/>'
|
template: '<BdSettingsWrapper/>'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return vueInstance;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div>Hi!</div>
|
<div></div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {}
|
export default {}
|
||||||
|
|
Loading…
Reference in New Issue