Update API doc
parent
dc724ea2d3
commit
31dde8355a
|
@ -57,8 +57,8 @@ describe('Tree.vue', () => {
|
||||||
|
|
||||||
it('should render icon', ({ expect }) => {
|
it('should render icon', ({ expect }) => {
|
||||||
expect(wrapper.find('span.pi-inbox').exists()).toBeTruthy();
|
expect(wrapper.find('span.pi-inbox').exists()).toBeTruthy();
|
||||||
expect(wrapper.find('span.pi-inbox').classes('p-treenode-icon')).toBeTruthy()
|
expect(wrapper.find('span.pi-inbox').classes('p-treenode-icon')).toBeTruthy();
|
||||||
})
|
});
|
||||||
|
|
||||||
it('should render icon slot', ({ expect }) => {
|
it('should render icon slot', ({ expect }) => {
|
||||||
let wrapper = mount(Tree, {
|
let wrapper = mount(Tree, {
|
||||||
|
@ -80,5 +80,5 @@ describe('Tree.vue', () => {
|
||||||
const nodeIcon = wrapper.find('i[data-node-icon]');
|
const nodeIcon = wrapper.find('i[data-node-icon]');
|
||||||
|
|
||||||
expect(nodeIcon.exists()).toBeTruthy();
|
expect(nodeIcon.exists()).toBeTruthy();
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -57309,6 +57309,19 @@
|
||||||
"returnType": "VNode<RendererNode, RendererElement, Object>[]",
|
"returnType": "VNode<RendererNode, RendererElement, Object>[]",
|
||||||
"description": "Custom toggler icon template."
|
"description": "Custom toggler icon template."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "nodeIcon",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"name": "scope",
|
||||||
|
"optional": false,
|
||||||
|
"type": "{\n \t <span class=\"ml-3 doc-option-parameter-name\">node</span>: <span class=\"doc-option-parameter-type\">TreeNode</span>, <span class=\"doc-option-parameter-type\">// Tree node instance</span>\n }",
|
||||||
|
"description": "togglericon slot's params."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"returnType": "VNode<RendererNode, RendererElement, Object>[]",
|
||||||
|
"description": "Custom node icon template."
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "checkboxicon",
|
"name": "checkboxicon",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
|
Loading…
Reference in New Issue