mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
dialog component
This commit is contained in:
@@ -5,8 +5,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleAlertClick() {
|
handleAlertClick() {
|
||||||
Dialog.alert({
|
Dialog.alert({
|
||||||
title: 'alert',
|
title: 'alert标题',
|
||||||
message: 'alert message'
|
message: '弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。'
|
||||||
}).then((action) => {
|
}).then((action) => {
|
||||||
console.log(action);
|
console.log(action);
|
||||||
});
|
});
|
||||||
@@ -14,8 +14,8 @@ export default {
|
|||||||
|
|
||||||
handleConfirmClick() {
|
handleConfirmClick() {
|
||||||
Dialog.confirm({
|
Dialog.confirm({
|
||||||
title: 'confirm',
|
title: 'confirm标题',
|
||||||
message: 'confirm message'
|
message: '弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。'
|
||||||
}).then((action) => {
|
}).then((action) => {
|
||||||
console.log(action);
|
console.log(action);
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
|
@@ -78,9 +78,8 @@ export default {
|
|||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
PopupManager.closeModal(this._popupId);
|
|
||||||
this.opened = false;
|
this.opened = false;
|
||||||
this.closing = false;
|
this.doAfterClose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -43,9 +43,8 @@
|
|||||||
@descendent message {
|
@descendent message {
|
||||||
color: #999;
|
color: #999;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-align: center;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 36px;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@descendent footer {
|
@descendent footer {
|
||||||
|
@@ -174,9 +174,13 @@ export default {
|
|||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
PopupManager.closeModal(this._popupId);
|
|
||||||
this.opened = false;
|
this.opened = false;
|
||||||
|
this.doAfterClose();
|
||||||
|
},
|
||||||
|
|
||||||
|
doAfterClose() {
|
||||||
this.closing = false;
|
this.closing = false;
|
||||||
|
PopupManager.closeModal(this._popupId);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user