Refactor #3832 - For TreeSelect
parent
b3914f00f2
commit
fd0ef0950b
|
@ -39,12 +39,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="p-treeselect-trigger" role="button" aria-haspopup="tree" :aria-expanded="overlayVisible">
|
<div class="p-treeselect-trigger" role="button" aria-haspopup="tree" :aria-expanded="overlayVisible">
|
||||||
<slot name="indicator">
|
<slot name="indicator">
|
||||||
<span class="p-treeselect-trigger-icon pi pi-chevron-down"></span>
|
<component :is="'ChevronDownIcon'" class="p-treeselect-trigger-icon" />
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
<Portal :appendTo="appendTo">
|
<Portal :appendTo="appendTo">
|
||||||
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
|
||||||
<div v-if="overlayVisible" :ref="overlayRef" @click="onOverlayClick" :class="panelStyleClass" v-bind="panelProps" @keydown="onOverlayKeydown">
|
<div v-if="overlayVisible" :ref="overlayRef" @click="onOverlayClick" :class="panelStyleClass" @keydown="onOverlayKeydown" v-bind="panelProps">
|
||||||
<slot name="header" :value="modelValue" :options="options"></slot>
|
<slot name="header" :value="modelValue" :options="options"></slot>
|
||||||
<div class="p-treeselect-items-wrapper" :style="{ 'max-height': scrollHeight }">
|
<div class="p-treeselect-items-wrapper" :style="{ 'max-height': scrollHeight }">
|
||||||
<TSTree
|
<TSTree
|
||||||
|
@ -75,6 +75,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import ChevronDownIcon from 'primevue/icon/chevrondown';
|
||||||
import OverlayEventBus from 'primevue/overlayeventbus';
|
import OverlayEventBus from 'primevue/overlayeventbus';
|
||||||
import Portal from 'primevue/portal';
|
import Portal from 'primevue/portal';
|
||||||
import Ripple from 'primevue/ripple';
|
import Ripple from 'primevue/ripple';
|
||||||
|
@ -514,7 +515,8 @@ export default {
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
TSTree: Tree,
|
TSTree: Tree,
|
||||||
Portal: Portal
|
Portal: Portal,
|
||||||
|
ChevronDownIcon: ChevronDownIcon
|
||||||
},
|
},
|
||||||
directives: {
|
directives: {
|
||||||
ripple: Ripple
|
ripple: Ripple
|
||||||
|
|
Loading…
Reference in New Issue