1.0.4 • Published 1 year ago
@happyboot/ui v1.0.4
Installation
Install with npm
npm install @happyboot-ui
Components
- 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>