m-drawer
m-drawer copied to clipboard
React Drawer
Makes the component compatible with `preact x`
Bumps [coveralls](https://github.com/nickmerwin/node-coveralls) from 2.13.3 to 3.1.1. Release notes Sourced from coveralls's releases. Maintenance / Security updates swapped exec for execFile. Credit: Adar Zandberg from the CxSCA AppSec team at Checkmarx....
Bumps [jest](https://github.com/facebook/jest) from 18.1.0 to 27.0.6. Release notes Sourced from jest's releases. 27.0.6 Fixes [*] Publish all modules to include the build change in #11569 27.0.5 Features [@jest/fake-timers] Flush callbacks...
_Dependabot Preview will be shut down on August 3rd, 2021. In order to keep getting Dependabot updates, please merge this PR and migrate to GitHub-native Dependabot before then._ Dependabot has...
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 15.7.0 to 17.0.2. Release notes Sourced from react's releases. 17.0.2 (March 22, 2021) React DOM Remove an unused dependency to address the SharedArrayBuffer cross-origin isolation warning. (@koba04...
Bumps [rc-tools](https://github.com/react-component/rc-tools) from 6.5.7 to 9.6.1. Commits See full diff in compare view Maintainer changes This version was pushed to npm by chenshuai2144, a new releaser for rc-tools since your...
Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 15.6.2 to 16.13.0. Release notes Sourced from react-dom's releases. 16.13.0 (February 26, 2020) React Warn when a string ref is used in a manner that's not amenable...
Bumps [enzyme](https://github.com/airbnb/enzyme/tree/HEAD/packages/enzyme) from 2.9.1 to 3.11.0. Changelog Sourced from enzyme's changelog. 3.11.0 New Stuff render: handle Fiber strings and numbers (#2221) Fixes shallow: Share child context logic between shallow and...
如题,感觉在实际应用中,通常 `children` 是空的,更关心的是 `sidebar` 内容,然后在使用中,如果无 `children` 又会抛出如下的警告 ``` Warning: Failed prop type: The prop `children` is marked as required in `Drawer` ``` 所以,感觉是否把下面代码的 `isRequired` 移除掉会相对合理些?? https://github.com/react-component/m-drawer/blob/c968110b6a79190c1e04ded36dff0bec178dfdfd/src/Drawer.jsx#L25
看代码里很多收起显示的逻辑都是跟 open 相关的,包括 docked 的模式。但是不设置 open 的情况下,只是 docked 为 true 也会显示出来,不需要 open 为 true,因此不太理解这里面的关系。所以想提 pr 增强dock 这一块的交互,目前有些疑惑。想听下 owner 是怎么设计的~