RakuyoKit / JSONPreview

🎨 A view that previews JSON in highlighted form, it also provides the ability to format and collapse nodes.
MIT License
65 stars 13 forks source link

长 JSON 默认展开很长,还需要下滑查找,加一个配置项可配置默认收起状态会比较方便 #11

Closed Andy1994 closed 6 months ago

rakuyoMo commented 6 months ago

This is possible, I will try to implement it this afternoon.

rakuyoMo commented 6 months ago

@Andy1994

Now you can try the feature in the master branch. The JSONPreview.preview method has a new initialState parameter, and passing in .folded will cause all slices to default to the folded state.

Next Monday (01/08/2024) I will officially release version 2.1.0, which will carry this feature.

Andy1994 commented 6 months ago

感谢,已验证可用

rakuyoMo commented 6 months ago

2.1.0 has been officially released.