Merge branch 'master' of gitlab.qima-inc.com:fe/zanui-vue

This commit is contained in:
pangxie1991
2017-02-28 21:08:56 +08:00
79 changed files with 12034 additions and 11179 deletions
+2 -2
View File
@@ -41,9 +41,9 @@ if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
export default {
module.exports = {
install,
version: '0.0.4',
version: '0.0.7',
Button,
Switch,
Field,
+2 -3
View File
@@ -85,7 +85,6 @@ export default {
const dom = getDOM(this.$el);
const props = merge({}, this, options);
const overlay = props.overlay;
const zIndex = props.zIndex;
// 如果属性中传入了`zIndex`,则覆盖`PopupManager`中对应的`zIndex`
@@ -94,7 +93,7 @@ export default {
}
// 如果显示遮罩层
if (overlay) {
if (this.overlay) {
if (this.closing) {
PopupManager.closeModal(this._popupId);
this.closing = false;
@@ -102,7 +101,7 @@ export default {
PopupManager.openModal(this._popupId, PopupManager.nextZIndex(), dom);
// 如果滚动时需要锁定
if (props.lockOnScroll) {
if (this.lockOnScroll) {
// 将原来的`bodyOverflow`存起来
if (!this.bodyOverflow) {
this.bodyOverflow = document.body.style.overflow;
+1 -1
View File
@@ -79,7 +79,7 @@ const PopupManager = {
const modalDom = getModal();
addClass(modalDom, 'z-modal');
addClass(modalDom, 'zan-modal');
if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
dom.parentNode.appendChild(modalDom);