This commit is contained in:
07akioni 2020-11-17 02:19:54 +08:00
parent cf0881fb34
commit 6c7715ef16

View File

@ -1,25 +1,27 @@
# Custom Action
```html
<n-popconfirm v-model:show="show">
<template v-slot:trigger>
<n-button>Quote</n-button>
</template>
For example, if I were to write about elephants, Id have had no idea what words to use.
<template v-slot:action>
<n-button
size="small"
@click="show = false"
>
Maybe
</n-button>
</template>
</n-popconfirm>
<n-popconfirm positive-text="Oops!">
<template v-slot:trigger>
<n-button>Quote</n-button>
</template>
For example, if I were to write about elephants, Id have had no idea what words to use.
</n-popconfirm>
<n-space>
<n-popconfirm v-model:show="show">
<template v-slot:trigger>
<n-button>Quote</n-button>
</template>
For example, if I were to write about elephants, Id have had no idea what words to use.
<template v-slot:action>
<n-button
size="small"
@click="show = false"
>
Maybe
</n-button>
</template>
</n-popconfirm>
<n-popconfirm positive-text="Oops!">
<template v-slot:trigger>
<n-button>Quote</n-button>
</template>
For example, if I were to write about elephants, Id have had no idea what words to use.
</n-popconfirm>
</n-space>
```
```js