npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bk-table-next

v0.0.1-beta.12

Published

bkui-table-next

Downloads

440

Readme

基于VXE-Table进行封装的Table组件

Install

npm i bk-table-next
import BkTableNext, { BkColumnNext, BkColgroupNext, BkTableGrid, BkColumnMap, BkTableMap, setTableGlobalConfig } from 'bk-table-next';
import 'bk-table-next/dist/dist.css';

组件导出说明

// 默认导出 BkTableNext
export default BkTableNext;

// 支持组合式引入
export { BkColumnNext, BkColgroupNext, BkTableGrid, BkColumnMap, BkTableMap, setTableGlobalConfig };

导出组件说明

| 组件 | 说明 | | --- | ----------- | | BkTableNext | Table 组件,区别于BkTableGrid组件, Column配置需要结合BkColumnNext使用,不支持props.columns配置 | | BkColumnNext | Table Column组件, 配合BkTableNext使用 | | BkColgroupNext | 配合BkColumnNext配置分组表头 | | BkTableGrid | 区别于BkTableNext,支持全属性式的props配置,支持props.columns配置 | | BkColumnMap | 用于bkui-vue/table-column组件的快速接入,使用BkColumnMap可快速替换bkui-vue/table-column组件,相关映射已经内置 | | BkTableMap | 用于bkui-vue/table组件的快速接入,使用BkTableMap可快速替换bkui-vue/table组件,相关映射已经内置 |

使用说明

Vxe-table的配置在这里都可以直接使用

  • BkTableNext 对应 Table basic table,可以直接使用官网案例,替换组件名为 BkTableNext 即可
  • BkColumnNext 对应 Table basic table column,可以直接使用官网案例,替换组件名为 BkColumnNext 即可
  • BkColgroupNext 对应 Table basic table column,可以直接使用官网案例,替换组件名为 BkColgroupNext 即可
  • BkTableGrid 对应 Grid configuration table,可以直接使用官网案例,替换组件名为 BkTableGrid 即可

区别

  • 分页组件:BkTableNextBkTableGrid 内置分页配置项 props.pagination,继承 bkui-vue/table配置项,分页组件也是使用的 bkui-vue/pagination,Vxe-table自带的分页功能任然保留,但是要使用的话需要配置vxe-ui-pc组件库;
  • 因为没有内置 vxe-ui-pc组件库,组件中依赖 vxe-ui-pc 相关的功能会有问题,待处理...
  • 行拖拽:内置行拖拽功能,继承实现 bkui-vue/table 的配置项 props.rowDragable