Skip to content

Commit

Permalink
Merge pull request #5575 from ig-onoffice-de/treeNode-pass-passtrough…
Browse files Browse the repository at this point in the history
…-options

fix: pass passthrough options to the nodeicon slot
  • Loading branch information
tugcekucukoglu committed Apr 19, 2024
2 parents 9c84d09 + 9e42816 commit a41c874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/tree/TreeNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<component v-else :is="checked ? 'CheckIcon' : partialChecked ? 'MinusIcon' : null" :class="slotProps.class" v-bind="getPTOptions('nodeCheckbox.icon')" />
</template>
</Checkbox>
<component v-if="templates['nodeicon']" :is="templates['nodeicon']" :node="node" :class="[cx('nodeIcon')]"></component>
<component v-if="templates['nodeicon']" :is="templates['nodeicon']" :node="node" :class="[cx('nodeIcon')]" v-bind="getPTOptions('nodeIcon')"></component>
<span v-else :class="[cx('nodeIcon'), node.icon]" v-bind="getPTOptions('nodeIcon')"></span>
<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" />
Expand Down

0 comments on commit a41c874

Please sign in to comment.