Skip to content

Commit

Permalink
Merge branch 'ele/master'
Browse files Browse the repository at this point in the history
* ele/master:
  [release] 2.13.1
  [build] 2.13.1
  Chore: Update Changelog (ElemeFE#19162)
  Docs: fix a type error in document of steps component. (ElemeFE#17555)
  Image: Fix shortcut key not work at second time issue (ElemeFE#18983) (ElemeFE#19156)
  chore: remove index intro (ElemeFE#19155)
  Image: Fix preview dose not show when preview list not contain src issue (ElemeFE#18975) (ElemeFE#19130)
  Image: don't show image-viewer when preview is false (ElemeFE#18967)
  Autocomplete:  fix suggestion error when textarea (ElemeFE#18478)
  Autocomplete: add change event (ElemeFE#17913)
  doc: fix step-strictly docs typo (ElemeFE#18705)
  Carousel: fix console typo bug (ElemeFE#18264)
  doc: Popconfirm doc update (ElemeFE#18324)
  [Input Number] Correctly compute inputNumberDisabled (ElemeFE#18439)
  Transfer: fix incorrect line-height of el-transfer's first list item when it was used with  el-form-item (ElemeFE#18917)
  • Loading branch information
DivXPro committed Apr 29, 2020
2 parents e4859ef + d578b01 commit dc62c39
Show file tree
Hide file tree
Showing 33 changed files with 183 additions and 77 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
## Changelog

### 2.13.1

*2020-04-13*

#### New features
- Autocomplete
- Add change event (#17913 by @sxzz)

#### Bug fixes

- Autocomplete
- Fix suggestion error when textarea (#18478 by @Roojay)
- Carousel
- Fix console typo bug (#18264 by @IceFox)
- Image
- Fix preview dose not show when preview list not contain src issue (#18975) (#19130 by @luckyCao)
- Fix shortcut key not work at second time issue (#18983) (#19156 by @luckyCao)
- Don't show image-viewer when preview is false (#18967 by @inooNgt)
- Transfer
- Fix incorrect line-height of el-transfer's first list item when it was used with el-form-item (#18917 by @Hanx)
- InputNumber
- Correctly compute inputNumberDisabled (#18439 by @ashuser-pendo)
- Chore
- Remove index intro (#19155 by @iamkun)
- Doc
- Popconfirm doc update (#18324 by @iamkun)
- Fix step-strictly docs typo (#18705 by @dream2023)
- Fix a type error in document of steps component (#17555 by @haoranyu)

### 2.13.0

*2019-11-26*
Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.es.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
## Changelog

### 2.13.1

*2020-04-13*

#### New features
- Autocomplete
- Add change event (#17913 by @sxzz)

#### Bug fixes

- Autocomplete
- Fix suggestion error when textarea (#18478 by @Roojay)
- Carousel
- Fix console typo bug (#18264 by @IceFox)
- Image
- Fix preview dose not show when preview list not contain src issue (#18975) (#19130 by @luckyCao)
- Fix shortcut key not work at second time issue (#18983) (#19156 by @luckyCao)
- Don't show image-viewer when preview is false (#18967 by @inooNgt)
- Transfer
- Fix incorrect line-height of el-transfer's first list item when it was used with el-form-item (#18917 by @Hanx)
- InputNumber
- Correctly compute inputNumberDisabled (#18439 by @ashuser-pendo)
- Chore
- Remove index intro (#19155 by @iamkun)
- Doc
- Popconfirm doc update (#18324 by @iamkun)
- Fix step-strictly docs typo (#18705 by @dream2023)
- Fix a type error in document of steps component (#17555 by @haoranyu)

### 2.13.0

*2019-11-26*
Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.fr-FR.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
## Changelog

### 2.13.1

*2020-04-13*

#### New features
- Autocomplete
- Add change event (#17913 by @sxzz)

#### Bug fixes

- Autocomplete
- Fix suggestion error when textarea (#18478 by @Roojay)
- Carousel
- Fix console typo bug (#18264 by @IceFox)
- Image
- Fix preview dose not show when preview list not contain src issue (#18975) (#19130 by @luckyCao)
- Fix shortcut key not work at second time issue (#18983) (#19156 by @luckyCao)
- Don't show image-viewer when preview is false (#18967 by @inooNgt)
- Transfer
- Fix incorrect line-height of el-transfer's first list item when it was used with el-form-item (#18917 by @Hanx)
- InputNumber
- Correctly compute inputNumberDisabled (#18439 by @ashuser-pendo)
- Chore
- Remove index intro (#19155 by @iamkun)
- Doc
- Popconfirm doc update (#18324 by @iamkun)
- Fix step-strictly docs typo (#18705 by @dream2023)
- Fix a type error in document of steps component (#17555 by @haoranyu)

### 2.13.0

*2019-11-26*
Expand Down
29 changes: 29 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
## 更新日志

### 2.13.1

*2020-04-13*

#### 新特性
- Autocomplete
- 添加 change 事件 (#17913 by @sxzz)

#### Bug 修复

- Autocomplete
- 修复类型为 textarea 时建议错误问题 (#18478 by @Roojay)
- Carousel
- 修复 console.warn 文案拼写错误 (#18264 by @IceFox)
- Image
- 修复当 preview-src-list 属性不包含 src 时图片预览大图展示为空的问题 (#18975) (#19130 by @luckyCao)
- 修复第二次图片预览时快捷键失效问题 (#18983) (#19156 by @luckyCao)
- 修复 preview-src-list 为空时点击图片会给 body 添加 overflow: scroll 的问题 (#18967 by @inooNgt)
- Transfer
- 修复和 Form 组件一起使用时错误的行高问题 (#18917 by @Hanx)
- InputNumber
- 正确计算 inputNumberDisabled (#18439 by @ashuser-pendo)
- Chore
- 更新首页文案 (#19155 by @iamkun)
- Doc
- 更新 Popconfirm 文档 (#18324 by @iamkun)
- 修复 step-strictly 文档拼写问题 (#18705 by @dream2023)
- 修复 Steps 组件文档问题 (#17555 by @haoranyu)

### 2.13.0

*2019-11-26*
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/en-US/input-number.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Use attribute `size` to set additional sizes with `medium`, `small` or `mini`.
|min | the minimum allowed value | number || `-Infinity` |
|max | the maximum allowed value | number || `Infinity` |
|step | incremental step | number || 1 |
|step-strictly | whether input value can only be multiple of step | number || false |
|step-strictly | whether input value can only be multiple of step | boolean || false |
|precision | precision of input value | number |||
|size | size of the component | string | large/small||
|disabled| whether the component is disabled | boolean || false |
Expand Down
1 change: 1 addition & 0 deletions examples/docs/en-US/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ Attribute | Description | Type | Options | Default
| Event Name | Description | Parameters |
|----| ----| ----|
|select | triggers when a suggestion is clicked | suggestion being clicked |
| change | triggers when the icon inside Input value change | (value: string \| number) |

### Autocomplete Methods

Expand Down
6 changes: 6 additions & 0 deletions examples/docs/en-US/popconfirm.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ You can customise Popconfirm like:
| Name | Description |
|--- | ---|
| reference | HTML element that triggers Popconfirm |

### Events
| Event Name | Description | Parameters |
|---------|--------|---------|
| onConfirm | triggers when click confirm button ||
| onCancel | triggers when click cancel button ||
4 changes: 2 additions & 2 deletions examples/docs/en-US/steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Guide the user to complete tasks in accordance with the process. Its steps can b

Simple step bar.

:::demo Set `active` attribute with `Number` type, which indicates the index of steps and starts from 0. You can set `space` attribute when the width of the step needs to be fixed which accepts `Boolean` type. The unit of the `space` attribute is `px`. If not set, it is responsive. Setting the `finish-status` attribute can change the state of the steps that have been completed.
:::demo Set `active` attribute with `Number` type, which indicates the index of steps and starts from 0. You can set `space` attribute when the width of the step needs to be fixed which accepts `Number` type. The unit of the `space` attribute is `px`. If not set, it is responsive. Setting the `finish-status` attribute can change the state of the steps that have been completed.

```html
<el-steps :active="active" finish-status="success">
Expand Down Expand Up @@ -50,7 +50,7 @@ Shows the status of the step for each step.
```
:::

### Center
### Center

Title and desription can be centered.

Expand Down
2 changes: 1 addition & 1 deletion examples/docs/es/input-number.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Utilice el atributo `size` para establecer tamaños adicionales con `medium`, `s
| min | el valor mínimo permitido | number || `-Infinity` |
| max | el valor maximo permitido | number || `Infinity` |
| step | incremento (salto) | number || 1 |
| step-strictly | si el valor del input puede ser solo un multiplo de step | number || false |
| step-strictly | si el valor del input puede ser solo un multiplo de step | boolean || false |
| precision | precisión del valor del input | number |||
| size | tamaño del componente | string | large/small ||
| disabled | si el componente esta deshabilitado | boolean || false |
Expand Down
1 change: 1 addition & 0 deletions examples/docs/es/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ export default {
| Nombre | Descripción | Parametros |
| ------ | ----------------------------------------------- | ------------------------------------------ |
| select | se dispara cuando se hace clic a una sugerencia | sugerencia en la que se está haciendo clic |
| change | se activa cuando cambia el valor de entrada | (value: string \| number) |

### Autocomplete Metodo

Expand Down
6 changes: 6 additions & 0 deletions examples/docs/es/popconfirm.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ You can customise Popconfirm like:
| Name | Description |
|--- | ---|
| reference | HTML element that triggers Popconfirm |

### Events
| Event Name | Description | Parameters |
|---------|--------|---------|
| onConfirm | triggers when click confirm button ||
| onCancel | triggers when click cancel button ||
4 changes: 2 additions & 2 deletions examples/docs/es/steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Guía al usuario para completar tareas de acuerdo con el proceso. Sus pasos pued

Barra de pasos simple.

:::demo Defina el atributo `active` con un valor de tipo `Number`, que indica el índice de pasos y comienza desde 0. Puede definir el atributo `space` cuando es necesario fijar el ancho del paso que acepta el tipo `Boolean`. La unidad del atributo `space` es px. Si no está configurado, es responsive. La configuración del atributo `finish-status` puede cambiar el estado de los pasos completados.
:::demo Defina el atributo `active` con un valor de tipo `Number`, que indica el índice de pasos y comienza desde 0. Puede definir el atributo `space` cuando es necesario fijar el ancho del paso que acepta el tipo `Number`. La unidad del atributo `space` es px. Si no está configurado, es responsive. La configuración del atributo `finish-status` puede cambiar el estado de los pasos completados.

```html
<el-steps :active="active" finish-status="success">
Expand Down Expand Up @@ -50,7 +50,7 @@ Muestra el estado del step para cada paso.
```
:::

### Centrado
### Centrado

El título y la descripción pueden estar centrados.

Expand Down
2 changes: 1 addition & 1 deletion examples/docs/fr-FR/input-number.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Utilisez l'attribut `size` pour régler la taille avec `medium`, `small` ou `min
| min | La valeur minimale autorisée. | number || `-Infinity` |
| max | La valeur maximale autorisée. | number || `Infinity` |
| step | Le pas pour l'incrémentation. | number || 1 |
| step-strictly | Si la valeur ne peut être qu'un multiple du pas. | number || false |
| step-strictly | Si la valeur ne peut être qu'un multiple du pas. | boolean || false |
| precision | La précision de la valeur. | number |||
| size | La taille du composant. | string | large/small||
| disabled| Si le composant est désactivé. | boolean || false |
Expand Down
1 change: 1 addition & 0 deletions examples/docs/fr-FR/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ export default {
| Nom | Description | Paramètres |
|----| ----| ----|
| select | Se déclenche quand une suggestion est cliquée. | La suggestion sélectionnée. |
| change | Se déclenche quand la valeur change. | (value: string \ number) |

### Méthodes de l'autocomplétion

Expand Down
6 changes: 6 additions & 0 deletions examples/docs/fr-FR/popconfirm.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ You can customise Popconfirm like:
| Name | Description |
|--- | ---|
| reference | HTML element that triggers Popconfirm |

### Events
| Event Name | Description | Parameters |
|---------|--------|---------|
| onConfirm | triggers when click confirm button ||
| onCancel | triggers when click cancel button ||
2 changes: 1 addition & 1 deletion examples/docs/fr-FR/steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Permet de guider l'utilisateur dans l'accomplissement de toutes les taches d'un

Voici une barre d'étapes basique.

:::demo Réglez l'attribut `active` avec une variable `Number`, qui indique l'index des étapes et commence à 0. L'attribut `space` permet de déterminer si l'espace entre les étapes doit être fixe à l'aide d'un `Boolean`. L'unité de `space` est `px`. Si cet attribut est absent, la barre sera responsive. L'attribut `finish-status` change le statut d'accomplissement des étapes.
:::demo Réglez l'attribut `active` avec une variable `Number`, qui indique l'index des étapes et commence à 0. L'attribut `space` permet de déterminer si l'espace entre les étapes doit être fixe à l'aide d'un `Number`. L'unité de `space` est `px`. Si cet attribut est absent, la barre sera responsive. L'attribut `finish-status` change le statut d'accomplissement des étapes.

```html
<el-steps :active="active" finish-status="success">
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/zh-CN/input-number.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
| min | 设置计数器允许的最小值 | number || -Infinity |
| max | 设置计数器允许的最大值 | number || Infinity |
| step | 计数器步长 | number || 1 |
| step-strictly | 是否只能输入 step 的倍数 | number || false |
| step-strictly | 是否只能输入 step 的倍数 | boolean || false |
| precision| 数值精度 | number |||
| size | 计数器尺寸 | string | large, small ||
| disabled | 是否禁用计数器 | boolean || false |
Expand Down
1 change: 1 addition & 0 deletions examples/docs/zh-CN/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ export default {
| 事件名称 | 说明 | 回调参数 |
|---------|--------|---------|
| select | 点击选中建议项时触发 | 选中建议项 |
| change | 在 Input 值改变时触发 | (value: string \| number) |

### Autocomplete Methods
| 方法名 | 说明 | 参数 |
Expand Down
6 changes: 6 additions & 0 deletions examples/docs/zh-CN/popconfirm.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ Popconfirm 的属性与 Popover 很类似,因此对于重复属性,请参考
| 参数 | 说明 |
|--- | ---|
| reference | 触发 Popconfirm 显示的 HTML 元素 |

### Events
| 事件名称 | 说明 | 回调参数 |
|---------|--------|---------|
| onConfirm | 点击确认按钮时触发 ||
| onCancel | 点击取消按钮时触发 ||
2 changes: 1 addition & 1 deletion examples/docs/zh-CN/steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

简单的步骤条。

:::demo 设置`active`属性,接受一个`Number`,表明步骤的 index,从 0 开始。需要定宽的步骤条时,设置`space`属性即可,它接受`Boolean`,单位为`px`,如果不设置,则为自适应。设置`finish-status`属性可以改变已经完成的步骤的状态。
:::demo 设置`active`属性,接受一个`Number`,表明步骤的 index,从 0 开始。需要定宽的步骤条时,设置`space`属性即可,它接受`Number`,单位为`px`,如果不设置,则为自适应。设置`finish-status`属性可以改变已经完成的步骤的状态。
```html
<el-steps :active="active" finish-status="success">
<el-step title="步骤 1"></el-step>
Expand Down
2 changes: 1 addition & 1 deletion examples/pages/template/changelog.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
}
}
fragments = fragments.replace(/#(\d+)/g, '<a href="https://github.com/ElemeFE/element/issues/$1" target="_blank">#$1</a>');
fragments = fragments.replace(/@(\w+)/g, '<a href="https://github.com/$1" target="_blank">@$1</a>');
fragments = fragments.replace(/@([\w-]+)/g, '<a href="https://github.com/$1" target="_blank">@$1</a>');
this.$refs.timeline.innerHTML = `${fragments}</li>`;
changeLog.$el.remove();
Expand Down
51 changes: 1 addition & 50 deletions examples/pages/template/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -366,40 +366,10 @@
</li>
</ul>
</div>
<div class="theme-intro-a" v-if="showIntroA" @click="hideIntroA">
<div class="intro-banner">
<img src="~examples/assets/images/theme-intro.png" alt="">
<div class="intro-text">
<p><%= 12 ></p>
</div>
</div>
<div class="mask"></div>
</div>
<div
class="theme-intro-b"
@click="hideIntroB"
v-if="showIntroB"
>
<div class="intro-banner"
:style="{
left: introBX + 'px',
top: introBY + 'px'
}"
>
<img src="~examples/assets/images/intro-theme-b.png" alt="">
<div class="title">
<div>
<p><%= 13 ></p>
<p><%= 14 ></p>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import throttle from 'throttle-debounce/throttle';
import { addClass, removeClass } from 'element-ui/src/utils/dom';
export default {
created() {
Expand All @@ -416,38 +386,19 @@
if (calHeight < 0) calHeight = 0;
if (calHeight > eleHeight) calHeight = eleHeight;
this.mainImgOffset = calHeight;
},
hideIntroB() {
removeClass(document.body, 'el-loading-parent--hidden');
localStorage.setItem('KNOW_THEME', 'true');
this.showIntroB = false;
},
hideIntroA() {
const themeTab = document.querySelector('.nav-item-theme');
this.introBX = themeTab.offsetLeft + (themeTab.clientWidth * 0.5) - (300 / 2);
this.introBY = themeTab.offsetTop + 40;
this.showIntroA = false;
this.showIntroB = true;
}
},
data() {
return {
lang: this.$route.meta.lang,
mainImgOffset: 0,
showIntroA: false,
showIntroB: false,
introBY: 0,
introBX: 0
mainImgOffset: 0
};
},
beforeDestroy() {
window.removeEventListener('scroll', this.throttledHandleScroll);
},
mounted() {
window.addEventListener('scroll', this.throttledHandleScroll);
if (localStorage.getItem('KNOW_THEME')) return;
this.showIntroA = true;
addClass(document.body, 'el-loading-parent--hidden');
}
};
</script>
2 changes: 1 addition & 1 deletion examples/versions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.11":"2.4","2.5.4":"2.5","2.6.3":"2.6","2.7.2":"2.7","2.8.2":"2.8","2.9.2":"2.9","2.10.1":"2.10","2.11.1":"2.11","2.12.0":"2.12","2.13.0-fix10":"2.13"}
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.11":"2.4","2.5.4":"2.5","2.6.3":"2.6","2.7.2":"2.7","2.8.2":"2.8","2.9.2":"2.9","2.10.1":"2.10","2.11.1":"2.11","2.12.0":"2.12","2.13.1":"2.13"}

0 comments on commit dc62c39

Please sign in to comment.