huaker-ui
v0.21.0
Published
```zsh
Downloads
5
Readme
安装使用
pnpmihuaker-ui
main.ts
中
import { createApp } from'vue'
import'./style.css'
importAppfrom'./App.vue'
importNaiveUifrom'naive-ui'
import'huaker-ui/css'
createApp(App).use(NaiveUi).mount('#app')
table
<scriptsetuplang="ts">
import { HTable } from'huaker-ui'
consttableColumns = [
{ key:'id', title:'id' },
{ key:'name', title:'姓名' }
]
consttableData = [
{ id:1, name:'zs' },
{ id:2, name:'ls' }
]
</script>
<template>
<n-message-provider>
<h-table :columns="tableColumns" :data="tableData"></h-table>
</n-message-provider>
</template>