Code Monkey home page Code Monkey logo

Comments (2)

feichao93 avatar feichao93 commented on May 3, 2024

不是很明白你说的 “虚拟table 宽度自适应” 具体指的是什么。

如果说是 “table 宽度自适应,及表格宽度为外层 div 宽度的 100%” 的话,那么目前表格已经支持了。如果说是 “横向虚拟滚动开启的情况下,表格列宽由该列渲染的内容宽度来决定” 的话,那么目前是做不到的。

“表格行高自适应” 和 “表格列宽自适应” 之间 两者只能选择器中一个,目前 ali-react-table 只支持 行高自适应。

像 react-virtualized 中的 Grid 组件(支持双向虚拟滚动的那个组件), 也是不能同时支持 行高自适应 和 列宽自适应的。

from ali-react-table.

0408jiahuicao avatar 0408jiahuicao commented on May 3, 2024

不是很明白你说的 “虚拟table 宽度自适应” 具体指的是什么。

如果说是 “table 宽度自适应,及表格宽度为外层 div 宽度的 100%” 的话,那么目前表格已经支持了。如果说是 “横向虚拟滚动开启的情况下,表格列宽由该列渲染的内容宽度来决定” 的话,那么目前是做不到的。

“表格行高自适应” 和 “表格列宽自适应” 之间 两者只能选择器中一个,目前 ali-react-table 只支持 行高自适应。

像 react-virtualized 中的 Grid 组件(支持双向虚拟滚动的那个组件), 也是不能同时支持 行高自适应 和 列宽自适应的。

是的 看了一下现在的很多支持虚拟滚动的库 基本上都是放弃了 表格列宽自适应

from ali-react-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.