afc163
5fd4139661
Fix Affix offsetBottom not working, close #10674
7 years ago
afc163
6d8df2ac25
test: improve affix test case
7 years ago
qhxin
7404b7f36c
fix Affix/index.tsx while offsetTop === 0 and offsetBottom is numberic ( #10566 )
* Update index.tsx
Fix: if offsetTop === 0, it will get undefined, if offsetBottom is type of number, offsetMode will be { top: false, ... }
* Update index.tsx
7 years ago
afc163
37506b238f
sync placeholder node size when node is sticky by Affix, close #9536
7 years ago
afc163
8fb285fce9
Move maxHeight code into anchor, close #8606
7 years ago
afc163
31a0654ef9
Avoid affix element is higher than view port
7 years ago
Wei Zhu
d2b59938b8
Fix code style
7 years ago
Wei Zhu
b8a08f6e1d
Fix implicit any error for Affix
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
Wei Zhu
645be586f3
Run jest.useFakeTimers in beforeAll
7 years ago
afc163
54188b8e97
Reset timer in test
7 years ago
Wei Zhu
36227a10db
docs: sort api table
7 years ago
monkindey
0bc5936b23
resolve conflicted files
7 years ago
Wei Zhu
c5487ad1eb
React 16 + Enzyme 3
7 years ago
afc163
475e4ff23d
upgrade eslint-config-airbnb
7 years ago
Benjy Cui
f46a87d3e0
fix: should use fixedNode's height to reset placeholder, close : #2349
7 years ago
Wei Zhu
047f62e9b4
Mark refs to private ( #7600 )
7 years ago
Khalifa Lame
0a583afc5c
docs: update Affix English doc ( #7488 )
Fixed minor typos.
7 years ago
Wei Zhu
581ddb2b49
refactor: affix string refs to callback ( #7482 )
7 years ago
afc163
01d4acb7a9
Attach more events for Affix display
7 years ago
Benjy Cui
0e5431d21b
deps: upgrade antd-tools and code style
8 years ago
Manjit Kumar
4e055ed5d0
use PropTypes from 'prop-types' mdoule instead of React
- as React.PropTypes is being deprecated
- Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
- Solution: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
8 years ago
afc163
9414a9cbea
docs: fix target API of Affix and Badge
8 years ago
偏右
0308138974
[WIP] upgrade deps ( #5455 )
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
8 years ago
偏右
674255bd14
[WIP] upgrade deps ( #5455 )
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
8 years ago
Wei Zhu
f6b1e942e3
Jest 19 ( #5361 )
* Upgeade to jest 19
* Use jest.spyOn
8 years ago
ddcat1115
7ab95b7eae
- fix ts error ( #5145 )
- typescript upgrade to 2.2.1
8 years ago
陆离
7d982ddfd4
Calc width of `Affix` using getBoundingClientRect ( #4989 )
+ close #4986
8 years ago
乔奕轩
030127e93c
fix: Affix should not pass onChange to div ( #4982 )
8 years ago
Benjy Cui
200b88246f
docs: update docs format
8 years ago
陆离
3789e0cbbb
Affix listener bug fix ( #4756 )
* Affix listener bug fix
+ close #4755
+ close #4760
+ clearScrollEventListeners before setTargetEventListeners
+ add tests for throttle
+ append affix test case
* genMockFn -> fn()
8 years ago
陆离
340385d34d
pass style props to `Affix` ( #4715 )
+ close #4701
8 years ago
陆离
5cd111d486
recalculate width while resize ( #4676 )
+ close #4645
+ throttleByAnimationFrameDecorator as a function decorator
8 years ago
Wei Zhu
77b78a9389
docs: Unify type naming ( #4636 )
* Unify name of ReactNode type in document
* Lowser all string type name
* Lowercase all number type name
* Lowercase all boolean type name
* Unify array type
* Lowercase all object type name
* Unify mutilple types
8 years ago
Benjy Cui
3e17551b7e
site: improve build speed
8 years ago
Wei Zhu
07103b9fb6
Don't ignore test files.
8 years ago
Wei Zhu
17a0a33283
Restructure tests.
8 years ago
afc163
c7c886fda6
Improve Affix target demo code style, close #4037
8 years ago
Will Chen
6b774a1343
docs: improve docs' detail ( #4050 )
8 years ago
ddcat1115
0baef0627e
docs: 调整组件导航结构 ( #3758 )
- Layout 更名为 Grid
8 years ago
RaoHai
0a0e14d610
Anchor Component
+ close #3557
8 years ago
RaoHai
ef720db420
anchor
8 years ago
Benjy Cui
746790a44e
docs: update Affix demos
8 years ago
Benjy Cui
8268bfdd9e
refactor: udpate Affix to work with strictNullCheck
8 years ago
Benjy Cui
61910bc2cb
fix: SSR for Affix and BackTop, close : #3283
8 years ago
Benjy Cui
9685d06f45
fix: should test if window exist, close : #3216
8 years ago
Benjy Cui
bd7e9f00c0
style: update code style
8 years ago
Benjy Cui
3f67fd3f9f
docs: update docs details
8 years ago
feng zhi hao
cad2d19be2
fix: complete loss declaration ( #3068 )
* complete loss declaration
* fix error in ts-lint
* fix Icon name error
8 years ago
Benjy Cui
59093a6586
fix: should pass prefixCls correctly
8 years ago