SoraYama
2b7fce3ce2
fix(Layout): disable `hasSider` when specifically declared
In some situation `Sider` is deeply rendered in Children of `Layout`,
and if we don't want to judge whether `Layout` has sider, the attr `hasSider`
set to `false` should properly work. However `hasSider || this.state.siders.length > 0`
will ignore `hasSider` when it is `false`.
6 years ago
ngolin
cb5fe6cbf8
Fix: TypeScript <Layout> requires a `tagName` property ( #15181 )
* fix #15162
* force safe type casting
* get rid of non-null assertion
* get rid of non-null assertion
6 years ago
偏右
2bacd0614c
⚡ Use semantic tag names in Layout ( #14806 )
close #14801
6 years ago
Sam Lanning
8f830ec366
fix inconsistent component state updates
React component state updates using setState may
asynchronously update this.props and this.state, thus it is
not safe to use either of the two when calculating the new
state passed to setState, and instead the callback-based
variant should be used instead.
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
Wei Zhu
064bfaf554
Add @types/prop-types
6 years ago
Wei Zhu
518c424ca4
Improve Grid and Layout type definition
7 years ago
afc163
7aa665cc14
Add hasSider to avoid flickering in ssr
close #8937
7 years ago
Wei Zhu
dc322a6a9c
Fix implicit any error for Layout
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
afc163
ea185fe288
Fix code style
7 years ago
Yasin Uslu
b3e1192482
Detect Sider even if it's not first child of layout ( #8077 )
* Fix typo in layout
* Detect Sider even if it's not first child of layout
7 years ago
afc163
883f82172e
Fix shadowed name ts errors
7 years ago
Panjie Setiawan Wicaksono
cc71ab957e
better typings for layout components
8 years ago
Benjy Cui
0e5431d21b
deps: upgrade antd-tools and code style
8 years ago
ddcat1115
e33bb82e62
change detect type of Layout.Sider ( #5036 )
* save
* change detect type of Layout.Sider
8 years ago
ddcat1115
6495ef3592
fix Layout style ( #4506 )
* fix #4459
* improve
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