Skip to content

Commit 7a097aa

Browse files
fix(tooltip): NO-JIRA fix docsite (#1075)
1 parent 1a6f55f commit 7a097aa

File tree

1 file changed

+3
-3
lines changed
  • packages/dialtone-vue/directives/tooltip_directive

1 file changed

+3
-3
lines changed

packages/dialtone-vue/directives/tooltip_directive/tooltip.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const DtTooltipDirective = {
77
name: 'dt-tooltip-directive',
88
install (app) {
99
const DEFAULT_PLACEMENT = 'top';
10-
if (!global.__DtTooltipDirectiveAppInstance) {
10+
if (!globalThis.__DtTooltipDirectiveAppInstance) {
1111
const DtTooltipDirectiveApp = createApp({
1212
name: 'DtTooltipDirectiveApp',
1313
components: { DtTooltip },
@@ -18,7 +18,7 @@ export const DtTooltipDirective = {
1818
},
1919

2020
created () {
21-
global.__DtTooltipDirectiveAppInstance = getCurrentInstance();
21+
globalThis.__DtTooltipDirectiveAppInstance = getCurrentInstance();
2222
},
2323

2424
methods: {
@@ -61,7 +61,7 @@ export const DtTooltipDirective = {
6161
DtTooltipDirectiveApp.mount(mountPoint);
6262
}
6363

64-
const tooltipInstance = global.__DtTooltipDirectiveAppInstance;
64+
const tooltipInstance = globalThis.__DtTooltipDirectiveAppInstance;
6565

6666
app.directive('dt-tooltip', {
6767
beforeMount (anchor, binding) {

0 commit comments

Comments
 (0)