JiaQi
a573dde6ed
fix(Anchor): onChange method is not updated ( #41934 )
2 years ago
acyza
16f0b576a7
fix(anchor): ink correct switch direction ( #41317 )
* fix(anchor): ink correct switch direction
* chore(anchor): fix test error
* chore(anchor): fix test error
* chore: test
* chore: test
* chore: test
* chore: update
2 years ago
Lioness100
fd0d8b6031
docs: fix typos ( #40791 )
* docs: fix typos
* Update index.zh-CN.md
* test: update snapshot
* docs: fix demo ref
* chore: force trigger ci
* chore: force trigger ci
* chore: bump dumi ver
---------
Co-authored-by: Amumu <yoyo837@hotmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2 years ago
René Wang
a2980e3d57
lint: remove useless `ts-ignore` comment ( #40289 )
2 years ago
Yuki Zhang
4eff22497d
feat: Anchor horizontal ( #39372 )
* feat: AnchorInk
* feat: update
* feat: update ink
* test: add test
* feat: handle with nested link
* feat: improve
* fix: lint
* feat: get direction from context in AnchorLink
* docs: update demo
* test: update snapshot
* test: update snapshot
* test: update snapshot
* test: update test cases
* test: update snapshot
* test: update snapshots
* test: update snapshots
* test: update test cases
* test: update test cases
* docs: update
* test: improve
* docs: update demo
* doc: update demos
* doc: update demos again
* feat: use scroll-into-view-if-needed
* fix: hide scrollbar
* docs: update demos
* fix: active transition for horizontal anchor
* chore: fix terser (#39617 )
* chore: fix terser
* chore: clean up
* test: update snapshot
* feat: improve code style
* feat: anchor ink improvement
* feat: improve code style
* fix: lint issue
* test: update snapshots
* docs: simplified the demo
* feat: Merge the AnchorInk component back into the Anchor component
* feat: Adjust DOM order
* test: update snapshots
* docs: Improve the document
* feat: simplify css classnames
* test: update snapshots
Co-authored-by: 二货爱吃白萝卜 <smith3816@gmail.com>
2 years ago
Yuki Zhang
51da7e3dc1
feat: Anchor component changed to data-driven ( #39034 )
* feat: Anchor component changed to data-driven
* test: add test cases for data driven items
* fix: type
* chore: mark deprecated for anchor children prop
* docs: add items description
* test: update snapshot
* docs: demos changed to data-driven
* docs: Keep the old jsx syntax demo for debugging
2 years ago
Rex Zeng
b0fe69c18f
refactor(Anchor): rewrite CC => FC ( #38265 )
* fix: fix
* fix: fix
* fix: del forwardRef
* fix: add depList
* test(anchor): rewrite test to match the latest fc implementation
* fix: eslint error fix
* style: type optimization
* style: type optimization
* Update components/anchor/Anchor.tsx
Co-authored-by: afc163 <afc163@gmail.com>
* Update Anchor.tsx
* Update components/anchor/Anchor.tsx
Co-authored-by: afc163 <afc163@gmail.com>
* fix: rename
* fix: fix
* fix: fix
* Update components/anchor/style/index.less
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2 years ago
lijianan
b3a37b7ca9
refactor: Anchor.Link with FC ( #37957 )
* fix: fix
* fix: fix
* fix: revert
* fix: fix
* test: fix test case
* test: fix
* test: fix
* fix: fix
* fix: fix
2 years ago
hms181231
c04bdd0928
test: Update Anchor test case sleep -> useFakeTimers ( #37955 )
2 years ago
二货机器人
069e44bcc3
chore: merge master
2 years ago
afc163
a1d86cbd09
fix: Anchor current not changed ( #37644 )
close #37627
2 years ago
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2 years ago
linqiqi077
44b9ab7e40
test: migrate part of anchor tests ( #35371 )
3 years ago
Long Hao (龙濠)
eb7f8c7ef1
refactor: change anchor to fc for the cssinjs prepare ( #35073 )
* refactor: change anchor to fc for the cssinjs prepare
* fix: fix anchor test
3 years ago
afc163
30ac6bd4e4
test: wrap React.StrictMode for test cases ( #35026 )
* test: React StrictMode
* test: fix Spin test
* chore: wrapper enzyme
* test: fix setState
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: disable part of it
* test: fix test & add placeholder
* test: Use orign enzyme mount
Co-authored-by: zombiej <smith3816@gmail.com>
3 years ago
afc163
0edd112d5b
feat: Anchor supports `getCurrentAnchor(activeLink)` ( #34799 )
close #34784
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
偏右
637aa09bc5
chore: ✅ fix some eslint problems ( #24836 )
* 💄 fix lint
* 💄 fix lint
5 years ago
偏右
633d064640
✅ increase code cov ( #23880 )
5 years ago
Eric Wang
815baee4d9
chore: Transform anchor test to typescript ( #23499 )
* chore: Transform anchor test to typescript
* Separate dom
* use hash
* .
* chagnelog
* chore: Transform anchor test to typescript
* Separate dom
* use hash
* .
* rebase
5 years ago