mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-01 13:36:55 +08:00
doc(confirm): new api
This commit is contained in:
parent
f37375baf8
commit
ebb1dd817b
@ -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.",
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user