-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(comp:collapse): update style and add size prop (#1252)
- Loading branch information
Showing
44 changed files
with
319 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: | ||
zh: 紧凑型 | ||
en: Compact panel | ||
order: 5 | ||
--- | ||
|
||
## zh | ||
|
||
可以通过设置 `size:'sm'` 来使用紧凑型面板。 | ||
|
||
## en | ||
|
||
You can use the compact panel by setting `size:'sm'`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<IxCollapse size="sm"> | ||
<IxCollapsePanel key="1" header="Francis Bacon's saying"> | ||
<span>Some books should be tasted, some devoured, but only a few should be chewed and digested thoroughly.</span> | ||
</IxCollapsePanel> | ||
<IxCollapsePanel key="2" header="Francis Bacon's saying"> | ||
<span> | ||
If a man will begin with certainties, he shall end in doubts; but if he will be content to begin with doubts, he | ||
shall end in certainties. | ||
</span> | ||
</IxCollapsePanel> | ||
<IxCollapsePanel key="3" header="Francis Bacon's saying" disabled> | ||
<span>A wise man will make more opportunities than he finds.</span> | ||
</IxCollapsePanel> | ||
</IxCollapse> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ type: 数据展示 | |
title: Collapse | ||
subtitle: 折叠面板 | ||
order: 0 | ||
theme: true | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +0,0 @@ | ||
## API | ||
|
||
### IxCollapse | ||
|
||
#### CollapseProps | ||
|
||
| Name | Description | Type | Default | Global Config | Remark | | ||
| --- | --- | --- | --- | --- | --- | | ||
| - | - | - | - | ✅ | - | | ||
|
||
#### CollapseSlots | ||
|
||
| Name | Description | Parameter Type | Remark | | ||
| --- | --- | --- | --- | | ||
| - | - | - | - | | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
| 名称 | default | seer | 备注 | | ||
| --- | --- | --- | --- | | ||
| `@collapse-line-height` | `@line-height-base` | - | - | | ||
| `@collapse-font-size` | `@font-size-md` | - | - | | ||
| `@collapse-color` | `@text-color` | - | - | | ||
| `@collapse-background-color` | `@color-grey-l50` | - | - | | ||
| `@collapse-border` | `@border-width-sm @border-style @border-color` | - | - | | ||
| `@collapse-border-radius` | `@border-radius-sm` | - | - | | ||
| `@collapse-panel-header-padding` | `2px @spacing-lg` | - | - | | ||
| `@collapse-panel-header-prefix-font-size` | `@font-size-sm` | - | - | | ||
| `@collapse-panel-header-font-size` | `@font-size-md` | - | - | | ||
| `@collapse-panel-header-font-weight` | `@font-weight-md` | - | - | | ||
| `@collapse-panel-content-background-color` | `@background-color-component` | - | - | | ||
| `@collapse-panel-content-padding` | `@spacing-lg` | - | - | | ||
| `@collapse-panel-content-padding-top-compact` | `@spacing-xs` | - | - | | ||
| `@collapse-font-size-sm` | `var(--ix-font-size-sm)` | - | - | | ||
| `@collapse-font-size-md` | `var(--ix-font-size-md)` | `var(--ix-font-size-sm)` | - | | ||
| `@collapse-border` | `1px solid var(--ix-border-color)` | - | - | | ||
| `@collapse-border-radius` | `var(--ix-border-radius-md)` | `var(--ix-border-radius-sm)` | - | | ||
| `@collapse-content-background-color` | `var(--ix-background-color-light)` | - | - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.