docs(usage-sfc): Upgrade the use case of usage-sfc to Composition API (#1132)

This commit is contained in:
songjianet 2021-09-08 14:32:46 +08:00 committed by GitHub
parent fa0ce8e98d
commit 1e2ca008ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -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>
```

View File

@ -16,13 +16,14 @@
</template>
<script>
import { defineComponent } from 'vue'
import { NButton } from 'naive-ui'
export default {
export default defineComponent({
components: {
NButton
}
}
})
</script>
```