Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
supervise-wecom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 366171b8
authored
Jun 01, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 添加 floating-vue 全局指令
1 parent
48135ac3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
src/config/utils.config.js
src/main.js
src/config/utils.config.js
0 → 100644
View file @
366171b
import
{
// * Components
// Dropdown,
// Menu,
// Tooltip,
// vClosePopper,
// * Directives
options
,
VTooltip
,
}
from
"floating-vue"
;
import
"floating-vue/dist/style.css"
;
console
.
log
(
options
);
// <button v-tooltip.bottom-start="'You have ' + count + ' new messages.'">
export
function
utils
(
app
)
{
app
.
directive
(
"tooltip"
,
VTooltip
);
}
src/main.js
View file @
366171b
...
@@ -5,6 +5,7 @@ import VConsole from "vconsole";
...
@@ -5,6 +5,7 @@ import VConsole from "vconsole";
// import 'regenerator-runtime/runtime'
// import 'regenerator-runtime/runtime'
import
Vue
from
"vue"
;
import
Vue
from
"vue"
;
import
{
cfg
,
fetchConfig
}
from
"@/config"
;
import
{
cfg
,
fetchConfig
}
from
"@/config"
;
import
{
utils
}
from
"@/config/utils.config.js"
;
import
{
vant
}
from
"@/config/vant.config.js"
;
import
{
vant
}
from
"@/config/vant.config.js"
;
import
{
ssoApi
}
from
"./api/index.js"
;
import
{
ssoApi
}
from
"./api/index.js"
;
import
App
from
"./App.vue"
;
import
App
from
"./App.vue"
;
...
@@ -17,6 +18,7 @@ import "./utils/util";
...
@@ -17,6 +18,7 @@ import "./utils/util";
import
"@/components"
;
import
"@/components"
;
// import mixin from './mixins/index'
// import mixin from './mixins/index'
vant
(
Vue
);
vant
(
Vue
);
utils
(
Vue
);
Vue
.
prototype
.
api
=
ssoApi
;
Vue
.
prototype
.
api
=
ssoApi
;
Vue
.
prototype
.
bus
=
bus
;
Vue
.
prototype
.
bus
=
bus
;
Vue
.
prototype
.
tools
=
tools
;
Vue
.
prototype
.
tools
=
tools
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment