Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
d5620b09
Commit
d5620b09
authored
Oct 13, 2016
by
Leopoldthecoder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add lock modifier on loading
parent
a1482429
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
CHANGELOG.md
CHANGELOG.md
+8
-0
examples/docs/zh-cn/loading.md
examples/docs/zh-cn/loading.md
+2
-2
packages/loading/src/directive.js
packages/loading/src/directive.js
+1
-1
No files found.
CHANGELOG.md
View file @
d5620b09
## 更新日志
### 1.0.0-rc.8(待发布)
*2016-XX-XX*
#### 非兼容性更新
-
全屏 Loading 现在默认不再锁定屏幕滚动。如果需要的话,可添加
`lock`
修饰符
### 1.0.0-rc.7
*2016-10-13*
...
...
examples/docs/zh-cn/loading.md
View file @
d5620b09
...
...
@@ -57,14 +57,14 @@
页面数据加载时显示。
:::demo 当需要全屏遮罩时,可使用
`fullscreen`
修饰符(此时遮罩会插入至 body 上)
:::demo 当需要全屏遮罩时,可使用
`fullscreen`
修饰符(此时遮罩会插入至 body 上)
。此时若需要锁定屏幕的滚动,可以使用
`lock`
修饰符。
```
html
<template>
<el-button
type=
"primary"
@
click.native=
"openFullScreen"
v-loading.fullscreen=
"fullscreenLoading"
>
v-loading.fullscreen
.lock
=
"fullscreenLoading"
>
显示整页加载,3 秒后消失
</el-button>
</template>
...
...
packages/loading/src/directive.js
View file @
d5620b09
...
...
@@ -68,7 +68,7 @@ exports.install = Vue => {
if
(
directive
.
originalPosition
!==
'
absolute
'
)
{
parent
.
style
.
position
=
'
relative
'
;
}
if
(
binding
.
modifiers
.
fullscreen
)
{
if
(
binding
.
modifiers
.
fullscreen
&&
binding
.
modifiers
.
lock
)
{
parent
.
style
.
overflow
=
'
hidden
'
;
}
directive
.
mask
.
style
.
display
=
'
block
'
;
...
...
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