ticlo / rc-dock

Dock Layout for React Component
https://ticlo.github.io/rc-dock/examples
Apache License 2.0
684 stars 96 forks source link

Inconsistent arguments of `panel-extra` in `panelLock` #197

Open Max-ChenFei opened 1 year ago

Max-ChenFei commented 1 year ago

Hi, in the example there are two parameters (panelData, context) at line 77

https://github.com/ticlo/rc-dock/blob/bec7ffff4df6390a05d214b8a848958e79e4d234/example/panel-extra.jsx#L75-L81 but in the type definition, there is only one parameter (panelData) https://github.com/ticlo/rc-dock/blob/bec7ffff4df6390a05d214b8a848958e79e4d234/es/DockData.d.ts#L191

I am confused about this example when using rc-dock in tsx. Could you please tell me more?

Thanks.