afc163
e021147bb8
fix: Anchor should trigger onChange when have getCurrentAnchor ( #30601 )
...
* fix: Anchor should trigger onChange when have getCurrentAnchor
close #30584
* test: add test case
2021-05-20 21:36:53 +08:00
afc163
99c2c2ff0b
refactor: use optional chaining instead of if ( #29368 )
...
* refactor: use optional chaining instead of if
* revert some code
2021-02-19 18:26:53 +08:00
Hossein Mohammadi
4b1000fb7f
fix: React 17 findDOMNode is deprecated ( #27755 )
...
* fix: use ref instead of findDOMNode
* chore: use fillRef in setAndForwardRef
* chore: use rc-util fillRef instead
* chore: use support ref
* test: removed empty class
* chore: use composeRef instead of setAndForwardRef
2020-11-16 16:46:46 +08:00
偏右
481fd209e2
chore: 🆙 upgrade typescript-eslint ( #26600 )
...
* chore: 🆙 upgrade typescript-eslint
* fix some lint
* fix: some eslint errors
* Update package.json
* chore: 🆙 upgrade typescript-eslint
* fix some lint
* fix: some eslint errors
* Update package.json
* fix no use before define
* Update package.json
* fix lint
Co-authored-by: yoyo837 <yoyo837@hotmail.com>
Co-authored-by: Tom Xu <ycxzhkx@gmail.com>
2020-09-16 11:43:55 +08:00
Alex
bf45c4c1b0
style: 💄 className prop ordering #26594 ( #26602 )
...
close #26594
2020-09-06 13:07:39 +08:00
偏右
633d064640
✅ increase code cov ( #23880 )
2020-05-05 19:33:33 +08:00
二货机器人
bb1f157645
feat: ConfigProvider support getTargetContainer ( #23751 )
...
* add getTargetContainer
* support affix
* test case
* anchor use new context api
* Anchor support getTargetContainer
* doc it
* update patch
2020-04-29 20:22:16 +08:00
吴泽康
4c9d03874b
fix: anchor regexp ( #23577 ) ( #23595 )
...
* fix: anchor regexp (#23577 )
* test: fix anchor complete href scrollTo test
* test: anchor sharp matcher regexp
* test: Anchor render perfectly for complete href - hash router
2020-04-26 16:11:37 +08:00
xrkffgg
934fe16690
style: add anchor rtl ( #22875 )
2020-04-07 10:55:36 +08:00
骗你是小猫咪
b93d10d40b
feat(Anchor): add onChange prop ( #18715 )
...
* feat(Anchor): add onChange prop
* test(Anchor): add onChange prop
* update snapshots
2019-09-06 19:54:13 +08:00
shao
6729ce30fa
test: fix lint
2019-08-16 17:59:31 +08:00
shao
ce5375f95c
test: remove unused var
2019-08-16 17:59:29 +08:00
shaodahong
32621cf41a
feat(Anchor): fix getCurrentAnchor offset
2019-08-16 17:58:45 +08:00
shao
a266f45395
feat(Anchor): remove scrollTo option
2019-08-16 17:58:40 +08:00
shao
ccef30885a
perf: optimization BackTop and Anchor components scrollTo func
2019-08-16 17:58:34 +08:00
shao
a103d21062
feat(Anchor): add targetOffset prop test case
2019-08-16 17:57:41 +08:00
shao
b3537d5c38
docs(Anchor): fix targetOffset prop doc of review change
2019-08-16 17:56:51 +08:00
shao
9803ebab34
feat(Anchor): add targetOffset prop
2019-08-16 17:52:41 +08:00
偏右
4e26107a4e
Merge pull request #17823 from shaodahong/feat-anchor-getCurrentAnchor
...
feat(Anchor): add getCurrentAnchor prop
2019-08-16 15:00:44 +08:00
orzyyyy
63b33d4020
fix: unexpected changes of snapshots
2019-08-06 15:36:12 +08:00
shao
23c4fa8053
feat(Anchor): add getCurrentAnchor prop jsdoc comment
2019-07-23 19:37:32 +08:00
shao
2a7cb944e0
feat(Anchor): add getCurrentAnchor prop
2019-07-23 14:59:28 +08:00
黄斌
aa663e149d
feat: Re-bind scroll events when components change, add test cases
2019-07-16 19:19:11 +08:00
binyellow
9afe726a6f
perf: setState only when activeKey changed ( #17620 )
2019-07-13 10:43:35 +08:00
陈帅
8e11f0bdb9
merge support prettier
2018-12-07 20:02:01 +08:00
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ( #13389 )
...
Basic support prefixCls.
2018-12-05 19:12:18 +08:00
afc163
bbb45e0659
let => const
2018-11-10 00:39:58 +08:00
Wei Zhu
ee84f4ce0a
fix: some type definitions
2018-09-30 16:07:01 +08:00
mushan0x0
dd37457048
feat: Anchor onClick ( #11898 )
...
* update: 添加AntAnchor类型
* update: 完成代码逻辑
* update: 添加测试
* update: 点击锚点不记录历史
* update: 添加示例
* docs: 更新文档
* update: 更改onClick事件里的link为对象
* update: 优化代码
* update: 修改propClick为onClick
2018-08-28 20:20:46 +08:00
Vitaliy Mazurenko
a14e476eeb
Anchor component with affix=true doesn't work inside inner scrollable… ( #11688 )
...
close #11687
2018-08-10 13:37:17 +08:00
Wei Zhu
064bfaf554
Add @types/prop-types
2018-08-07 21:09:05 +08:00
偏右
a2e0e40caa
[WIP] Use raf to replace getRequestAnimationFrame ( #10614 )
...
* use raf to replace getRequestAnimationFrame
* remove isCssAnimationSupported
2018-05-22 13:01:28 +08:00
Wei Zhu
2a5479a524
Fix type errors
...
Close #9988
2018-04-11 12:01:28 +08:00
Wei Zhu
da4062f9c1
Add Anchor[getContainer] ( #9694 )
2018-03-30 15:55:54 +08:00
junjing.zhang
4bf675703d
anchor scroll supports complete href link
...
anchor scroll supports complete href link, e.g. http://www.example.com/#id , not just #id
2018-01-04 19:27:23 +08:00
afc163
8fb285fce9
Move maxHeight code into anchor, close #8606
2017-12-28 13:20:12 +08:00
Wei Zhu
c0a42480ae
Fix implicit any error for Anchor
2017-11-22 11:34:46 +08:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
2017-11-17 14:38:54 +08:00
Wei Zhu
047f62e9b4
Mark refs to private ( #7600 )
2017-09-17 15:48:44 +08:00
Wei Zhu
825a3d5e95
refactor: anchor string refs to callback ( #7483 )
2017-09-08 09:37:20 +08:00
Benjy Cui
2ba3a84331
fix: getDefaultTarget only be called in browser, close : #6926
2017-07-24 09:58:56 +08:00
Benjy Cui
f2d4d0a9e4
refactor: simplify Anchor, and fix #6473
2017-07-21 11:58:12 +08:00