mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Node icon fixes
This commit is contained in:
parent
a699338e38
commit
e0c634a1f8
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
||||||
<component v-else :is="checked ? 'CheckIcon' : partialChecked ? 'MinusIcon' : null" :class="cx('checkboxIcon')" v-bind="getPTOptions('checkboxIcon')" />
|
<component v-else :is="checked ? 'CheckIcon' : partialChecked ? 'MinusIcon' : null" :class="cx('checkboxIcon')" v-bind="getPTOptions('checkboxIcon')" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span :class="cx('nodeIcon')" v-bind="getPTOptions('nodeIcon')"></span>
|
<span :class="[cx('nodeIcon'), node.icon]" v-bind="getPTOptions('nodeIcon')"></span>
|
||||||
<span :class="cx('label')" v-bind="getPTOptions('label')" @keydown.stop>
|
<span :class="cx('label')" v-bind="getPTOptions('label')" @keydown.stop>
|
||||||
<component v-if="templates[node.type] || templates['default']" :is="templates[node.type] || templates['default']" :node="node" />
|
<component v-if="templates[node.type] || templates['default']" :is="templates[node.type] || templates['default']" :node="node" />
|
||||||
<template v-else>{{ label(node) }}</template>
|
<template v-else>{{ label(node) }}</template>
|
||||||
|
|
|
@ -122,7 +122,7 @@ const classes = {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
checkboxIcon: 'p-checkbox-icon',
|
checkboxIcon: 'p-checkbox-icon',
|
||||||
nodeIcon: ({ instance }) => ['p-treenode-icon', instance.node.icon],
|
nodeIcon: 'p-treenode-icon',
|
||||||
label: 'p-treenode-label',
|
label: 'p-treenode-label',
|
||||||
subgroup: 'p-treenode-children'
|
subgroup: 'p-treenode-children'
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue