Giter VIP home page Giter VIP logo

Comments (9)

wubostc avatar wubostc commented on August 17, 2024 1

@Nokecy 我刚刚又提交了,你尝试一下,应该是不再需要height了

from virtualized-table-for-antd.

wubostc avatar wubostc commented on August 17, 2024

高度计算是通过指定数值来做的,calc的话该怎么弄,,
查了下度娘“calc(100vh - 10px) 表示整个浏览器窗口高度减去10px的大小”
我能否这样计算?
y:浏览器窗口高度
height = y - 10

from virtualized-table-for-antd.

wubostc avatar wubostc commented on August 17, 2024

又看了下antd Table文档,scroll支持情况是{ x: number | true, y: number },并不支持css的那种方法

from virtualized-table-for-antd.

wubostc avatar wubostc commented on August 17, 2024

又去codepen调式了一下,发现居然又支持那种写法,,,

from virtualized-table-for-antd.

Nokecy avatar Nokecy commented on August 17, 2024

antd 文档应该没更新 ,可以使用calc(100vh - 10px)

from virtualized-table-for-antd.

Nokecy avatar Nokecy commented on August 17, 2024

可不可以在VT 的componentDidMount 中获取DOM的实际高度~~

from virtualized-table-for-antd.

wubostc avatar wubostc commented on August 17, 2024

显然
不行

from virtualized-table-for-antd.

Nokecy avatar Nokecy commented on August 17, 2024

666

from virtualized-table-for-antd.

Nokecy avatar Nokecy commented on August 17, 2024

可以 完美 @wubostc

from virtualized-table-for-antd.

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.