mirror of https://github.com/ElemeFE/element
Docs: add slot doc for el-upload (#12041)
parent
9aa68694fa
commit
b5063ceb2f
|
@ -419,6 +419,12 @@ disabled | whether to disable upload | boolean | — | false |
|
||||||
limit | maximum number of uploads allowed | number | — | — |
|
limit | maximum number of uploads allowed | number | — | — |
|
||||||
on-exceed | hook function when limit is exceeded | function(files, fileList) | — | - |
|
on-exceed | hook function when limit is exceeded | function(files, fileList) | — | - |
|
||||||
|
|
||||||
|
### Slot
|
||||||
|
| Name | Description |
|
||||||
|
|------|--------|
|
||||||
|
| trigger | content which triggers file dialog |
|
||||||
|
| tip | content of tips |
|
||||||
|
|
||||||
### Methods
|
### Methods
|
||||||
| Methods Name | Description | Parameters |
|
| Methods Name | Description | Parameters |
|
||||||
|---------- |-------- |---------- |
|
|---------- |-------- |---------- |
|
||||||
|
|
|
@ -412,6 +412,12 @@ Puede arrastrar el archivo dentro de un área en especifico para cargar el archi
|
||||||
| limit | número máximo de cargas permitidas | number | — | — |
|
| limit | número máximo de cargas permitidas | number | — | — |
|
||||||
| on-exceed | _hook_ lanzado cuando el límite ha sido excedido | function(files, fileList) | — | - |
|
| on-exceed | _hook_ lanzado cuando el límite ha sido excedido | function(files, fileList) | — | - |
|
||||||
|
|
||||||
|
### Slot
|
||||||
|
| Nombre | Descripcion |
|
||||||
|
| ------------ | ---------------------------------------- |
|
||||||
|
| trigger | content which triggers file dialog |
|
||||||
|
| tip | content of tips |
|
||||||
|
|
||||||
### Métodos
|
### Métodos
|
||||||
| Nombre del método | Descripción | Parametros |
|
| Nombre del método | Descripción | Parametros |
|
||||||
| ----------------- | ---------------------------------------- | ------------------------- |
|
| ----------------- | ---------------------------------------- | ------------------------- |
|
||||||
|
|
|
@ -427,6 +427,12 @@
|
||||||
| limit | 最大允许上传个数 | number | — | — |
|
| limit | 最大允许上传个数 | number | — | — |
|
||||||
| on-exceed | 文件超出个数限制时的钩子 | function(files, fileList) | — | - |
|
| on-exceed | 文件超出个数限制时的钩子 | function(files, fileList) | — | - |
|
||||||
|
|
||||||
|
### Slot
|
||||||
|
| name | 说明 |
|
||||||
|
|------|--------|
|
||||||
|
| trigger | 触发文件选择框的内容 |
|
||||||
|
| tip | 提示说明文字 |
|
||||||
|
|
||||||
### Methods
|
### Methods
|
||||||
| 方法名 | 说明 | 参数 |
|
| 方法名 | 说明 | 参数 |
|
||||||
|---------- |-------------- | -- |
|
|---------- |-------------- | -- |
|
||||||
|
|
Loading…
Reference in New Issue