primevue
Version:
PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc
2 lines (1 loc) • 1.28 kB
JavaScript
this.primevue=this.primevue||{},this.primevue.tree=this.primevue.tree||{},this.primevue.tree.style=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}return t(primevue.base.style).default.extend({name:"tree",classes:{root:function(e){var t=e.props;return["p-tree p-component",{"p-tree-selectable":null!=t.selectionMode,"p-tree-loading":t.loading,"p-tree-flex-scrollable":"flex"===t.scrollHeight}]},loadingOverlay:"p-tree-loading-overlay p-component-overlay",loadingIcon:"p-tree-loading-icon",filterContainer:"p-tree-filter-container",input:"p-tree-filter p-inputtext p-component",searchIcon:"p-tree-filter-icon",wrapper:"p-tree-wrapper",container:"p-tree-container",node:function(e){return["p-treenode",{"p-treenode-leaf":e.instance.leaf}]},content:function(e){var t=e.instance;return["p-treenode-content",t.node.styleClass,{"p-treenode-selectable":t.selectable,"p-highlight":t.checkboxMode&&t.$parentInstance.highlightOnSelect?t.checked:t.selected}]},toggler:"p-tree-toggler p-link",togglerIcon:"p-tree-toggler-icon",nodeTogglerIcon:"p-tree-node-toggler-icon",nodeCheckbox:function(e){return[{"p-indeterminate":e.instance.partialChecked}]},nodeIcon:"p-treenode-icon",label:"p-treenode-label",subgroup:"p-treenode-children"}})}();