doc(confirm): new api

This commit is contained in:
07akioni 2019-12-13 18:19:46 +08:00
parent f37375baf8
commit ebb1dd817b
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@
export default {
methods: {
handleClick(e) {
const confirmInstance = this.$NModal.success({
const confirmInstance = this.$NConfirm.success({
title: "Success",
content:
"Premium designed icons for use in web, iOS, Android, and desktop apps. Support for SVG and web font. Completely open source, MIT licensed and built by the Ionic Framework team.",

View File

@ -19,7 +19,7 @@
export default {
methods: {
handleConfirm (e) {
const confirmInstance = this.$NModal.confirm({
const confirmInstance = this.$NConfirm.open({
title: "Confirm",
content: "Are u sure to ...?",
onPositiveClick: (hide) => {
@ -33,7 +33,7 @@ export default {
});
},
handleSuccess (e) {
const confirmInstance = this.$NModal.success({
const confirmInstance = this.$NConfirm.success({
title: "Success",
content:
"Premium designed icons for use in web, iOS, Android, and desktop apps. Support for SVG and web font. Completely open source, MIT licensed and built by the Ionic Framework team.",
@ -44,7 +44,7 @@ export default {
});
},
handleError(e) {
const confirmInstance = this.$NModal.error({
const confirmInstance = this.$NConfirm.error({
title: "Error",
content: "这是一个测试?",
onPositiveClick: (hide) => {