Skip to content
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ this.$layer.alert("找不到对象!");
tipsMore: false,//是否允许多个tips
shadeClose: true,//点击遮罩是否关闭
maxmin: true,//开启最大化最小化
closeBtn:true //弹层关闭按钮是否显示
}
```
## Method
Expand Down
2 changes: 1 addition & 1 deletion src/components/drag/drag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</template>
</span>
</template>
<i class="icon-remove" @click="close"></i>
<i v-if="options.closeBtn == true" class="icon-remove" @click="close"></i>
</h2>
<slot></slot>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ let Notification = (function (vue, globalOption = {
cancel: '',
tips: [0, {}], //支持上右下左四个方向,通过1-4进行方向设定,可以设定tips: [1, '#c00']
tipsMore: false, //是否允许多个tips
shadeClose: true
shadeClose: true,
closeBtn:true //弹层关闭按钮是否显示
};
self.instances = {};
self.instancesVue = [];
Expand Down Expand Up @@ -335,4 +336,4 @@ let Notification = (function (vue, globalOption = {
return self;
});

module.exports = Notification;
module.exports = Notification;