mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
6453b90043
* feat(vite-doc): add vite md plugin * fixed(site-vite): merge conflicts * fix(vite-doc): some bug in vue rerender,use key to advoid * feat(vite-doc): finished doc * fix(vite-doc): import path should be same as normal * chore(vite-doc): remove useless code Co-authored-by: Lecong Zhang <50313260+tskirby@users.noreply.github.com>
25 lines
358 B
Markdown
25 lines
358 B
Markdown
# Text Button
|
|
Somebody also calls it `link` button.
|
|
```html
|
|
<n-button
|
|
text
|
|
size="large"
|
|
>
|
|
<template v-slot:icon>
|
|
<n-icon>
|
|
<train-icon />
|
|
</n-icon>
|
|
</template>
|
|
The Engine is Still Spiting Smoke
|
|
</n-button>
|
|
```
|
|
```js
|
|
import TrainIcon from 'naive-ui/lib/icons/train-outline.vue'
|
|
|
|
export default {
|
|
components: {
|
|
TrainIcon
|
|
}
|
|
}
|
|
```
|