mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +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>
31 lines
525 B
Markdown
31 lines
525 B
Markdown
# Basic
|
|
```html
|
|
<n-row>
|
|
<n-col :span="12">
|
|
<n-statistic label="Statistic" :value="99">
|
|
<template v-slot:prefix>
|
|
<n-icon>
|
|
<md-save/>
|
|
</n-icon>
|
|
</template>
|
|
<template v-slot:suffix>
|
|
/ 100
|
|
</template>
|
|
</n-statistic>
|
|
</n-col>
|
|
<n-col :span="12">
|
|
<n-statistic label="Active Users" value="1,234,123">
|
|
</n-statistic>
|
|
</n-col>
|
|
</n-row>
|
|
```
|
|
|
|
```js
|
|
import mdSave from 'naive-ui/lib/icons/md-save.vue'
|
|
|
|
export default {
|
|
components: {
|
|
mdSave
|
|
}
|
|
}
|
|
``` |