simplejason

Results 62 comments of simplejason

总结: G6 和 X6 在节点位置渲染方面有差异,dagreCompound 采用 G6 节点中心为 x y 相对位置来计算,x6 节点是左下角为 x y 渲染,因此我们在 x6 中使用时需要手动复位节点位置,我在 demo 里增加了描述,可以参考看下 :) [DEMO LINK](https://codesandbox.io/p/sandbox/agitated-hofstadter-ckjw9p?file=%2Findex.ts&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clp9hjzt500073b6jr2bn3vaz%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clp9hjzt400033b6j38uvi0ng%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clp9hjzt400043b6jm38xdnh0%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clp9hjzt400063b6jfgjxwd0n%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B41.98788985903438%252C58.01211014096562%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clp9hjzt400033b6j38uvi0ng%2522%253A%257B%2522id%2522%253A%2522clp9hjzt400033b6j38uvi0ng%2522%252C%2522tabs%2522%253A%255B%255D%257D%252C%2522clp9hjzt400063b6jfgjxwd0n%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clp9hjzt400053b6jop9yzlf8%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%252C%2522path%2522%253A%2522%2522%257D%255D%252C%2522id%2522%253A%2522clp9hjzt400063b6jfgjxwd0n%2522%252C%2522activeTabId%2522%253A%2522clp9hjzt400053b6jop9yzlf8%2522%257D%252C%2522clp9hjzt400043b6jm38xdnh0%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522clp9hjzt400043b6jm38xdnh0%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D)

As [caniuse->loading](https://caniuse.com/?search=loading) and [caniuse->fetchpriority](https://caniuse.com/?search=fetchpriority) shown, these attributes have low compatibility for most browsers, I don't think we need built-in properties to support. What do you think about this @hsuanxyz ?

Thanks for your contribution, I will review this PR in next major version since ant-design has refactored `cascader` with `select`. To avoid conflicts, it's better to support `multiple select` after...

I find `margin-block-end` only works on v87+ in [caniuse](https://caniuse.com/?search=margin-block-end), I'm not sure if this is the best solution.

> @simplejason 抱歉,最近工作太忙,没有及时处理,已修复 。 目前发现左右传输未正确渲染问题、dom 结构与 ant-design 不同步问题,我之后单独提 PR 修复

![image](https://user-images.githubusercontent.com/11643113/155651368-351ae897-6a0e-4e20-a6ff-aea4964e6080.png) Please check above, maybe we can make it work well after dragend event as except :) After that, we can merge this PR.

Do you still focus on the issue? If it is, please rebase with master and make sure CI passed :)