All Projects → wubostc → virtualized-table-for-antd

wubostc / virtualized-table-for-antd

Licence: MIT license
the virtualized table component for ant design

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to virtualized-table-for-antd

umi-dva-typescript-mock
基于umi + dva + typescript + mock + antd的react框架,内置PWA
Stars: ✭ 17 (-91.19%)
Mutual labels:  antd, antdesign
antd-custom-theme-generator
A simple way to create an antd theme css file with zero configuration.
Stars: ✭ 20 (-89.64%)
Mutual labels:  antd, antdesign
simpleCMS
simpleCMS是一款开源cms系统, 主要为个人/团队快速开发博客或者知识共享平台, 类似于hexo, worldpress, 但是他们往往需要复杂的搭建过程, 我们将复杂度降到最低, 并且有详细的部署教程, 你只需要有一台服务器, 就能轻松拥有一个属于你的博客平台.
Stars: ✭ 74 (-61.66%)
Mutual labels:  antd, antdesign
vuejs-loadmore
A pull-down refresh and pull-up loadmore scroll component for Vue.js. Vue上拉加载下拉刷新组件
Stars: ✭ 62 (-67.88%)
Mutual labels:  infinite-scroll
picker
📅 All Date Pickers you need.
Stars: ✭ 185 (-4.15%)
Mutual labels:  antd
angular-search-experience
Algolia + Angular = 🔥🔥🔥
Stars: ✭ 166 (-13.99%)
Mutual labels:  infinite-scroll
react-infinite-scroller
⏬ Infinite scroll component for React in ES6
Stars: ✭ 3,064 (+1487.56%)
Mutual labels:  infinite-scroll
Demeter
Nodejs/ES6/Rxjs/MySQL/Express/Webpack/React/Redux/AntD
Stars: ✭ 43 (-77.72%)
Mutual labels:  antd
api-server
OpenSCRM是一套基于Go和React的高质量企业微信私域流量管理系统 。遵守Apache2.0协议,全网唯一免费商用。企业微信、私域流量、SCRM。
Stars: ✭ 981 (+408.29%)
Mutual labels:  antd
infinite-carousel-flutter
Carousel in flutter. Supports infinite looping and gives control over anchor and velocity.
Stars: ✭ 24 (-87.56%)
Mutual labels:  infinite-scroll
react-antd-admin
react-antd-admin 是一个后台集成解决方案,它基于 react 和 antd; 内置了动态路由,标签页缓存,权限验证、切换功能
Stars: ✭ 42 (-78.24%)
Mutual labels:  antd
blog-admin
🍭 react + antd
Stars: ✭ 27 (-86.01%)
Mutual labels:  antdesign
antd-prompt
An ant.design helper that auto create a Modal with an optional message prompting the user to input some text.
Stars: ✭ 13 (-93.26%)
Mutual labels:  antd
react-project-tpl
react project template
Stars: ✭ 32 (-83.42%)
Mutual labels:  antd
hotlist
今日热榜(前端)
Stars: ✭ 51 (-73.58%)
Mutual labels:  antd
Min-Admin
基于dva框架+antd的React后台模板
Stars: ✭ 17 (-91.19%)
Mutual labels:  antd
vue-data-loading
Another component for infinite scroll and pull down/up to load data.
Stars: ✭ 63 (-67.36%)
Mutual labels:  infinite-scroll
dva-graphql-lokka-user-dashboard
A Study Project Related to Dva.js, GraphQL, Graph.cool, Lokka
Stars: ✭ 20 (-89.64%)
Mutual labels:  antd
tiny-qiniu-request
tiny-qiniu for rc-upload or antd upload component `customRequest` property
Stars: ✭ 13 (-93.26%)
Mutual labels:  antd
scrollbox
A lightweight jQuery custom scrollbar plugin, that triggers event when reached the defined point.
Stars: ✭ 15 (-92.23%)
Mutual labels:  infinite-scroll

The virtualized table component for AntD4,fast, restorable and smallest size for gzip!

npm dm license

NPM

  • Install

    npm i --save virtualizedtableforantd4
  • the opts of useVT(examples)

    interface VtOpts {
      id?: number | string;
      /**
       * @default 5
       */
      overscanRowCount?: number;
    
      /**
       * this only needs the scroll.y
       */
      scroll: {
          y: number | string;
      };
    
      /**
       * wheel event(only works on native events).
       */
      onScroll?: ({ left, top, isEnd, }:
        { top: number; left: number; isEnd: boolean }) => void;
    
      initTop?: number;
    
      /**
       * @default false
       */
      debug?: boolean;
    
    
      // pass -1 means scroll to the bottom of the table
      ref?: React.MutableRefObject<{
        scrollTo: (y: number) => void;
        scrollToIndex: (idx: number) => void;
      }>
    }
  • Quick start

    You need to change your style like following if your Table.size is not default.

    // size={'small'}
    ant-table [vt] > table > .ant-table-tbody > tr > td {
        padding: 8px;
    }
    import React from 'react';
    import { Table } from 'antd';
    import { useVT } from 'virtualizedtableforantd4';
    
    const [ vt, set_components ] = useVT(() => ({ scroll: { y: 600 } }), []);
    
    <Table
      scroll={{ y: 600 }} // It's important for using VT!!! DO NOT FORGET!!!
      components={vt}
      columns={/*your columns*/}
      dataSource={/*your data*/}
    />
  • Scroll to

  • Restoring last state

  • Editable Table

  • Drag soring

  • expanded rows & tree-structure has been well supported!

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].