thinkasany
bbfaa9a9bb
fix: Remove the default value of the empty string ( #43481 )
1 year ago
muxin
a4f4808e2f
feat: config-provider support descriptions className and style properties ( #43189 )
1 year ago
Danial Soheili
4af6a526e2
feat(Anchor): allow replacing in anchor ( #43006 )
* 📦 ADD: replace prop to Anchor
* 📖 DOC: add demo
* 🧪 TEST: snapshots
* Update components/anchor/index.en-US.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
* Update components/anchor/index.en-US.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
* Update components/anchor/index.zh-CN.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
* Update components/anchor/index.zh-CN.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
* 🧪 TEST: Anchor replace
* 🧪 TEST: Anchor with href
* 🗑 REMOVE: unnecessary href default value
* Update components/anchor/demo/replace.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
* Update components/anchor/demo/replace.md
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
---------
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
1 year ago
lijianan
ac5a06027e
revert: "chore: unified import method ( #42149 )" ( #42180 )
This reverts commit ea8ed28209
.
2 years ago
lijianan
ea8ed28209
chore: unified import method ( #42149 )
* chore: unified import method
* fix lint
2 years ago
Simon He
901957cf02
perf(anchor): reduce unnecessary calculations ( #42018 )
2 years ago
JiaQi
a573dde6ed
fix(Anchor): onChange method is not updated ( #41934 )
2 years ago
Amumu
ec33f75bc0
chore: code style improve ( #41335 )
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
zqran
98939365dd
fix(Anchor): fix highlighting failure when dynamically updating items ( #40743 )
* fix(Anchor): fix highlighting failure when dynamically updating items
* fix: improve test coverage
* refactor(Anchor): use `useEvent` instead
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
二货爱吃白萝卜
1fc374495f
chore: patch for missing rootClassName ( #40217 )
* chore: init test
* test: rootClassName inject
* test: part of test
* chore: patch qrcode rootCls
* chore: part rootClassName
* chore: part rootClassName
* test: more test
* test: more test
* test: more test
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* test: more test
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: part rootClassName
* chore: fix lint
* chore: fix lint
* chore: ignore part of lint
* test: update snapshot
* test: fix test case
* chore: fix node test
* chore: adjust render logic
* fix: test
* test: update snapshot
* test: update
* refactor
* chore: fix require module logic
2 years ago
lijianan
8501adbd84
fix: add displayName ( #40092 )
* fix: add displayName
* rerun ci
* rerun ci
2 years ago
lijianan
6660e53863
chore: remove rc-util/addEventListener ( #39923 )
* chore: remove rc-utils/addEventListener
* fix
* fix
2 years ago
lijianan
a80b39d34d
chore: remove rc-util/addEventListener ( #39923 )
* chore: remove rc-utils/addEventListener
* fix
* fix
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
lijianan
a59058f0b2
type: optimization ( #39305 )
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
MadCcc
de555912c9
feat: anchor ink ball style ( #38616 )
* feat: anchor ink ball style
* chore: code clean
* chore: code clean
* chore: code clean
* chore: update snapshot
* chore: change cover
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
Zheeeng
dcac4f66a4
fix: signatures for Upload ( #37861 )
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
Tom Xu
1719748a29
chore: eslint add consistent-type-imports ( #35419 )
* chore: eslint add consistent-type-imports
* fix avatar
* Update Item.tsx
3 years ago
Long Hao (龙濠)
32d0067d55
refactor: Anchor cssinjs ( #35139 )
* refactor: anchor cssinjs
* fix: padding use logical css
* fix: link padding wrong
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
二货机器人
5b8e4e51e9
chore: Compatible for @types/react@18 ( #34937 )
* chore: bump types def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: part ts def
* chore: free --legacy-peer-deps
* chore: ignore peer
* chore: fix ts logic
* chore: use fork docsearch
* chore: fix demo ts
3 years ago
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