mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Cascader: expose getCheckedNodes and fix options change bug (#16709)
This commit is contained in:
@@ -1936,6 +1936,11 @@ You can customize the content of cascader node.
|
||||
| visible-change | triggers when the dropdown appears/disappears | true when it appears, and false otherwise |
|
||||
| remove-tag | triggers when remove tag in multiple selection mode | the value of the tag which is removed |
|
||||
|
||||
### Cascader Methods
|
||||
| Method Name | Description | Parameters |
|
||||
| ---- | ---- | ---- |
|
||||
| getCheckedNodes | get an array of currently selected node | (leafOnly) whether only return the leaf checked nodes, default is `false` |
|
||||
|
||||
### Cascader Slots
|
||||
| Slot Name | Description |
|
||||
|---------|-------------|
|
||||
@@ -1955,6 +1960,12 @@ You can customize the content of cascader node.
|
||||
| change | triggers when the binding value changes | value |
|
||||
| expand-change | triggers when expand option changes | an array of the expanding node's parent nodes |
|
||||
|
||||
### CascaderPanel Methods
|
||||
| Method Name | Description | Parameters |
|
||||
| ---- | ---- | ---- |
|
||||
| getCheckedNodes | get an array of currently selected node | (leafOnly) whether only return the leaf checked nodes, default is `false` |
|
||||
| clearCheckedNodes | clear checked nodes | - |
|
||||
|
||||
### CascaderPanel Slots
|
||||
| Slot Name | Description |
|
||||
|---------|-------------|
|
||||
|
||||
@@ -1939,6 +1939,11 @@ Puede personalizar el contenido del nodo de cascada.
|
||||
| visible-change | se activa cuando aparece/desaparece el menú desplegable | verdadero cuando aparece, y falso de otra manera |
|
||||
| remove-tag | se activa cuando se quita la etiqueta en modo de selección múltiple | el valor de la etiqueta que se quita |
|
||||
|
||||
### Cascader Methods
|
||||
| Method Name | Description | Parameters |
|
||||
| ---- | ---- | ---- |
|
||||
| getCheckedNodes | get an array of currently selected node | (leafOnly) whether only return the leaf checked nodes, default is `false` |
|
||||
|
||||
### Slots de Cascader
|
||||
| Nombre del slot | Descripción |
|
||||
|---------|-------------|
|
||||
@@ -1958,6 +1963,12 @@ Puede personalizar el contenido del nodo de cascada.
|
||||
| change | se desencadena cuando cambia el valor ligado. | valor |
|
||||
| expand-change | se desencadena cuando las opciones expandidas cambian | un array de los nodos padres del nodo en expansión |
|
||||
|
||||
### CascaderPanel Methods
|
||||
| Method Name | Description | Parameters |
|
||||
| ---- | ---- | ---- |
|
||||
| getCheckedNodes | get an array of currently selected node | (leafOnly) whether only return the leaf checked nodes, default is `false` |
|
||||
| clearCheckedNodes | clear checked nodes | - |
|
||||
|
||||
### Slots de CascaderPanel
|
||||
| Nombre del slot | Descripción |
|
||||
|---------|-------------|
|
||||
|
||||
@@ -1936,6 +1936,11 @@ Vous pouvez personnaliser le contenu du noeud cascader.
|
||||
| visible-change | Se déclenche lorsque le menu déroulant apparaît / disparaît | vrai quand il apparaît, et faux sinon |
|
||||
| remove-tag | Se déclenche lors de la suppression d'une balise en mode de sélection multiple | la valeur de la balise qui est supprimée |
|
||||
|
||||
### Cascader Methods
|
||||
| Method Name | Description | Parameters |
|
||||
| ---- | ---- | ---- |
|
||||
| getCheckedNodes | get an array of currently selected node | (leafOnly) whether only return the leaf checked nodes, default is `false` |
|
||||
|
||||
### Cascader Slots
|
||||
| Slot Name | Description |
|
||||
|---------|-------------|
|
||||
@@ -1955,6 +1960,12 @@ Vous pouvez personnaliser le contenu du noeud cascader.
|
||||
| change | Se déclenche lorsque la valeur de liaison change | value |
|
||||
| expand-change | Se déclenche lorsque l'option d'agrandissement change | an array of the expanding node's parent nodes |
|
||||
|
||||
### CascaderPanel Methods
|
||||
| Method Name | Description | Parameters |
|
||||
| ---- | ---- | ---- |
|
||||
| getCheckedNodes | get an array of currently selected node | (leafOnly) whether only return the leaf checked nodes, default is `false` |
|
||||
| clearCheckedNodes | clear checked nodes | - |
|
||||
|
||||
### CascaderPanel Slots
|
||||
| Slot Name | Description |
|
||||
|---------|-------------|
|
||||
|
||||
@@ -1915,6 +1915,11 @@
|
||||
| visible-change | 下拉框出现/隐藏时触发 | 出现则为 true,隐藏则为 false |
|
||||
| remove-tag | 在多选模式下,移除Tag时触发 | 移除的Tag对应的节点的值 |
|
||||
|
||||
### Cascader Methods
|
||||
| 方法名 | 说明 | 参数 |
|
||||
| ---- | ---- | ---- |
|
||||
| getCheckedNodes | 获取选中的节点 | (leafOnly) 是否只是叶子节点,默认值为 `false` |
|
||||
|
||||
### Cascader Slots
|
||||
| 名称 | 说明 |
|
||||
|---------|-------------|
|
||||
@@ -1934,6 +1939,12 @@
|
||||
| change | 当选中节点变化时触发 | 选中节点的值 |
|
||||
| expand-change | 当展开节点发生变化时触发 | 各父级选项值组成的数组 |
|
||||
|
||||
### CascaderPanel Methods
|
||||
| 方法名 | 说明 | 参数 |
|
||||
| ---- | ---- | ---- |
|
||||
| getCheckedNodes | 获取选中的节点数组 | (leafOnly) 是否只是叶子节点,默认值为 `false` |
|
||||
| clearCheckedNodes | 清空选中的节点 | - |
|
||||
|
||||
### CascaderPanel Slots
|
||||
| 名称 | 说明 |
|
||||
|---------|-------------|
|
||||
|
||||
Reference in New Issue
Block a user