mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
docs(usage-sfc): Upgrade the use case of usage-sfc to Composition API (#1132)
This commit is contained in:
parent
fa0ce8e98d
commit
1e2ca008ff
@ -16,13 +16,14 @@ If you want to know how to import themes and locales, please see [Import on Dema
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { defineComponent } from 'vue'
|
||||
import { NButton } from 'naive-ui'
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
components: {
|
||||
NButton
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
```
|
||||
|
||||
|
@ -16,13 +16,14 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { defineComponent } from 'vue'
|
||||
import { NButton } from 'naive-ui'
|
||||
|
||||
export default {
|
||||
export default defineComponent({
|
||||
components: {
|
||||
NButton
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user