mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
24 lines
360 B
JavaScript
24 lines
360 B
JavaScript
import { h, defineComponent, ref } from 'vue'
|
|
import { NButton } from 'naive-ui'
|
|
|
|
const App = defineComponent({
|
|
setup () {
|
|
return {
|
|
count: ref(0)
|
|
}
|
|
},
|
|
render () {
|
|
return [
|
|
h(
|
|
NButton,
|
|
{
|
|
onClick: () => this.count++
|
|
},
|
|
{ default: () => this.count }
|
|
)
|
|
]
|
|
}
|
|
})
|
|
|
|
export default App
|