Skip to content
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

添加自定义class,用于修改样式时不覆盖其他弹窗样式 #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ this.$layer.alert("找不到对象!");
shadeClose: true,//点击遮罩是否关闭
maxmin: true,//开启最大化最小化
scrollbar: true, //是否允许浏览器出现滚动条:默认是允许
resize: false //是否允许拉伸,默认是不允许
resize: false, //是否允许拉伸,默认是不允许
className: '' // 调用iframe弹窗,添加自定义class 配合type = 2时有效
}
```
## Method
Expand Down
2 changes: 1 addition & 1 deletion packages/layer/src/components/drag/drag.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div
class="vl-notify vl-notify-main vl-notify-alert"
:class="cls"
:class="[cls, options.className]"
@mousemove="move"
@mouseup="moveEnd"
@focus="resetZIndex"
Expand Down