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
7f89d9a7c9
refactor: use React.useContext() replace <ConfigConsumer /> ( #39793 )
* feat: use React.useContext() replace <ConfigConsumer />
* fix
* fix
* add
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
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens ( #38722 )
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
二货机器人
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
afc163
99c2c2ff0b
refactor: use optional chaining instead of if ( #29368 )
* refactor: use optional chaining instead of if
* revert some code
4 years ago
Alex
bf45c4c1b0
style: 💄 className prop ordering #26594 ( #26602 )
close #26594
4 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
偏右
8501b708ea
refactor: 📦 smaller bundlesize limit ( #20356 )
* 📦 samller bundlesize limit
* 🗑️ remove React static PropTypes
* 🗑️ remove react-lifecycles-compat
* 🗑️ remove matchMedia polyfill
* 🗑️ remove Transfer buggy lazy prop
* 🗑️ remove enquire.js dep
* 🗑️ remove Transfer lazy related code and fix ci
* 🗑️ remove used dom-closest
* ⚡ replace dom-scroll-into-view to scroll-into-view for bundle size
* ✅ fix eslint
* 🆙 upgrade browserslist
* ✅ fix test cases
* 🗑️ remove @ant-design/create-react-context
* 🆙 upgrade @ant-design/bisheng-plugin
* 🆙 upgrade rc-slider
* ✅ fix ci
* 🆙 upgrade rc-tabs and rc-mentions
* 📦 scroll-into-view -> scroll-into-view-if-needed
* remove unused devDep
* docs: 📝 update instruction about IE9/10
* 📦 reduce css bundle size by drop IE9/10 support
* 🆙 upgrade rc-upload
* 🗑️ drop unused swing motion css
* ✅ update upload snapshots
* 📦 lift css bundlesize limit to 55kb
5 years ago
愚道
d8031aa4cb
fix: Anchor.Link target should not be required
5 years ago
DiamondYuan
a5f1fc80fd
fix: Anchor.Link add add new property target ( #18335 )
* fix: Anchor.Link add add new property target
* docs: update doc of anchor
5 years ago
Zzzen
f1ee189bd2
eliminate `any` type in exported interfaces.#14044
6 years ago
zombieJ
4668bf6ddd
update code ( #14700 )
close #12749
6 years ago
ycjcl868
22a4ca8594
feat: Anchor className should pass down.
6 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
mushan0x0
dd37457048
feat: Anchor onClick ( #11898 )
* update: 添加AntAnchor类型
* update: 完成代码逻辑
* update: 添加测试
* update: 点击锚点不记录历史
* update: 添加示例
* docs: 更新文档
* update: 更改onClick事件里的link为对象
* update: 优化代码
* update: 修改propClick为onClick
6 years ago
Wei Zhu
064bfaf554
Add @types/prop-types
6 years ago
tangjinzhou
14e0cc0161
fix: anchorLink href update
6 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
Benjy Cui
f2d4d0a9e4
refactor: simplify Anchor, and fix #6473
7 years ago
邦
e7053c1b39
refactor: support noImplicitAny in Alert ( #5836 )
* refactor(alert): Enable noImplicitAny
* refactor(anchor): enable noImplicitAny #5627
* chore: coding 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
Mitchell Demler
65d62cd17c
Fix up which props are optional/required for Anchor and AnchorLink components ( #5539 )
8 years ago
陆离
c3102995b3
AnchorLink iteration bug ( #5143 )
+ close #5129
8 years ago
陆离
8eec86085b
typo stopPreventDefault -> stopPropagation ( #5093 )
* typo stopPreventDefault -> stopPropagation
* remove
8 years ago
陆离
9711c6bbf6
Anchor position with offsetTop bug ( #4817 )
+ close #4706
+ `<Anchor offset={x} />` will calculate target position correctly.
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
c94f577416
style: update code style for Anchor
8 years ago
Benjy Cui
db035aa691
style: update code style for Anchor
8 years ago
RaoHai
146f3180aa
lint fix
8 years ago
RaoHai
12c974660e
Anchor 优化
+ using `document.getElementById` instead of `document.querySelector`
+ ink will scroll to target position directly
8 years ago
afc163
850e713e7f
Improve text overflow for MenuItem and AnchorLink, close #3712
8 years ago
afc163
19be7db53f
improve anchor detail
8 years ago
陆离
45d2182137
fix some anchor bug ( #3777 )
* fix some anchor bug
* lint
8 years ago
afc163
74932b5de9
Add className and style props for Anchor
8 years ago
afc163
ec3f20936e
update anchor style
8 years ago
afc163
2df6476572
update anchor docs
8 years ago
RaoHai
0a0e14d610
Anchor Component
+ close #3557
8 years ago
RaoHai
616ecf1980
waiting for sketch
8 years ago
RaoHai
ef720db420
anchor
8 years ago