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