chore: Update french doc for 2.6.1 and fix typos (#14555)

pull/14569/head
Simon Malesys 2019-03-04 08:45:32 +01:00 committed by iamkun
parent 2f5a489a9c
commit 1711e60acf
8 changed files with 64 additions and 64 deletions

View File

@ -442,7 +442,7 @@
- Fixed closing the DatePicker panel without changing the value incorrectly triggering the `change` event, #11017 - Fixed closing the DatePicker panel without changing the value incorrectly triggering the `change` event, #11017
- Fixed keyboard navigation not working properly when Select has grouped options, #11058 - Fixed keyboard navigation not working properly when Select has grouped options, #11058
- Added `prefix` named slot for Select, #11063 - Added `prefix` named slot for Select, #11063
- Added 'clearValidate` method for FormItem, #11076 - Added `clearValidate` method for FormItem, #11076
- Added `checkOnClickNode` attribute for Tree, #11111 - Added `checkOnClickNode` attribute for Tree, #11111
### 2.3.7 ### 2.3.7

View File

@ -4,80 +4,80 @@
*2019-03-03* *2019-03-03*
#### Bug fixes #### Corrections de bugs
- **Don't specify node version** (by @iamkun in #14546) - **Ne pas spécifier la version de node** (par @iamkun dans #14546)
- Fix doc directory in `deloy-faas.sh` (by @ziyoung in #14553) - Correction du répertoire doc dans `deloy-faas.sh` (par @ziyoung dans #14553)
- Fix date style issue in changelog for 2.6.0 (by @island205 in #14547) - Correction d'un problème de style de date dans le changelog de la 2.6.0 (par @island205 dans #14547)
- Fix doc typo (by @wack6 in #14552) - Correction d'une typo dans la doc (par @wack6 dans #14552)
### 2.6.0 ### 2.6.0
*2019-03-01* *2019-03-01*
#### New features #### Nouvelles fonctionnalités
- Timeline - Timeline
- Add timeline component (by @jikkai in #14248) - Ajout d'un composant timeline (par @jikkai dans #14248)
- DropdownItem - DropdownItem
- Add icon prop to `el-dropdown-item` (by @gabrielboliveira in #14088) - Ajout de la propriété `icon` à `el-dropdown-item` (par @gabrielboliveira dans #14088)
- Input - Input
- Add show-password props (by @phshy0607 in #13966) - Ajout de propriétés pour afficher les mots de passe (par @phshy0607 dans #13966)
- Select - Select
- Add slot `empty` (by @elfman in #13785) - Ajout du slot `empty` (par @elfman au #13785)
- Autocomplete - Autocomplete
- Add highlight-first-item prop (by @YamenSharaf in #14269) - Ajout de la propriété `highlight-first-item` (par @YamenSharaf dans #14269)
- I18n - I18n
- Created Armenian locale (by @hamletbarsamyan in #14214) - Création de la locale Arménienne (par @hamletbarsamyan dans #14214)
- Docs - Docs
- French translation (by @smalesys in #12153, #14418, #14434) - Traduction française (par @smalesys dans #12153, #14418, #14434)
#### Optimization #### Optimisation
- Alert - Alert
- Update alert description default slot class (by @iamkun in #14488) - Mise à jour de la classe du slot par défaut de la description de Alert (par @iamkun dans #14488)
- Input - Input
- Update input password (by @iamkun in #14480) - Mise à jour de l'input de type password (par @iamkun dans #14480)
- InputNumber - InputNumber
- Remove unnecessary parseFloat (by @JuniorTour in #14172) - Retrait d'un parseFloat inutile (par @JuniorTour au #14172)
- Menu - Menu
- Add support for `el-menu-item` without index (by @georgyfarniev in #13298) - Ajout du support de `el-menu-item` sans index (par @georgyfarniev dans #13298)
- Table - Table
- Remove some html DOM operations (by @elfman in #13643) - Suppression de certaines opérations du DOM (par @elfman dans #13643)
- Upload - Upload
- Optimize code (by @elfman in #13973) - Optimisation du code (par @elfman dans #13973)
- Popup - Popup
- Optimize code (by @KAionro in #14413) - Optimisation du code (par @KAionro dans #14413)
- Docs - Docs
- Add more detail about how to run play mode for contribution (by @island205 in #14355) - Ajout de détails sur la façon d'exécuter le mode play pour les contributeurs (par @island205 dans #14355)
- Warn input as a controlled component. (by @wacky6 in #14463) - Ajout d'un avertissement concernant Input (par @wacky6 dans #14463)
- Update Table doc (by @luguokong in #14329) - Mise à jour de la doc de Table (par @luguokong dans #14329)
- Update input doc (by @iamkun in #14437) - Mise à jour de la doc d'Input (par @iamkun dans #14437)
- Update custom-theme docs (by @wangguohao in #14297) - Mise à jour de la doc sur le thème (par @wangguohaohao dans #14297)
- Make the icon style change when hover on it (by @tuxinghuan in #14295) - Le style de l'icône change lorsque vous passez dessus (par @tuxinghuan dans #14295)
- Build - Build
- Minimizing css and js for Element doc site (by @iamkun in #14430) - Minification du CSS et du JS pour le site d'Element (par @iamkun dans #14430)
- Speeding up webpack (by @hetech in #14484) - Accélération de webpack (par @hetech dans #14484)
- Use cli to select release version (by @hetech in #14354) - Utilisation du cli pour sélectionner la version de publication (par @hetech dans #14354)
- Install stale for issue handling (by @island205 in #14392) - Installation de stale pour la gestion des issues (par @island205 dans #14392)
#### Bug fixes #### Corrections de bugs
- Menu - Menu
- Fix subMenu focus bug when switch browser tab (by @liupl in #13976) - Correction d'un bug de focus des sous-menus lors du changement d'onglet du navigateur (par @liupl dans #13976)
- MessageBox - MessageBox
- Fix type definition (by @NateScarlet in #14278) - Correction de la définition du type (par @NateScarlet dans #14278)
- ScrollBar - ScrollBar
- Prevent right button click on thumb (by @xifeiwu in #14196) - Empêche le clic droit sur le bouton du pouce (par @xifeiwu dans #14196)
- Switch - Switch
- Trigger form validation if value changes (by @hetech in #14426) - Déclenchement de la validation du formulaire si la valeur change (par @hetech dans #14426)
- Table - Table
- Make toggleAllSelection method an instance method (by @letanure in #14075) - La méthode toggleAllSelection est maintenant une méthode d'instance (par @letanure dans #14075)
- Tabs & Dropdown - Tabs & Dropdown
- Fix style (by @hetech in #14452) - Correction du style (par @hetech dans #14452)
- Tree - Tree
- Empty-text tips are different from tables (by @ColinCll in #14331) - Les tips sont différents des tableaux (par @ColinCll dans #14331)
- Docs - Docs
- Fix DatetimePicker format doc error (by @iamkun in #14290) - Correction d'une erreur de doc du DatetimePicker (par @iamkun dans #14290)
- Spelling issue in datepicker documentation (by @helmut in #14481) - Problème d'orthographe dans la documentation du DatePicker (par @helmut dans #14481)
- Fix pagination doc style (by @liuchuzhang in #14451) - Correction du style de la doc de Pagination(par @liuchuzhang dans #14451)
### 2.5.4 ### 2.5.4

View File

@ -604,7 +604,7 @@ All components in a Form inherit their `size` attribute from that Form. Similarl
| Method | Description | Parameters | | Method | Description | Parameters |
| ---- | ---- | ---- | | ---- | ---- | ---- |
| validate | validate the whole form. Takes a callback as a param. After validation, the callback will be executed with two params: a boolean indicating if the validation has passed, and an object containing all fields that fail the validation. Returns a promise if callback is omitted | Function(callback: Function(boolean, object)) | | validate | validate the whole form. Takes a callback as a param. After validation, the callback will be executed with two params: a boolean indicating if the validation has passed, and an object containing all fields that fail the validation. Returns a promise if callback is omitted | Function(callback: Function(boolean, object)) |
| validateField | validate one or serveral form items | Function(props: string | array, callback: Function(errorMessage: string)) | | validateField | validate one or several form items | Function(props: string | array, callback: Function(errorMessage: string)) |
| resetFields | reset all the fields and remove validation result | — | | resetFields | reset all the fields and remove validation result | — |
| clearValidate | clear validation message for certain fields. The parameter is prop name or an array of prop names of the form items whose validation messages will be removed. When omitted, all fields' validation messages will be cleared | Function(props: string | array) | | clearValidate | clear validation message for certain fields. The parameter is prop name or an array of prop names of the form items whose validation messages will be removed. When omitted, all fields' validation messages will be cleared | Function(props: string | array) |

View File

@ -150,8 +150,8 @@ Can pick an arbitrary time range.
| Attribute | Description | Type | Accepted Values | Default | | Attribute | Description | Type | Accepted Values | Default |
|---------- |-------------- |---------- |-------------------------------- |-------- | |---------- |-------------- |---------- |-------------------------------- |-------- |
| value / v-model | binding value | date(TimePicker) / string(TimeSelect) | - | - | | value / v-model | binding value | date(TimePicker) / string(TimeSelect) | - | - |
| readonly | whether DatePicker is read only | boolean | — | false | | readonly | whether TimePicker is read only | boolean | — | false |
| disabled | whether DatePicker is disabled | boolean | — | false | | disabled | whether TimePicker is disabled | boolean | — | false |
| editable | whether the input is editable | boolean | — | true | | editable | whether the input is editable | boolean | — | true |
| clearable | whether to show clear button | boolean | — | true | | clearable | whether to show clear button | boolean | — | true |
| size | size of Input | string | medium / small / mini | — | | size | size of Input | string | medium / small / mini | — |

View File

@ -37,7 +37,7 @@ Upload files by clicking or drag-and-drop
this.$message.warning(`The limit is 3, you selected ${files.length} files this time, add up to ${files.length + fileList.length} totally`); this.$message.warning(`The limit is 3, you selected ${files.length} files this time, add up to ${files.length + fileList.length} totally`);
}, },
beforeRemove(file, fileList) { beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${ file.name }`); return this.$confirm(`Cancel the transfert of ${ file.name } ?`);
} }
} }
} }

View File

@ -381,7 +381,7 @@ Cet exemple montre comment vous pouvez personnaliser vos règles de validation p
``` ```
::: :::
### DAjouter ou supprimer des champs dynamiquement ### Ajouter ou supprimer des champs dynamiquement
:::demo En plus de pouvoir passer toutes les règles de validation en une seule fois au formulaire, vous pouvez aussi ajouter ou supprimer des règles sur un seul champ de manière dynamique. :::demo En plus de pouvoir passer toutes les règles de validation en une seule fois au formulaire, vous pouvez aussi ajouter ou supprimer des règles sur un seul champ de manière dynamique.
```html ```html

View File

@ -1,13 +1,13 @@
## Input ## Input
Le champs d'input de base. Le champ d'input de base.
:::warning :::warning
Input is a controlled component, it **always shows Vue binding value**. Input est un composant controllé, il **affiche toujours la valeur liée de Vue**.
Under normal circumstances, `input` event should be handled. Its handler should update component's binding value (or use `v-model`). Otherwise, input box's value will not change. En règle générale, l'évènement `input` devrait être géré. Son handler devrait mettre à jour la valeur du composant (ou utilisez `v-model`). Dans le cas contraire, la valeur du champ ne sera pas modifiée.
Do not support `v-model` modifiers. Les modificateurs de `v-model` ne sont pas supportés.
::: :::
### Usage ### Usage
@ -75,12 +75,12 @@ export default {
``` ```
::: :::
### Password box ### Champ de mot de passe
:::demo Make a toggleable password Input with the `show-password` attribute. :::demo Créez un champ de mot de passe avec icône de visualisation grâce à l'attribut `show-password`.
```html ```html
<el-input placeholder="Please input password" v-model="input11" show-password></el-input> <el-input placeholder="Entrez votre mot de passe" v-model="input11" show-password></el-input>
<script> <script>
export default { export default {
@ -530,8 +530,8 @@ Vous pouvez aller chercher des infos de suggestions sur un serveur distant.
| minlength| Identique à `minlength` dans l'input natif. | number | — | — | | minlength| Identique à `minlength` dans l'input natif. | number | — | — |
| placeholder| Placeholder de l' Input. | string | — | — | | placeholder| Placeholder de l' Input. | string | — | — |
| clearable | Si le bouton de reset apparaît. | boolean | — | false | | clearable | Si le bouton de reset apparaît. | boolean | — | false |
| show-password | whether to show toggleable password input| boolean | — | false | | show-password | Si le champ doit un champ de mot de passe avec bouton de visualisation. | boolean | — | false |
| disabled | Si le champs est désactivé. | boolean | — | false | | disabled | Si le champ est désactivé. | boolean | — | false |
| size | Taille du champ, marche quand `type` n'est pas 'textarea'. | string | medium / small / mini | — | | size | Taille du champ, marche quand `type` n'est pas 'textarea'. | string | medium / small / mini | — |
| prefix-icon | Classe de l'icône de préfixe. | string | — | — | | prefix-icon | Classe de l'icône de préfixe. | string | — | — |
| suffix-icon | Classe de l'iĉone de suffixe. | string | — | — | | suffix-icon | Classe de l'iĉone de suffixe. | string | — | — |
@ -567,15 +567,15 @@ Vous pouvez aller chercher des infos de suggestions sur un serveur distant.
| blur | Se déclenche quand Input perds le focus. | (event: Event) | | blur | Se déclenche quand Input perds le focus. | (event: Event) |
| focus | Se déclenche quand Input a le focus. | (event: Event) | | focus | Se déclenche quand Input a le focus. | (event: Event) |
| change | Se déclenche quand la valeur change. | (value: string \ number) | | change | Se déclenche quand la valeur change. | (value: string \ number) |
| clear | Se déclenche quand le champs est effacé par le bouton de reset. | — | | clear | Se déclenche quand le champ est effacé par le bouton de reset. | — |
### Méthodes de l'Input ### Méthodes de l'Input
| Méthode | Description | Paramètres | | Méthode | Description | Paramètres |
|------|--------|-------| |------|--------|-------|
| focus | Met le focus sur le champs. | — | | focus | Met le focus sur le champ. | — |
| blur | Retire le focus de le champs. | — | | blur | Retire le focus de le champ. | — |
| select | Sélectionne le texte du champs. | — | | select | Sélectionne le texte du champ. | — |
### Attributs de l'autocomplétion ### Attributs de l'autocomplétion
@ -607,8 +607,8 @@ Vous pouvez aller chercher des infos de suggestions sur un serveur distant.
|------|--------| |------|--------|
| prefix | Contenu du préfixe. | | prefix | Contenu du préfixe. |
| suffix | Contenu du suffixe. | | suffix | Contenu du suffixe. |
| prepend | Contenu à ajouter avant le champs. | | prepend | Contenu à ajouter avant le champ. |
| append | Contenu à ajouter après le champs. | | append | Contenu à ajouter après le champ. |
### Template personnalisé pour l'autocomplétion ### Template personnalisé pour l'autocomplétion

View File

@ -37,7 +37,7 @@ Permet d'uploader des fichiers en cliquant ou en les déplaçant sur le composan
this.$message.warning(`La limite est 3, vous avez choisi ${files.length} fichiers, soit ${files.length + fileList.length} au total.`); this.$message.warning(`La limite est 3, vous avez choisi ${files.length} fichiers, soit ${files.length + fileList.length} au total.`);
}, },
beforeRemove(file, fileList) { beforeRemove(file, fileList) {
return this.$confirm(`Supprimer le transfert de ${ file.name }`); return this.$confirm(`Supprimer le transfert de ${ file.name } ?`);
} }
} }
} }