@happyboot/ui
v1.0.4
Published
<p align="center"> <img width="144px" src="https://tiger.happykit.org/assets/logo.ff50f9c9.png" /> </p>
Readme
Installation
Install with npm
npm install @happyboot-uiComponents
- HBTable 组件是基于 NDataTable 组件二次封装而来,支持 NDataTable 组件的所有配置,抽象网络请求并封装了一些常用逻辑。
Usage/Examples
HBTable
<template>
<HBTable @register="registerTable" />
</template>
<script setup>
import { HBTable,useTable } from '@happyboot/ui';
const [registerTable] = useTable({
columns: columns,
showSelectionColumn: true,
showIndexColumn: true, //
api: getList,
fetchSetting: {
pageField: 'page',
sizeField: 'pageSize',
listField: 'data.result.list',
totalField: 'data.result.pageCount',
},
showTableSetting: true,
tableSetting: { striped: true, border: false },
rowKey: (row: any) => row.id
});
</script>