1.0.4 • Published 1 year ago

@happyboot/ui v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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>

License

MIT

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago