dialog component

This commit is contained in:
cookfront
2017-02-16 15:30:50 +08:00
parent 4c3cdd433b
commit 7b0ab582d7
4 changed files with 45 additions and 6 deletions

View File

@@ -7,6 +7,8 @@ export default {
Dialog.alert({
title: 'alert',
message: 'alert message'
}).then((action) => {
console.log(action);
});
},
@@ -14,6 +16,10 @@ export default {
Dialog.confirm({
title: 'confirm',
message: 'confirm message'
}).then((action) => {
console.log(action);
}, (error) => {
console.log(error);
});
}
}