Skip to content

Commit

Permalink
refactor(Panel): refactor Panel for RSuite v5 (rsuite#1256)
Browse files Browse the repository at this point in the history
* refactor: 💡 重构 Panel

* refactor: 💡 调整实现

* refactor: 💡 调整 Panel 实现

* chore: 🤖 clean code

* refactor: 💡 调整 Panel 实现

* refactor: 💡 调整 Panel 声明

* refactor: 💡 remove lodash whole quantity import

* refactor: 💡 调整实现 & 补充文档

* fix: 🐛 修复不传递 AnimationEventProps 的问题

* refactor: 💡 增加依赖
  • Loading branch information
雷玮杰 authored Aug 28, 2020
1 parent 6931e4b commit 0f06bbc
Show file tree
Hide file tree
Showing 30 changed files with 316 additions and 482 deletions.
24 changes: 0 additions & 24 deletions docs/pages/components/panel/en-US/accordion-group-active.md

This file was deleted.

22 changes: 0 additions & 22 deletions docs/pages/components/panel/en-US/accordion-group.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pages/components/panel/en-US/basic.md

This file was deleted.

49 changes: 0 additions & 49 deletions docs/pages/components/panel/en-US/body-fill.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pages/components/panel/en-US/bordered.md

This file was deleted.

32 changes: 0 additions & 32 deletions docs/pages/components/panel/en-US/card-grid.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/pages/components/panel/en-US/collapsible.md

This file was deleted.

49 changes: 45 additions & 4 deletions docs/pages/components/panel/en-US/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,54 @@ A content panel that supports folding panels. The Panel can have all the ' Data

## Usage

```js
import { Panel, PanelGroup } from 'rsuite';
```
<!--{include:(components/panel/fragments/import.md)}-->

## Examples

<!--{demo}-->
### Default

<!--{include:`basic.md`}-->

### With border

<!--{include:`bordered.md`}-->

### With shadow

<!--{include:`shaded.md`}-->

### No header

<!--{include:`no-header.md`}-->

### Card

<!--{include:`card.md`}-->

### Card group

<!--{include:`card-grid.md`}-->

### Collapsible

<!--{include:`collapsible.md`}-->

### Fill the container

<!--{include:`body-fill.md`}-->

### Panel group

<!--{include:`panel-group.md`}-->

### Collapsible panel group

<!--{include:`accordion-group.md`}-->

### Accordion effect
Only one panel can be expanded.

<!--{include:`accordion-group-active.md`}-->

## Props

Expand Down
23 changes: 0 additions & 23 deletions docs/pages/components/panel/en-US/panel-group.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/pages/components/panel/en-US/shaded.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
### 手风琴效果

每次只能展开一个面板

<!--start-code-->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### 折叠面板组

<!--start-code-->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### 默认

<!--start-code-->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### 撑满容器

<!--start-code-->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### 带线框

<!--start-code-->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### 卡片组

<!--start-code-->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### Card

<!--start-code-->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### 可折叠

<!--start-code-->

Expand Down
3 changes: 3 additions & 0 deletions docs/pages/components/panel/fragments/import.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```js
import { Panel, PanelGroup } from 'rsuite';
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### No header

<!--start-code-->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### 面板组

<!--start-code-->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
### 有阴影

<!--start-code-->

Expand Down
20 changes: 0 additions & 20 deletions docs/pages/components/panel/zh-CN/card.md

This file was deleted.

Loading

0 comments on commit 0f06bbc

Please sign in to comment.