react-fit:在屏幕上放置一个弹出框元素

时间:2021-05-02 04:59:00
【文件属性】:
文件名称:react-fit:在屏幕上放置一个弹出框元素
文件大小:745KB
文件格式:ZIP
更新时间:2021-05-02 04:59:00
react position collision collision-detection JavaScript React拟合 使子对象相对于其父对象对齐的组件,同时知道它可能适合和可能不适合的位置。 tl; dr 通过执行npm install react-fit或yarn add react-fit 。 通过import Fit from 'react-fit'添加import Fit from 'react-fit' 。 用它做东西! const ElementWithChild = ( ) => ( < Parent> < Fit> < PopoverChild> < / Fit > < / Parent > ) ; 入门 兼容性 您的项目需要使用React 15.5或更高版本。 React 16.5.x中的错误导致React-Fit在上崩溃。 尽管React-Fit将继续在React 16.5.x上运行,但强烈建议您升级到^ 16.6.
【文件预览】:
react-fit-master
----.yarnrc.yml(66B)
----.babelrc(261B)
----package.json(2KB)
----.eslintrc.json(351B)
----.github()
--------FUNDING.yml(18B)
--------workflows()
----test()
--------ElementWithPopover.jsx(2KB)
--------.babelrc(175B)
--------package.json(1KB)
--------index.jsx(204B)
--------index.html(257B)
--------Test.less(1KB)
--------.gitignore(18B)
--------webpack.config.js(2KB)
--------yarn.lock(286KB)
--------Test.jsx(3KB)
----LICENSE(1KB)
----src()
--------shared()
--------Fit.jsx(8KB)
----.gitignore(135B)
----.yarn()
--------releases()
----README.md(5KB)
----yarn.lock(185KB)
----.eslintignore(27B)
----.gitattributes(73B)

网友评论