Wei Zhu
064bfaf554
Add @types/prop-types
6 years ago
Karol Majewski
1479726932
Use exact type for Breadcrumb.Item ( #10372 )
Using "any" breaks the build for TSLint users having the "no-unsafe-any" rule enabled.
See https://palantir.github.io/tslint/rules/no-unsafe-any/
7 years ago
Wei Zhu
de340a83ba
Fix implicit any error for Breadcrumb
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
Benjy Cui
119d498935
chore: replace http with https, close : #6893
7 years ago
Benjy Cui
0e5431d21b
deps: upgrade antd-tools and code 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
偏右
0308138974
[WIP] upgrade deps ( #5455 )
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
8 years ago
afc163
4f1811a3cc
itemRender do not rely on route.breadcrumbName
8 years ago
偏右
674255bd14
[WIP] upgrade deps ( #5455 )
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
8 years ago
afc163
ac1c7f312b
itemRender do not rely on route.breadcrumbName
8 years ago
Robert Wilkinson
910199613d
Update Breadcrumb.tsx ( #5174 )
spelling in comment
8 years ago
afc163
9c6a6d6175
Fix Breadcrumb falsy children, close #5015
8 years ago
Wei Zhu
85086f14b6
Using a special static property for type detecting ( #4673 )
Related issue: #4655
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
paranoidjk
4d3f574d05
fix: typo; caused by #4435
8 years ago
kun sam
b6217e62df
add warning when using Breadcrumb without its Item ( #4435 )
* add warning when using Breadcrumb without its Item
fix issue ' Warning: Unknown prop `separator` on <div> tag. When I using Breadcrumb #4403'
ps: 我是个前端beginner, - ( ゜- ゜)つロ, 这是我第一个PR welcome, 如果写错或者还有更好的写法请大神指正。thanks
* remove compatible and use type as condition
按照 @benjycui 的意见去掉了兼容项,并使用type判断
8 years ago
偏右
0062867274
Feature 2.6 ( #4429 )
* new Layout Component (#4087 )
* change Anchor type
* new Layout
* Component update && add snap
* Revert "new Layout Component" (#4131 )
* add Layout (#4169 )
* add Layout
* update
* fix snapshot
* Improve layout component
1. update demo code
2. drop `position` of Sider
3. improve demo style
8 years ago
Benjy Cui
c4d8c4770c
Add upgrade warning ( #4028 )
* chore: add upgrade warning for time related value
* chore: update warning
* chore: update demo url
8 years ago
Benjy Cui
60ecb3c628
refactor: each message should warn just once
8 years ago
Benjy Cui
4878258f6c
refactor: ref: #3490
8 years ago
yiminghe
c2d3f16dfb
update tslint
8 years ago
Albert Zheng
23dd825afd
【Please review】Fixes for supporting TypeScript 2.0.3 ( #3439 )
* Fixes for supporting TypeScript 2.0.3
* Fixes for supporting TypeScript 2.0.3. Issue is #3358
8 years ago
Benjy Cui
bd7e9f00c0
style: update code style
8 years ago
Benjy Cui
c754a3d3d4
chore: add warning for breaking changes
8 years ago
Benjy Cui
14fb2c78ba
chore: remove deprecated code ( #2920 )
* chore: remove deprecated code
* chore: add warning for Breadcrumb
8 years ago
afc163
a7874cd2a2
change `linkRender` and `nameRender` to a simpler `itemRender`, close #2871
8 years ago
afc163
730dbc72f7
Add typings
8 years ago
偏右
de359d2cf7
fix tslint problems ( #2360 )
8 years ago
yiminghe
9a0d751f94
refactor to typescript
9 years ago
afc163
3264f6b956
move paths as linkRender argument ( #2002 )
9 years ago
afc163
4b05250a6b
Fix breadcrumbName replace ( #1797 )
9 years ago
afc163
f0f8f5e687
Add route and params to nameRender ( #2002 )
9 years ago
plandem
9d4a6848c1
fixed case when linkRender must accept raw paths
9 years ago
plandem
f6da6ef38b
added nameFormatter for routes
9 years ago
afc163
8116e775ff
upgrade devDeps and fix some eslint problems
9 years ago
Benjy Cui
794783d1c2
style: enable react/no-multi-comp
9 years ago
afc163
06de76b7f4
spanRender => nameRender, ref #1304
9 years ago
afc163
921d3bce46
hidden breadcrumb href in Doc
9 years ago
Bruno Maia
03c4c73471
Parameterize span rendering
9 years ago
Bruce Mitchener
273e527201
Use static class members for propTypes and friends.
9 years ago
fanzheng.fz
99a44e9b5e
always concat paths wether there's a breadcrumbName or not
9 years ago
fanzheng.fz
60dadfb899
always concat paths wether there's a breadcrumbName or not
9 years ago
Bruce Mitchener
63c06e8652
Use ES2015 classes instead of React.createClass.
Make Breadcrumb, Checkbox, Dropdown, Steps and Timeline
components use ES2015 classes rather than React.createClass.
This includes:
* getDefaultProps method becomes a defaultProps value on the
constructor.
* propTypes becomes a value on the constructor.
9 years ago
afc163
27e879f444
support linkRender in breadcrumb, fix #1026
9 years ago
Benjy Cui
29825f20c8
style: update code style to please lint
9 years ago
afc163
271aaf29e1
fix breadcrumb link, close #968
9 years ago
afc163
d1b06abdf5
Fix Breabcrumb link with router params, and no longer need prop router
9 years ago
afc163
66b7ee81ad
fix eslint problems, eslint-config-airbnb@4.x
9 years ago
Benjy Cui
41ed04e977
style: update code style to please lint
9 years ago