Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

zIndex 和 top 为 0 时没作用 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
savoygu merged 1 commit into vue-multiple:master from hallee9000:patch-1
Sep 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
zIndex 和 top 为 0 时没作用
当数字为 0 时,会导致条件为 false 。
  • Loading branch information
hallee9000 authored Sep 27, 2017
commit 34af3850bb5766b79acf1e1001514131a734d09b
6 changes: 3 additions & 3 deletions src/components/message.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var Message = function (options) {
}

if (
options.zIndex
'zIndex' in options
&& typeof options.zIndex === 'number'
&& options.zIndex > -1
) {
Expand Down Expand Up @@ -64,7 +64,7 @@ var Message = function (options) {
? nextZIndex++
: optsZIndex
if (
global.top
'top' in global
&& typeof global.top === 'number'
) {
instance.dom.style.top = `${global.top}px`
Expand All @@ -76,7 +76,7 @@ var Message = function (options) {
Message.config = function (options) {
global = options || {}
if (
global.zIndex
'zIndex' in global
&& typeof global.zIndex === 'number'
&& global.zIndex > -1
) {
Expand Down

AltStyle によって変換されたページ (->オリジナル) /