Commit ab23a219 authored by Simon Malesys's avatar Simon Malesys Committed by iamkun

Docs: Update french doc and changelog (2.8.2) (#15389)

parent e5c73e8e
This diff is collapsed.
......@@ -153,6 +153,9 @@ Spanish documentation is made possible by these community developers:
- [sigfriedCub1990](https://github.com/sigfriedCub1990)
- [thechosenjuan](https://github.com/thechosenjuan)
French documentation is made possible by these community developers:
- [smalesys](https://github.com/smalesys)
## Donation
If you find Element useful, you can buy us a cup of coffee
......
......@@ -1332,7 +1332,7 @@ When the row content is too long and you do not want to display the horizontal s
### Tree data and lazy mode
:::demo You can display tree structure data。When using it, the prop `row-key` is required。Also, child row data can be loaded asynchronously. Set `lazy` property of Table to true and the function `load`. Specify `hasChildren` attribute in row to determine which row contains children.
:::demo You can display tree structure data. When using it, the prop `row-key` is required. Also, child row data can be loaded asynchronously. Set `lazy` property of Table to true and the function `load`. Specify `hasChildren` attribute in row to determine which row contains children.
```html
<template>
......@@ -1344,13 +1344,13 @@ When the row content is too long and you do not want to display the horizontal s
row-key="id">
<el-table-column
prop="date"
label="日期"
label="Date"
sortable
width="180">
</el-table-column>
<el-table-column
prop="name"
label="name"
label="Name"
sortable
width="180">
</el-table-column>
......@@ -1366,12 +1366,12 @@ When the row content is too long and you do not want to display the horizontal s
>
<el-table-column
prop="date"
label="date"
label="Date"
width="180">
</el-table-column>
<el-table-column
prop="name"
label="name"
label="Name"
width="180">
</el-table-column>
</el-table>
......
......@@ -30,30 +30,30 @@ Les Alertes sont des composants non-superposés qui ne disparaissent pas automat
```
:::
### Theme
### Thème
Alert provide two different themes, `light` and `dark`.
Alert fournit deux thèmes différents, `light` et `dark`.
:::demo Set `effect` to change theme, default is `light`.
:::demo Réglez `effect` pour changer le thème, le défaut étant `light`.
```html
<template>
<el-alert
title="success alert"
title="succès"
type="success"
effect="dark">
</el-alert>
<el-alert
title="info alert"
title="info"
type="info"
effect="dark">
</el-alert>
<el-alert
title="warning alert"
title="avertissement"
type="warning"
effect="dark">
</el-alert>
<el-alert
title="error alert"
title="erreur"
type="error"
effect="dark">
</el-alert>
......@@ -175,7 +175,7 @@ Contient un message avec plus d'informations.
```html
<template>
<el-alert
title="avec description"
title="Titre"
type="success"
description="Ceci est la description.">
</el-alert>
......@@ -227,7 +227,7 @@ Contient un message avec plus d'informations.
| center | Si le texte doit être centré ou non. | boolean | — | false |
| close-text | Texte personnalisé pour le bouton de fermeture. | string | — | — |
| show-icon | Si une icône s'affiche ou non. | boolean | — | false |
| effect | Choose theme | string | light/dark | light |
| effect | Détermine le thème. | string | light/dark | light |
### Slot
......
## Calendar
## Calendrier
Display date.
Affiche un calendrier.
### Basic
### Usage basique
:::demo Set `value` to specify the currently displayed month. If `value` is not specified, current month is displayed. `value` supports two-way binding.
:::demo Réglez `value` pour spécifier le mois à afficher. Si `value` n'est pas sépcifié, le mois actuel sera affiché. `value` supporte le two-way binding.
```html
<el-calendar v-model="value">
</el-calendar>
......@@ -21,9 +21,9 @@ Display date.
```
:::
### Custom Content
### Contenu personnalisé
:::demo Customize what is displayed in the calendar cell by setting `scoped-slot` named `dateCell`. In `scoped-slot` you can get the date (the date of the current cell), data (including the type, isSelected, day attribute). For details, please refer to the API documentation below.
:::demo Personnalisez le contenu du calendrier en utilisant le `scoped-slot` appelé `dateCell`. Dans ce `scoped-slot` vous aurez accès au paramètres date (date de la cellule courante), data (incluant les attributs type, isSelected et day). pour plus d'informations, référez-vous à la documentation ci-dessous.
```html
<el-calendar>
<!-- Use 2.5 slot syntax. If you use Vue 2.6, please use new slot syntax-->
......@@ -43,23 +43,25 @@ Display date.
```
:::
### Range
### Intervalle
:::demo Set the `range` attribute to specify the display range of the calendar. Start time must be Monday, end time must be Sunday, and the time span cannot exceed two months.
:::demo Utilisez l'attribut `range` pour afficher un intervalle particulier. Le début doit être un lundi et la fin un dimanche, l'intervalle ne pouvant excéder deux mois.
```html
<el-calendar :range="['2019-03-04', '2019-03-24']">
</el-calendar>
```
:::
### Attributes
| Attribute | Description | Type | Accepted Values | Default |
### Attributs
| Attribut | Description | Type | Valeurs acceptées | Défaut |
|-----------------|-------------- |---------- |---------------------- |--------- |
| value / v-model | binding value | Date/string/number | — | — |
| range | time range, including start time and end time. Start time must be Monday, end time must be Sunday, the time span cannot exceed two months | Array | — | — |
| value / v-model | Valeur liée. | Date/string/number | — | — |
| range | Intervalle de dates, début et fin inclus. Le début doit être un lundi et la fin un dimanche, l'intervalle ne pouvant excéder deux mois. | Array | — | — |
### Slot dateCell
### dateCell scoped slot 参数
| Attribute | Description | Type | Accepted Values | Default |
| Attribut | Description | Type | Valeurs acceptées | Défaut |
|-----------------|-------------- |---------- |---------------------- |--------- |
| date | date the cell represents | Date | — | — |
| data | { type, isSelected, day}. `type` indicates which month the date belongs, optional values are prev-month, current-month, next-month; `isSelected` indicates whether the date is selected; `day` is the formatted date in the format yyyy-MM-dd | Object | — | — |
| date | Date de la cellule courante. | Date | — | — |
| data | { type, isSelected, day }. `type` indique le mois de la date courante, les valeurs prev-month, current-month et next-month pouvant être utilisées; `isSelected` indique si la date est sélectionnée; `day` est la date formattée en yyyy-MM-dd. | Object | — | — |
......@@ -147,7 +147,7 @@ Quand la page est suffisement large mais avec une hauteur limitée, vous pouvez
```
:::
By default, `direction` is `horizontal`. Let carousel be displayed in the vertical direction by setting `direction` to `vertical`.
Par défaut, `direction` est `horizontal`. Vous pouvez faire en sorte que le défilement soit vertical em mettant `direction` à `vertical`.
:::demo
```html
......@@ -191,7 +191,7 @@ By default, `direction` is `horizontal`. Let carousel be displayed in the vertic
| arrow | Détermine quand les flèches sont affichés. | string | always/hover/never | hover |
| type | Type du carousel. | string | card | — |
| loop | Affiche les éléments en boucle. | boolean | - | true |
| direction | display direction | string | horizontal/vertical | horizontal |
| direction | Détermine la direction du défilement. | string | horizontal/vertical | horizontal |
### Évènements du Carousel
| Nom | Description | Paramètres |
......
......@@ -128,4 +128,4 @@ En plus de l'utilisation de l'attribut `title`, vous pouvez configurer les titre
|---------- |-------------- |---------- |-------------------------------- |-------- |
| name | Identifiant unique du panneau. | string/number | — | — |
| title | Titre du panneau. | string | — | — |
| disabled | disable the collapse item | boolean | — | — |
| disabled | Désactive le panneau. | boolean | — | — |
## Divider
The dividing line that separates the content.
Une ligne de séparation entre deux contenus.
### Basic usage
### Usage basique
Divide the text of different paragraphs.
Séparer le texte de deux paragraphes.
:::demo
```html
......@@ -18,10 +18,9 @@ Divide the text of different paragraphs.
```
:::
### Custom content
You can customize the content on the divider line.
### Contenu personnalisé
Vous ajouter du contenu dans la ligne.
:::demo
```html
......@@ -38,24 +37,25 @@ You can customize the content on the divider line.
```
:::
### Vertical divider
### Séparation verticale
:::demo
```html
<template>
<div>
<span>Rain</span>
<span>Pluie</span>
<el-divider direction="vertical"></el-divider>
<span>Home</span>
<span>Maison</span>
<el-divider direction="vertical"></el-divider>
<span>Grass</span>
<span>Herbe</span>
</div>
</template>
```
:::
### Divider Attributes
| Attribute | Description | Type | Accepted Values | Default |
### Attributs
| Attribut | Description | Type | Valeurs acceptées | Défaut |
|------------- |---------------- |---------------- |---------------------- |-------- |
| direction | Set divider's direction | string | horizontal / vertical | horizontal |
| content-position | customize the content on the divider line | String | left / right / center | center |
\ No newline at end of file
| direction | Régle la direction du séparateur. | string | horizontal / vertical | horizontal |
| content-position | Personnalise le contenu du séparateur. | String | left / right / center | center |
\ No newline at end of file
......@@ -280,7 +280,7 @@ En plus de la taille par défaut, le composant Dropdown propose trois autres tai
| hide-on-click | Si le menu doit disparaître après avoir cliqué sur un élément. | boolean | — | true |
| show-timeout | Délai avant d'afficher le menu (ne marche que si `trigger` est `hover`) | number | — | 250 |
| hide-timeout | Délai avant de cacher le menu (ne marche que si `trigger` est `hover`) | number | — | 150 |
| tabindex | [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Dropdown | number | — | 0 |
| tabindex | [tabindex](https://developer.mozilla.org/fr/docs/Web/HTML/Attributs_universels/tabindex) de Dropdown | number | — | 0 |
### Dropdown Slots
......
......@@ -382,7 +382,7 @@ Cet exemple montre comment vous pouvez personnaliser vos règles de validation p
:::
:::tip
Custom validate callback function must be called. See more advanced usage at [async-validator](https://github.com/yiminghe/async-validator).
Les callback de validations personnalisées doivent être appelées. Un usage plus avancé se trouve ici: [async-validator](https://github.com/yiminghe/async-validator).
:::
### Ajouter ou supprimer des champs dynamiquement
......@@ -512,7 +512,7 @@ Custom validate callback function must be called. See more advanced usage at [as
:::
:::tip
When an `el-form-item` is nested in another `el-form-item`, its label width will be `0`. You can set `label-width` on that `el-form-item` if needed.
Lorsqu'un `el-form-item` est imbriqué dans un autre `el-form-item`, la largeur de son label sera `0`. Utilisez `label-width` sur ce `el-form-item` si besoin.
:::
### Taille
......@@ -592,7 +592,7 @@ Tout les composants d'un formulaire héritent leur attribut `size` de ce formula
| rules | Règles de validation du formulaire. | object | — | — |
| inline | Si le formulaire est horizontal. | boolean | — | false |
| label-position | Position des labels. Si 'left' ou 'right', `label-width` est aussi requis. | string | left / right / top | right |
| label-width | Largeur des labels, tout les enfants directs hériteront de cette valeur. Width `auto` is supported. | string | — | — |
| label-width | Largeur des labels, tout les enfants directs hériteront de cette valeur. La largeur `auto` est supportée. | string | — | — |
| label-suffix | Suffixe de labels. | string | — | — |
| hide-required-asterisk | Si les champs obligatoires doivent avoir une astérisque rouge (étoile) à coté de leurs labels. | boolean | — | false |
| show-message | Si le message d'erreur doit apparaître. | boolean | — | true |
......@@ -623,7 +623,7 @@ Tout les composants d'un formulaire héritent leur attribut `size` de ce formula
| ---- | ----| ---- | ---- | ---- |
| prop | Une des clés de `model`. Utilisés par les méthodes validate et resetFields. Requis. | string | Clés du model passé à `form`. |
| label | Le label. | string | — | — |
| label-width | Largeur du label, e.g. '50px'. Width `auto` is supported. | string | — | — |
| label-width | Largeur du label, e.g. '50px'. La largeur `auto` est supportée. | string | — | — |
| required | Si le champ est requis ou non. Si omis, sera déterminé par les règles de validation. | boolean | — | false |
| rules | Règles de validation du formulaire. | object | — | — |
| error | Message d'erreur du champ. Si il est modifié, le champ l'affichera immédiatement. | string | — | — |
......
## Image
Besides the native features of img, support lazy load, custom placeholder and load failure, etc.
### Basic Usage
En plus des propriétés natives de img, ce composant supporte le lazy loading, les placeholder personnalisés, les échecs de téléchargement, etc.
:::demo Indicate how the image should be resized to fit its container by `fit`, same as native [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
### Usage basique
:::demo Indique comment l'image devrait être redimmensionnée pour s'adapter à son conteneur grâce à `fit`, identique au [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) natif.
```html
<div class="demo-image">
<div class="block" v-for="fit in fits" :key="fit">
......@@ -30,18 +31,18 @@ Besides the native features of img, support lazy load, custom placeholder and lo
### Placeholder
:::demo Custom placeholder content when image hasn't loaded yet by `slot = placeholder`
:::demo Placeholder personnalisé qui s'affiche lorsque l'image n'est pas encore chargée, grâce à `slot = placeholder`.
```html
<div class="demo-image__placeholder">
<div class="block">
<span class="demonstration">Default</span>
<span class="demonstration">Défaut</span>
<el-image :src="src"></el-image>
</div>
<div class="block">
<span class="demonstration">Custom</span>
<span class="demonstration">Personnalisé</span>
<el-image :src="src">
<div slot="placeholder" class="image-slot">
Loading<span class="dot">...</span>
Chargement<span class="dot">...</span>
</div>
</el-image>
</div>
......@@ -59,17 +60,17 @@ Besides the native features of img, support lazy load, custom placeholder and lo
```
:::
### Load Failed
### Échec du chargement
:::demo Custom failed content when error occurs to image load by `slot = error`
:::demo Contenu personnalisé qui s'affiche lorsque le chargement a échoué, grâce à `slot = error`.
```html
<div class="demo-image__error">
<div class="block">
<span class="demonstration">Default</span>
<span class="demonstration">Défaut</span>
<el-image></el-image>
</div>
<div class="block">
<span class="demonstration">Custom</span>
<span class="demonstration">Personnalisé</span>
<el-image>
<div slot="error" class="image-slot">
<i class="el-icon-picture-outline"></i>
......@@ -80,9 +81,9 @@ Besides the native features of img, support lazy load, custom placeholder and lo
```
:::
### Lazy Load
### Lazy Loading
:::demo Use lazy load by `lazy = true`. Image will load until scroll into view when set. You can indicate scroll container that adds scroll listener to by `scroll-container`. If undefined, will be the nearest parent container whose overflow property is auto or scroll.
:::demo Utilisez le lazy loading avec `lazy = true`. Les images ne se chargeront que lorsque le scrolling les atteindra. Vous pouvez indiquer le conteneur grâce à `scroll-container`. Si undefined, ce sera le conteneur parent le plus proche avec la propriété overflow à auto ou scroll.
```html
<div class="demo-image__lazy">
<el-image v-for="url in urls" :key="url" :src="url" lazy></el-image>
......@@ -108,25 +109,23 @@ Besides the native features of img, support lazy load, custom placeholder and lo
```
:::
### Attributes
| Attribute | Description | Type | Accepted values | Default |
### Attributs
| Attribut | Description | Type | Valeurs acceptées | Défaut |
|---------- |-------- |---------- |------------- |-------- |
| src | Image source, same as native | string | — | - |
| fit | Indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) | fill / contain / cover / none / scale-down | — | - |
| alt | Native alt | string | - | - |
| lazy | Whether to use lazy load | boolean | — | false |
| scroll-container | The container to add scroll listener when using lazy load | string / HTMLElement | — | The nearest parent container whose overflow property is auto or scroll |
### Events
| Event Name | Description | Parameters |
| src | Source de l'image, identique au natif. | string | — | - |
| fit | Indique comment l'image devrait être redimmensionnée pour s'adapter à son conteneur, identique à [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) | fill / contain / cover / none / scale-down | — | - |
| alt | Attribut alt natif.| string | - | - |
| lazy | Si le lazy loading doit être utilisé. | boolean | — | false |
| scroll-container | Le conteneur auquel ajouter le listener du scroll en mode lazy loading. | string / HTMLElement | — | Le conteneur parent le plus proche avec la propriété overflow à auto ou scroll. |
### Évènements
| Nom | Description | Paramètres |
|---------- |-------- |---------- |
| load | Same as native load | (e: Event) |
| error | Same as native error | (e: Error) |
| load | Identique au load natif. | (e: Event) |
| error | Identique au error natif. | (e: Error) |
### Slots
| Slot Name | Description |
| Nom | Description |
|---------|-------------|
| placeholder | Triggers when image load |
| error | Triggers when image load failed |
| placeholder | Se déclenche quand l'image charge. |
| error | Se déclenche quand le chargement de l'image a échoué. |
## InputNumber
Un champs d'input de valeurs numériques, avec un domaine personnalisable.
Un champ d'input de valeurs numériques, avec un domaine personnalisable.
### Usage
......@@ -69,9 +69,9 @@ Vous pouvez déterminer un pas pour le champs.
```
:::
### Step strictly
### Pas strict
:::demo The `step-strictly` attribute accepts a `boolean`. if this attribute is `true`, input value can only be multiple of step.
:::demo L'attribut `step-strictly` accepte un `boolean`. Si cet attribut est `true`, la valeur de l'input ne peut être qu'un multiple de `step`.
```html
<template>
......@@ -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 | whether input value can only be multiple of step | number | — | false |
| step-strictly | Si la valeur ne peut être qu'un multiple du pas. | number | — | 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 |
......
......@@ -520,9 +520,9 @@ Vous pouvez aller chercher des infos de suggestions sur un serveur distant.
```
:::
### Limit length
### Taille limite
:::demo `maxlength` and `minlength` are attributes of native input, they declare a limit on the number of characters a user can input. The "number of characters" is measured using JavaScript string length.Setting the `maxlength` prop for a text or textarea type of Input can limit the length of input value, allows you to show word count by setting `show-word-limit` to `true` at the same time.
:::demo `maxlength` et `minlength` sont des attributs natifs, indiquant la taille limite de l'input. Le nombre de caractères est mesuré par la taille de la chaine Javascript. Si vous utilisez `maxlength`, vous pourrez montrer le nombre de caractères en mettant `show-word-limit` à `true`.
```html
<el-input
......@@ -564,7 +564,7 @@ export default {
| value / v-model | Variable liée. | string / number | — | — |
| maxlength| Identique à `maxlength` dans l'input natif. | number| — | — |
| minlength| Identique à `minlength` dans l'input natif. | number | — | — |
| show-word-limit | whether show word count,only works when `type` is 'text' or 'textarea' | boolean | — | false |
| show-word-limit | Affiche le nombre de caractères restant, ne marche que lorsque `type` est 'text' ou 'textarea'. | boolean | — | false |
| placeholder| Placeholder de l' Input. | string | — | — |
| clearable | Si le bouton de reset apparaît. | boolean | — | false |
| show-password | Si le champ doit un champ de mot de passe avec bouton de visualisation. | boolean | — | false |
......
## Link
Text hyperlink
Un hyperlien textuel.
### Basic
### Usage basique
Lien texte basique.
Basic text link
:::demo
```html
<div>
<el-link href="https://element.eleme.io" target="_blank">default</el-link>
<el-link type="primary">primary</el-link>
<el-link type="success">success</el-link>
<el-link type="warning">warning</el-link>
<el-link href="https://element.eleme.io" target="_blank">défaut</el-link>
<el-link type="primary">primaire</el-link>
<el-link type="success">succès</el-link>
<el-link type="warning">avertissement</el-link>
<el-link type="danger">danger</el-link>
<el-link type="info">info</el-link>
</div>
......@@ -20,17 +21,18 @@ Basic text link
:::
### Disabled
### Désactivé
Lien désactivé.
Disabled state of link
:::demo
```html
<div>
<el-link disabled>default</el-link>
<el-link type="primary" disabled>primary</el-link>
<el-link type="success" disabled>success</el-link>
<el-link type="warning" disabled>warning</el-link>
<el-link disabled>défaut</el-link>
<el-link type="primary" disabled>primaire</el-link>
<el-link type="success" disabled>succès</el-link>
<el-link type="warning" disabled>avertissement</el-link>
<el-link type="danger" disabled>danger</el-link>
<el-link type="info" disabled>info</el-link>
</div>
......@@ -38,40 +40,42 @@ Disabled state of link
:::
### Underline
### Souligné
Lien souligné.
Underline of link
:::demo
```html
<div>
<el-link :underline="false">Without Underline</el-link>
<el-link>With Underline</el-link>
<el-link :underline="false">Non-souligné</el-link>
<el-link>Souligné</el-link>
</div>
```
:::
### Icon
### Icône
Lien avec icône.
Link with icon
:::demo
```html
<div>
<el-link icon="el-icon-edit">Edit</el-link>
<el-link>Check<i class="el-icon-view el-icon--right"></i> </el-link>
<el-link icon="el-icon-edit">Éditer</el-link>
<el-link>Vérifier<i class="el-icon-view el-icon--right"></i> </el-link>
</div>
```
:::
### Attributes
### Attributs
| Attribute | Description | Type | Options | Default |
| --------- | ----------------------------------- | ------- | ------------------------------------------- | ------- |
| type | type | string | primary / success / warning / danger / info | default |
| underline | whether the component has underline | boolean | — | true |
| disabled | whether the component is disabled | boolean | — | false |
| href | same as native hyperlink's `href` | string | — | - |
| icon | class name of icon | string | — | - |
| Attribut | Description | Type | Options | Défaut |
| --------- | ------------------------------- | ------- | ------------------------------------------- | ------- |
| type | Type du lien. | string | primary / success / warning / danger / info | défaut |
| underline | Si le composant est souligné. | boolean | — | true |
| disabled | Si le composant est désactivé. | boolean | — | false |
| href | Identique au `href` natif. | string | — | - |
| icon | Nom de classe de l'icône. | string | — | - |
......@@ -144,9 +144,9 @@ Vous pouvez ajouter plus de modules suivant vos besoins.
```
:::
### Hide pagination when there is only one page
### Cacher la pagination si il n'y a qu'une seule page
When there is only one page, hide the pagination by setting the `hide-on-single-page` attribute.
Lorsqu'il n'y a qu'une seule page, il est possible de cacher la pagination avec l'attribut `hide-on-single-page`.
:::demo
```html
......@@ -189,7 +189,7 @@ When there is only one page, hide the pagination by setting the `hide-on-single-
| prev-text | Texte du bouton prev. | string | — | — |
| next-text | Texte du bouton next. | string | — | — |
| disabled | Si la pagination est désactivée. | boolean | — | false |
| hide-on-single-page | whether to hide when there's only one page | boolean | — | - |
| hide-on-single-page | Si la pagination doit être cachée quand il n'y a qu'une seule page. | boolean | — | - |
### Évènements
......
......@@ -153,7 +153,7 @@ Vous pouvez aussi imbriquer des opérations. Procéder ainsi est plus léger que
| popper-options | Paramètres pour [popper.js](https://popper.js.org/documentation.html). | object | Référez-vous à [popper.js](https://popper.js.org/documentation.html). | `{ boundariesElement: 'body', gpuAcceleration: false }` |
| popper-class | Classe du popover. | string | — | — |
| open-delay | Délai d'affichage, lorsque `trigger` est 'hover', en millisecondes. | number | — | — |
| tabindex | [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Popover | number | — | 0 |
| tabindex | [tabindex](https://developer.mozilla.org/fr/docs/Web/HTML/Attributs_universels/tabindex) de Popover | number | — | 0 |
### Slot
......
......@@ -4,7 +4,7 @@ Utilisé pour donner une note sur cinq étoiles.
### Usage
:::demo Rate divise les scores en trois niveaux et ces niveaux peuvent être distingués en utilisant différentes couleurs de fond. Par défaut ces couleurs sont identiques, mais vous pouvez affecter un tableau des codes couleur à l'attribut `colors`, ainsi que les deux seuils via `low-threshold` et `high-threshold`. Or you can assign them with a object which key is the threshold between two levels and value is the corresponding color.
:::demo Rate divise les scores en trois niveaux et ces niveaux peuvent être distingués en utilisant différentes couleurs de fond. Par défaut ces couleurs sont identiques, mais vous pouvez affecter un tableau des codes couleur à l'attribut `colors`, ainsi que les deux seuils via `low-threshold` et `high-threshold`. Vous pouvez aussi les affecter avec un objet dont la clé est le seuil et la valeur est la couleur correspondante.
```html
<div class="block">
......@@ -122,10 +122,10 @@ Le score peut être en lecture seule. Les demi-étoiles sont supportées.
| allow-half | Si les demi-étoiles sont autorisées. | boolean | — | false |
| low-threshold | Seuil entre les niveaux bas et moyen. La valeur sera incluse dans le niveau bas. | number | — | 2 |
| high-threshold | Seuil entre les niveaux moyen et haut. La valeur sera incluse entre dans le niveau haut. | number | — | 4 |
| colors | colors for icons. If array, it should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding color. | array/object | — | ['#F7BA2A', '#F7BA2A', '#F7BA2A'] |
| colors | colors for icons. Si c'est un array, il doit avoir 3 élements, chacun correspondant à un niveau. Si c'est un objet, la clé est le seuil entre deux niveaux et la valeur est la couleur correspondante. | array/object | — | ['#F7BA2A', '#F7BA2A', '#F7BA2A'] |
| void-color | Couleur des icônes non-sélectionnées. | string | — | #C6D1DE |
| disabled-void-color | Couleur des icônes non-sélectionnées en lecture seule. | string | — | #EFF2F7 |
| icon-classes | class names of icons. If array, ot should have 3 elements, each of which corresponds with a score level, else if object, the key should be threshold value between two levels, and the value should be corresponding icon class. | array/object | — | ['el-icon-star-on', 'el-icon-star-on','el-icon-star-on'] |
| icon-classes | Noms de classe des icônes. Si c'est un array, il doit avoir 3 élements, chacun correspondant à un niveau. Si c'est un objet, la clé est le seuil entre deux niveaux et la valeur est le nom de classe de l'icône. | array/object | — | ['el-icon-star-on', 'el-icon-star-on','el-icon-star-on'] |
| void-icon-class | Classe des icônes non-sélectionnées. | string | — | el-icon-star-off |
| disabled-void-icon-class | Classe des icônes non-sélectionnées en lecture seule. | string | — | el-icon-star-on |
| show-text | Si du texte doit apparaître à droite des étoiles. | boolean | — | false |
......
......@@ -174,7 +174,7 @@ Vous pouvez sélectionner des intervalles de valeurs au lieu d'une valeur unique
```
:::
:::demo Setting this `marks` attribute can show mark on slider.
:::demo Vous pouvez afficher des marqueurs sur le slider grâce à l'attribut `marks`.
```html
<template>
<div class="block">
......@@ -230,7 +230,7 @@ Vous pouvez sélectionner des intervalles de valeurs au lieu d'une valeur unique
| label | Label pour les lecteurs d'écran. | string | — | — |
| debounce | Délai après écriture en millisecondes, marche quand `show-input` est `true`. | number | — | 300 |
| tooltip-class | Classe du tooltip. | string | — | — |
| marks | marks, type of key must be `number` and must in closed interval `[min, max]`, each mark can custom style| object | — | — |
| marks | Marqueurs, les clés doivent être des `number` et être comprises dans l'intervalle `[min, max]`. Chaque marqueur peut avoir un style particulier. | object | — | — |
## Évènements
......
......@@ -1333,9 +1333,9 @@ Lorsque le contenu d'une ligne est trop long et que vous ne souhaitez pas affich
```
:::
### Tree data and lazy mode
### Arborescence et lazy loading
:::demo You can display tree structure data。When using it, the prop `row-key` is required。Also, child row data can be loaded asynchronously. Set `lazy` property of Table to true and the function `load`. Specify `hasChildren` attribute in row to determine which row contains children.
:::demo Vous pouvez afficher les données en arborescence, la propriété `row-key` devenant dans ce cas obligatoire. Les données enfants peuvent aussi être chargées de manière asynchrone. Mettez la propriété `lazy` à `true` and utilisez la fonction `load`. Spécifiez l'attribut `hasChildren` pour déterminer quelle ligne contient les enfants.
```html
<template>
......@@ -1347,13 +1347,13 @@ Lorsque le contenu d'une ligne est trop long et que vous ne souhaitez pas affich
row-key="id">
<el-table-column
prop="date"
label="日期"
label="Date"
sortable
width="180">
</el-table-column>
<el-table-column
prop="name"
label="name"
label="Nom"
sortable
width="180">
</el-table-column>
......@@ -1369,12 +1369,12 @@ Lorsque le contenu d'une ligne est trop long et que vous ne souhaitez pas affich
>
<el-table-column
prop="date"
label="date"
label="Date"
width="180">
</el-table-column>
<el-table-column
prop="name"
label="name"
label="Nom"
width="180">
</el-table-column>
</el-table>
......@@ -1830,7 +1830,7 @@ Vous pouvez personnaliser les indices des colonnes de type `index`.
| header-row-style | Fonction qui retourne un style pour chaque ligne de header. Peut aussi être un objet assignant un style à chaque ligne de header. | Function({row, rowIndex})/Object | — | — |
| header-cell-class-name | Fonction qui retourne un nom de classe pour chaque cellule de header. Peut aussi être une simple chaîne de caractères assignant une classe à chaque cellule de header. | Function({row, column, rowIndex, columnIndex})/String | — | — |
| header-cell-style | Fonction qui retourne un style pour chaque cellule de header. Peut aussi être un objet assignant un style à chaque cellule de header. | Function({row, column, rowIndex, columnIndex})/Object | — | — |
| row-key | key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used. | Function(row)/String | — | — |
| row-key | Clé de chaque ligne, utilisée pour optimiser le rendu. Requise si `reserve-selection` est activé. Quand c'est un `String`, l'accès multi-niveaux est supporté, e.g. `user.info.id`, mais `user.info[0].id` n'est pas supporté. Dans ce dernier cas une `Function` devrait être utilisée. | Function(row)/String | — | — |
| empty-text | Texte à afficher quand il n'y a pas de données. Vous pouvez changer cette zone grâce à `slot="empty"`. | String | — | No Data |
| default-expand-all | Si toutes les lignes sont étendues par défaut, ne marche que si des lignes ont type="expand". | Boolean | — | false |
| expand-row-keys | Détermine les lignes qui sont étendues, contient les clés des lignes correspondantes. Vous devriez configurer `row-key` avant celle-ci. | Array | — | |
......@@ -1841,9 +1841,9 @@ Vous pouvez personnaliser les indices des colonnes de type `index`.
| summary-method | La méthode pour calculer la somme. | Function({ columns, data }) | — | — |
| span-method | Méthode qui retourne les valeurs de colspan et rowspan. | Function({ row, column, rowIndex, columnIndex }) | — | — |
| select-on-indeterminate | Contrôle le comportement de la checkbox globale dans les tables avec sélection multiple lorsque seulement certaines lignes sont sélectionnées. Si `true`, toutes les lignes sont sélectionnées. | Boolean | — | true |
| indent | horizontal indentation of tree data | Number | — | 16 |
| lazy | whether to lazy loading data | Boolean | — | — |
| load | method for loading child row data, only works when `lazy` is true | Function({ row, treeNode, resolve }) | — | — |
| indent | Indentation horizontale de l'arborescence. | Number | — | 16 |
| lazy | Si le lazy loading doit être utilisé. | Boolean | — | — |
| load | Méthode a utiliser pour le lazy loading, ne fonctionne que lorsque `lazy` est `true`. | Function({ row, treeNode, resolve }) | — | — |
### Évènements de Table
......
......@@ -303,6 +303,6 @@ Seuls les onglets de type carte supportent l'ajout et la suppression.
|---------- |-------- |---------- |------------- |-------- |
| label | Titre de l'onglet. | string | — | — |
| disabled | Si l'onglet est désactivé. | boolean | — | false |
| name |identifiant correspondant au nom des onglets, utilisé par Tabs pour savoir quel est l'onglet actif. | string | — | Numéro de l'onglet dans l'ordre d'apparition, e.g. le premier est '1'. |
| name | Identifiant correspondant au nom des onglets, utilisé par Tabs pour savoir quel est l'onglet actif. | string | — | Numéro de l'onglet dans l'ordre d'apparition, e.g. le premier est '1'. |
| closable | Si l'onglet est supprimable. | boolean | — | false |
| lazy | Si le contenu de l'onglet bénéficie du lazy-loading. | boolean | — | false |
......@@ -194,4 +194,4 @@ Les éléments de formulaire désactivés ne sont pas supportés par Tooltip, pl
| popper-class | Classe du popper de Tooltip. | string | — | — |
| enterable | Si la souris peut entrer dans la Tooltip. | Boolean | — | true |
| hide-after | Délai avant disparition. | number | — | 0 |
| tabindex | [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Tooltip | number | — | 0 |
| tabindex | [tabindex](https://developer.mozilla.org/fr/docs/Web/HTML/Attributs_universels/tabindex) de Tooltip. | number | — | 0 |
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment