Update API doc

pull/4925/head
GitHub Actions Bot 2023-12-01 09:04:05 +00:00
parent 31cb589c6e
commit 1443de90e7
2 changed files with 42 additions and 5 deletions

View File

@ -44,8 +44,8 @@ describe('Tree.vue', () => {
it('emits update:filterValue on filter input', async () => {
wrapper = mount(Tree, {
props: {
filter: true,
},
filter: true
}
});
let searchField = wrapper.find('input.p-tree-filter');
@ -53,5 +53,5 @@ describe('Tree.vue', () => {
await searchField.trigger('keydown.space');
expect(wrapper.emitted('filter')).toBeTruthy();
})
});
});

View File

@ -52076,6 +52076,29 @@
],
"methods": []
},
"TreeFilterEvent": {
"description": "Custom filter event.",
"relatedProp": "TreeEmits.filter",
"props": [
{
"name": "originalEvent",
"optional": false,
"readonly": false,
"type": "Event",
"default": "",
"description": "Original event"
},
{
"name": "value",
"optional": false,
"readonly": false,
"type": "string",
"default": "",
"description": "Filter value"
}
],
"methods": []
},
"TreePassThroughOptions": {
"description": "Custom passthrough(pt) options.",
"relatedProp": "TreeProps.pt",
@ -52578,9 +52601,10 @@
"name": "update:selectionKeys",
"parameters": [
{
"name": "event",
"name": "value",
"optional": false,
"type": "TreeSelectionKeys"
"type": "TreeSelectionKeys",
"description": "New selection keys."
}
],
"returnType": "void",
@ -52637,6 +52661,19 @@
],
"returnType": "void",
"description": "Callback to invoke when a node is collapsed."
},
{
"name": "filter",
"parameters": [
{
"name": "event",
"optional": false,
"type": "TreeFilterEvent",
"description": "Custom filter event."
}
],
"returnType": "void",
"description": "Callback to invoke on filter input."
}
]
}