afc163
0edd112d5b
feat: Anchor supports `getCurrentAnchor(activeLink)` ( #34799 )
close #34784
3 years ago
Di Wu
f53e615518
fix: Invalid memoized context value in LocaleProvider ( #33723 )
* fix: Invalid memoized context value in LocaleProvider
* Add button type in test case.
* fix: Invalid memoized context value in Anchor
3 years ago
tangjinzhou
ea7c41b90a
fix: anchor add prefixCls ( #33085 )
Co-authored-by: undefined <undefined>
3 years ago
dependabot[bot]
20d5502193
chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0 ( #32824 )
* chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0
Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript ) from 18.2.1 to 19.0.0.
- [Release notes](https://github.com/airbnb/javascript/releases )
- [Commits](https://github.com/airbnb/javascript/compare/eslint-config-airbnb-v18.2.1...eslint-config-airbnb-v19.0.0 )
---
updated-dependencies:
- dependency-name: eslint-config-airbnb
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* chore: code style
* memoize-one
* add comment
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* improve useMemo deps
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
renovate[bot]
94b21979e0
chore(deps): update dependency @typescript-eslint/parser to v5 ( #32500 )
* chore(deps): update dependency @typescript-eslint/parser to v5
* fix md lint
* fix eslint errors
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
Aex
5328b4bb62
fix(anchor): targetOffset not work when contain spaces ( #31952 )
* fix(anchor): targetOffset not work when contain spaces
* fix(anchor): Modify the code style according to the lint rules
3 years ago
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
4 years ago
afc163
99c2c2ff0b
refactor: use optional chaining instead of if ( #29368 )
* refactor: use optional chaining instead of if
* revert some code
4 years ago
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
4 years ago
偏右
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>
4 years ago
Alex
bf45c4c1b0
style: 💄 className prop ordering #26594 ( #26602 )
close #26594
4 years ago
偏右
633d064640
✅ increase code cov ( #23880 )
5 years ago
二货机器人
bb1f157645
feat: ConfigProvider support getTargetContainer ( #23751 )
* add getTargetContainer
* support affix
* test case
* anchor use new context api
* Anchor support getTargetContainer
* doc it
* update patch
5 years ago
吴泽康
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
5 years ago
xrkffgg
934fe16690
style: add anchor rtl ( #22875 )
5 years ago
骗你是小猫咪
b93d10d40b
feat(Anchor): add onChange prop ( #18715 )
* feat(Anchor): add onChange prop
* test(Anchor): add onChange prop
* update snapshots
5 years ago
shao
6729ce30fa
test: fix lint
5 years ago
shao
ce5375f95c
test: remove unused var
5 years ago
shaodahong
32621cf41a
feat(Anchor): fix getCurrentAnchor offset
5 years ago
shao
a266f45395
feat(Anchor): remove scrollTo option
5 years ago
shao
ccef30885a
perf: optimization BackTop and Anchor components scrollTo func
5 years ago
shao
a103d21062
feat(Anchor): add targetOffset prop test case
5 years ago
shao
b3537d5c38
docs(Anchor): fix targetOffset prop doc of review change
5 years ago
shao
9803ebab34
feat(Anchor): add targetOffset prop
5 years ago
orzyyyy
63b33d4020
fix: unexpected changes of snapshots
5 years ago
shao
23c4fa8053
feat(Anchor): add getCurrentAnchor prop jsdoc comment
5 years ago
shao
2a7cb944e0
feat(Anchor): add getCurrentAnchor prop
5 years ago
黄斌
aa663e149d
feat: Re-bind scroll events when components change, add test cases
5 years ago
binyellow
9afe726a6f
perf: setState only when activeKey changed ( #17620 )
5 years ago
陈帅
8e11f0bdb9
merge support prettier
6 years ago
陈帅
dca9715186
support prettier
6 years ago
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ( #13389 )
Basic support prefixCls.
6 years ago
afc163
bbb45e0659
let => const
6 years ago
Wei Zhu
ee84f4ce0a
fix: some type definitions
6 years ago
mushan0x0
dd37457048
feat: Anchor onClick ( #11898 )
* update: 添加AntAnchor类型
* update: 完成代码逻辑
* update: 添加测试
* update: 点击锚点不记录历史
* update: 添加示例
* docs: 更新文档
* update: 更改onClick事件里的link为对象
* update: 优化代码
* update: 修改propClick为onClick
6 years ago
Vitaliy Mazurenko
a14e476eeb
Anchor component with affix=true doesn't work inside inner scrollable… ( #11688 )
close #11687
6 years ago
Wei Zhu
064bfaf554
Add @types/prop-types
6 years ago
偏右
a2e0e40caa
[WIP] Use raf to replace getRequestAnimationFrame ( #10614 )
* use raf to replace getRequestAnimationFrame
* remove isCssAnimationSupported
7 years ago
Wei Zhu
2a5479a524
Fix type errors
Close #9988
7 years ago
Wei Zhu
da4062f9c1
Add Anchor[getContainer] ( #9694 )
7 years ago
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
7 years ago
afc163
8fb285fce9
Move maxHeight code into anchor, close #8606
7 years ago
Wei Zhu
c0a42480ae
Fix implicit any error for Anchor
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
Wei Zhu
047f62e9b4
Mark refs to private ( #7600 )
7 years ago
Wei Zhu
825a3d5e95
refactor: anchor string refs to callback ( #7483 )
7 years ago
Benjy Cui
2ba3a84331
fix: getDefaultTarget only be called in browser, close : #6926
7 years ago
Benjy Cui
f2d4d0a9e4
refactor: simplify Anchor, and fix #6473
7 years ago