Giter VIP home page Giter VIP logo

Comments (15)

fnoopv avatar fnoopv commented on June 11, 2024 1

而且你可以看 expandableexpandedRowRender 的签名, 返回的是 ReactNode,是啥都无所谓,表格、表单等等啥都行

from pro-components.

fnoopv avatar fnoopv commented on June 11, 2024

实测支持

from pro-components.

ytanck avatar ytanck commented on June 11, 2024

实测支持

上点demo?

from pro-components.

fnoopv avatar fnoopv commented on June 11, 2024

https://codesandbox.io/p/sandbox/qian-tao-biao-ge-forked-shrn6m

from pro-components.

ytanck avatar ytanck commented on June 11, 2024

https://codesandbox.io/p/sandbox/qian-tao-biao-ge-forked-shrn6m

大佬,可能是我没描述清楚。
外层的ProTable里已经使用了columnsState功能,
expandable里嵌套的ProTable是否还支持columnsState功能,可以和父 同时控制或者里外单独控制

from pro-components.

fnoopv avatar fnoopv commented on June 11, 2024

我给的demo里面就是啊,就是expandable嵌套的表格
image

from pro-components.

ytanck avatar ytanck commented on June 11, 2024

支持解决,谢谢

from pro-components.

ytanck avatar ytanck commented on June 11, 2024

https://codesandbox.io/p/sandbox/qian-tao-biao-ge-forked-shrn6m
现在里外层的columnsState是各自单独控制的,可以用一个变量控制吗,就不需要里外都去点击设置隐藏或显示了

from pro-components.

fnoopv avatar fnoopv commented on June 11, 2024

可以啊, valueonChange 用一个就行, 不过最好两个 table 没有相同字段, 不然两个都会同时显示或不显示某个字段

from pro-components.

ytanck avatar ytanck commented on June 11, 2024

可以啊, valueonChange 用一个就行, 不过最好两个 table 没有相同字段, 不然两个都会同时显示或不显示某个字段

现在就是需要里外同时显示或隐藏,可以出个demo吗

from pro-components.

fnoopv avatar fnoopv commented on June 11, 2024

https://codesandbox.io/p/sandbox/qian-tao-biao-ge-forked-xtv4dr

from pro-components.

ytanck avatar ytanck commented on June 11, 2024

https://codesandbox.io/p/sandbox/qian-tao-biao-ge-forked-xtv4dr

谢谢大佬,demo功能都是正常的。可我按你方法写后会一直触发onchange事件setColumnsState到账死循环

from pro-components.

ytanck avatar ytanck commented on June 11, 2024

补充下:我添加persistenceKey,persistenceType属性了的

from pro-components.

fnoopv avatar fnoopv commented on June 11, 2024

补充下:我添加persistenceKey,persistenceType属性了的

那在两个table中把这两个属性设置相同就可以了

from pro-components.

ytanck avatar ytanck commented on June 11, 2024

Thank you!

from pro-components.

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.