Skip to content

Commit 3b99c46

Browse files
authored
Button: Revert adding compact size
This reverts commit 05fe6e6.
1 parent 05fe6e6 commit 3b99c46

File tree

6 files changed

+8
-31
lines changed

6 files changed

+8
-31
lines changed

examples/docs/en-US/button.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,30 +132,28 @@ Click the button to load data, then the button displays a loading state.
132132

133133
Besides default size, Button component provides three additional sizes for you to choose among different scenarios.
134134

135-
:::demo Use attribute `size` to set additional sizes with `medium`, `small`, `mini` or `compact`.
135+
:::demo Use attribute `size` to set additional sizes with `medium`, `small` or `mini`.
136136

137137
```html
138138
<el-row>
139139
<el-button>Default</el-button>
140140
<el-button size="medium">Medium</el-button>
141141
<el-button size="small">Small</el-button>
142142
<el-button size="mini">Mini</el-button>
143-
<el-button size="compact">Compact</el-button>
144143
</el-row>
145144
<el-row>
146145
<el-button round>Default</el-button>
147146
<el-button size="medium" round>Medium</el-button>
148147
<el-button size="small" round>Small</el-button>
149148
<el-button size="mini" round>Mini</el-button>
150-
<el-button size="compact" round>Compact</el-button>
151149
</el-row>
152150
```
153151
:::
154152

155153
### Attributes
156154
| Attribute | Description | Type | Accepted values | Default |
157155
|---------- |-------- |---------- |------------- |-------- |
158-
| size | button size | string | medium / small / mini / compact ||
156+
| size | button size | string | medium / small / mini ||
159157
| type | button type | string | primary / success / warning / danger / info / text ||
160158
| plain | determine whether it's a plain button | boolean || false |
161159
| round | determine whether it's a round button | boolean || false |

examples/docs/es/button.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,30 +132,28 @@ Cuando se hace clic en un botón para descargar datos, el botón muestra un esta
132132

133133
Además del tamaño por defecto, el componente Button provee tres tamaños adicionales para utilizar en diferentes escenarios.
134134

135-
:::demo Use el atributo `size` para setear tamaños adicionales con `medium`, `small`, `mini` o `compact`.
135+
:::demo Use el atributo `size` para setear tamaños adicionales con `medium`, `small` o `mini`.
136136

137137
```html
138138
<el-row>
139139
<el-button>Default</el-button>
140140
<el-button size="medium">Medium</el-button>
141141
<el-button size="small">Small</el-button>
142142
<el-button size="mini">Mini</el-button>
143-
<el-button size="compact">Compact</el-button>
144143
</el-row>
145144
<el-row>
146145
<el-button round>Default</el-button>
147146
<el-button size="medium" round>Medium</el-button>
148147
<el-button size="small" round>Small</el-button>
149148
<el-button size="mini" round>Mini</el-button>
150-
<el-button size="compact" round>Compact</el-button>
151149
</el-row>
152150
```
153151
:::
154152

155153
### Atributos
156154
| Atributo | Descripción | Tipo | Valores aceptados | Por defecto |
157155
| ----------- | --------------------------------------------- | ------- | -------------------------------------------------- | ----------- |
158-
| size | tamaño del botón | string | medium / small / mini / compact ||
156+
| size | tamaño del botón | string | medium / small / mini ||
159157
| type | tipo de botón | string | primary / success / warning / danger / info / text ||
160158
| plain | determinar si es o no un botón plano | boolean || false |
161159
| round | determinar si es o no un botón redondo | boolean || false |

examples/docs/fr-FR/button.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,30 +132,28 @@ Cliquez sur le bouton pour charger des données et il affichera un état de char
132132

133133
En plus de la taille par défaut, le composant Button fournit trois tailles supplémentaires pour différents scénarios.
134134

135-
:::demo Utilisez l'attribut `size` pour choisir d'autres tailles parmi `medium`, `small`, `mini` ou `compact`.
135+
:::demo Utilisez l'attribut `size` pour choisir d'autres tailles parmi `medium`, `small` ou `mini`.
136136

137137
```html
138138
<el-row>
139139
<el-button>Défaut</el-button>
140140
<el-button size="medium">Medium</el-button>
141141
<el-button size="small">Small</el-button>
142142
<el-button size="mini">Mini</el-button>
143-
<el-button size="compact">Compact</el-button>
144143
</el-row>
145144
<el-row>
146145
<el-button round>Défaut</el-button>
147146
<el-button size="medium" round>Medium</el-button>
148147
<el-button size="small" round>Small</el-button>
149148
<el-button size="mini" round>Mini</el-button>
150-
<el-button size="compact" round>Compact</el-button>
151149
</el-row>
152150
```
153151
:::
154152

155153
### Attributs
156154
| Attribut | Description | Type | Valeurs acceptées | Défaut |
157155
|---------- |-------- |---------- |------------- |-------- |
158-
| size | Taille du bouton. | string | medium / small / mini / compact ||
156+
| size | Taille du bouton. | string | medium / small / mini ||
159157
| type | Type du bouton. | string | primary / success / warning / danger / info / text ||
160158
| plain | Détermine si le bouton est plein. | boolean || false |
161159
| round | Détermine si le bouton est arrondi. | boolean || false |

examples/docs/zh-CN/button.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,30 +133,28 @@
133133

134134
Button 组件提供除了默认值以外的三种尺寸,可以在不同场景下选择合适的按钮尺寸。
135135

136-
:::demo 额外的尺寸:`medium``small``mini``compact`,通过设置`size`属性来配置它们。
136+
:::demo 额外的尺寸:`medium``small``mini`,通过设置`size`属性来配置它们。
137137

138138
```html
139139
<el-row>
140140
<el-button>默认按钮</el-button>
141141
<el-button size="medium">中等按钮</el-button>
142142
<el-button size="small">小型按钮</el-button>
143143
<el-button size="mini">超小按钮</el-button>
144-
<el-button size="compact">極小按钮</el-button>
145144
</el-row>
146145
<el-row>
147146
<el-button round>默认按钮</el-button>
148147
<el-button size="medium" round>中等按钮</el-button>
149148
<el-button size="small" round>小型按钮</el-button>
150149
<el-button size="mini" round>超小按钮</el-button>
151-
<el-button size="compact" round>极小按钮</el-button>
152150
</el-row>
153151
```
154152
:::
155153

156154
### Attributes
157155
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
158156
|---------- |-------- |---------- |------------- |-------- |
159-
| size | 尺寸 | string | medium / small / mini / compact ||
157+
| size | 尺寸 | string | medium / small / mini ||
160158
| type | 类型 | string | primary / success / warning / danger / info / text ||
161159
| plain | 是否朴素按钮 | boolean || false |
162160
| round | 是否圆角按钮 | boolean || false |

packages/theme-chalk/src/button.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,6 @@
154154
padding: $--button-mini-padding-vertical;
155155
}
156156
}
157-
@include m(compact) {
158-
@include button-size($--button-compact-padding-vertical, $--button-compact-padding-horizontal, $--button-compact-font-size, $--button-compact-border-radius);
159-
@include when(circle) {
160-
padding: $--button-compact-padding-vertical;
161-
}
162-
}
163157
@include m(text) {
164158
border-color: transparent;
165159
color: $--color-primary;

packages/theme-chalk/src/common/var.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@ $--button-small-border-radius: #{$--border-radius-base - 1} !default;
534534
$--button-small-padding-vertical: 9px !default;
535535
/// padding||Spacing|3
536536
$--button-small-padding-horizontal: 15px !default;
537-
538537
/// fontSize||Font|1
539538
$--button-mini-font-size: 12px !default;
540539
$--button-mini-border-radius: #{$--border-radius-base - 1} !default;
@@ -543,14 +542,6 @@ $--button-mini-padding-vertical: 7px !default;
543542
/// padding||Spacing|3
544543
$--button-mini-padding-horizontal: 15px !default;
545544

546-
/// fontSize||Font|1
547-
$--button-compact-font-size: 12px !default;
548-
$--button-compact-border-radius: #{$--border-radius-base - 1} !default;
549-
/// padding||Spacing|3
550-
$--button-compact-padding-vertical: 5px !default;
551-
/// padding||Spacing|3
552-
$--button-compact-padding-horizontal: 12px !default;
553-
554545
/// color||Color|0
555546
$--button-default-font-color: $--color-text-regular !default;
556547
/// color||Color|0

0 commit comments

Comments
 (0)