Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
725c42fc
Commit
725c42fc
authored
Oct 23, 2021
by
maxiaohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录 + 查重 调整
parent
99e30d3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/main.js
+8
-8
No files found.
src/main.js
View file @
725c42fc
...
@@ -20,16 +20,16 @@ import "driver.js/dist/driver.min.css";
...
@@ -20,16 +20,16 @@ import "driver.js/dist/driver.min.css";
import
"./assets/css/global.css"
;
import
"./assets/css/global.css"
;
import
"./assets/css/el-table-style.css"
;
import
"./assets/css/el-table-style.css"
;
import
VueClipboard
from
"vue-clipboard2"
;
import
VueClipboard
from
"vue-clipboard2"
;
import
VueBus
from
'vue-bus'
;
import
VueBus
from
"vue-bus"
;
//引入svg组件
//引入svg组件
import
IconSvg
from
'./utils/IconSvg.vue'
import
IconSvg
from
"./utils/IconSvg.vue"
;
//全局注册svg-icon
//全局注册svg-icon
Vue
.
component
(
'svg-icon'
,
IconSvg
)
Vue
.
component
(
"svg-icon"
,
IconSvg
);
// 引入上传组件
// 引入上传组件
import
uploader
from
'vue-simple-uploader'
import
uploader
from
"vue-simple-uploader"
;
Vue
.
use
(
uploader
)
Vue
.
use
(
uploader
)
;
Vue
.
prototype
.
$driver
=
new
Driver
({
Vue
.
prototype
.
$driver
=
new
Driver
({
className
:
"scoped-class"
,
// className to wrap driver.js popover
className
:
"scoped-class"
,
// className to wrap driver.js popover
...
@@ -56,7 +56,7 @@ Vue.use(VueClipboard);
...
@@ -56,7 +56,7 @@ Vue.use(VueClipboard);
Vue
.
use
(
VueBus
);
Vue
.
use
(
VueBus
);
Vue
.
directive
(
"nsLoading"
,
{
Vue
.
directive
(
"nsLoading"
,
{
bind
(
el
,
binding
)
{
bind
(
el
,
binding
)
{
const
instance
=
new
LoadingCons
({
const
instance
=
new
LoadingCons
({
el
:
document
.
createElement
(
"div"
),
el
:
document
.
createElement
(
"div"
),
data
:
{}
data
:
{}
...
@@ -75,7 +75,7 @@ Vue.directive("nsLoading", {
...
@@ -75,7 +75,7 @@ Vue.directive("nsLoading", {
* @param {*} el
* @param {*} el
* @param {*} binding
* @param {*} binding
*/
*/
update
(
el
,
binding
)
{
update
(
el
,
binding
)
{
// 通过对比值的变化判断loading是否显示
// 通过对比值的变化判断loading是否显示
if
(
binding
.
oldValue
!==
binding
.
value
)
{
if
(
binding
.
oldValue
!==
binding
.
value
)
{
el
.
instance
.
isShow
=
binding
.
value
;
el
.
instance
.
isShow
=
binding
.
value
;
...
@@ -87,7 +87,7 @@ Vue.directive("nsLoading", {
...
@@ -87,7 +87,7 @@ Vue.directive("nsLoading", {
* 只调用一次,在 指令与元素解绑时调用
* 只调用一次,在 指令与元素解绑时调用
* @param {*} el
* @param {*} el
*/
*/
unbind
(
el
)
{
unbind
(
el
)
{
const
mask
=
el
.
instance
.
$el
;
const
mask
=
el
.
instance
.
$el
;
if
(
mask
.
parentNode
)
{
if
(
mask
.
parentNode
)
{
mask
.
parentNode
.
removeChild
(
mask
);
mask
.
parentNode
.
removeChild
(
mask
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment