mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-03 12:48:45 +08:00
Dropdown: Added slots to documentation (#12985)
* Dropdown: Added slots to documentation Added slots section in english to documentation for dropdown component. Chinese and Spanish missing. * Update dropdown.md
This commit is contained in:
parent
cec8dc351d
commit
ec0074bf8b
@ -331,6 +331,13 @@ Besides default size, Dropdown component provides three additional sizes for you
|
||||
| show-timeout | Delay time before show a dropdown (only works when trigger is `hover`) | number | — | 250 |
|
||||
| hide-timeout | Delay time before hide a dropdown (only works when trigger is `hover`) | number | — | 150 |
|
||||
|
||||
### Dropdown Slots
|
||||
|
||||
| Name | Description |
|
||||
|------|--------|
|
||||
| — | content of Dropdown. Notice: Must be a valid html dom element (ex. `<span>, <button> etc.`) or `el-component`, to attach the trigger listener |
|
||||
| dropdown | content of the Dropdown Menu, usually a `<el-dropdown-menu>` element |
|
||||
|
||||
### Dropdown Events
|
||||
| Event Name | Description | Parameters |
|
||||
|---------- |-------- |---------- |
|
||||
|
@ -333,6 +333,13 @@ Además del tamaño predeterminado, el componente Dropdown proporciona tres tama
|
||||
| show-timeout | Tiempo de retardo antes de mostrar un dropdown (solamente trabaja cuando se dispara `hover`) | number | — | 250 |
|
||||
| hide-timeout | Tiempo de retardo antes de ocultar un dropdown (solamente trabaja cuando se dispara `hover`) | number | — | 150 |
|
||||
|
||||
### Dropdown Slots
|
||||
|
||||
| Nombre | Descripción |
|
||||
|------|--------|
|
||||
| — | content of Dropdown. Notice: Must be a valid html dom element (ex. `<span>, <button> etc.`) or `el-component`, to attach the trigger listener |
|
||||
| dropdown | content of the Dropdown Menu, usually a `<el-dropdown-menu>` element |
|
||||
|
||||
### Dropdown Eventos
|
||||
| Nombre | Descripción | Parametros |
|
||||
| -------------- | ---------------------------------------- | ---------------------------------------- |
|
||||
|
@ -337,6 +337,13 @@ Dropdown 组件提供除了默认值以外的三种尺寸,可以在不同场
|
||||
| show-timeout | 展开下拉菜单的延时(仅在 trigger 为 hover 时有效)| number | — | 250 |
|
||||
| hide-timeout | 收起下拉菜单的延时(仅在 trigger 为 hover 时有效)| number | — | 150 |
|
||||
|
||||
### Dropdown Slots
|
||||
|
||||
| Name | 说明 |
|
||||
|------|--------|
|
||||
| — | 触发下拉列表显示的元素。 注意: 必须是一个元素或者或者组件 |
|
||||
| dropdown | 下拉列表,通常是 `<el-dropdown-menu>` 组件 |
|
||||
|
||||
### Dropdown Events
|
||||
| 事件名称 | 说明 | 回调参数 |
|
||||
|---------- |-------- |---------- |
|
||||
|
Loading…
Reference in New Issue
Block a user