mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +00:00
Refactor #5426 - For Tree
This commit is contained in:
parent
7bd88de07b
commit
6ea5aba58f
3 changed files with 24 additions and 6 deletions
|
@ -9,7 +9,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<div v-if="filter" :class="cx('filterContainer')" v-bind="ptm('filterContainer')">
|
||||
<input v-model="filterValue" type="text" autocomplete="off" :class="cx('input')" :placeholder="filterPlaceholder" @keydown="onFilterKeydown" v-bind="ptm('input')" />
|
||||
<InputText v-model="filterValue" autocomplete="off" :class="cx('input')" :placeholder="filterPlaceholder" @keydown="onFilterKeydown" v-bind="ptm('input')" />
|
||||
<slot name="searchicon" :class="cx('searchIcon')">
|
||||
<SearchIcon :class="cx('searchIcon')" v-bind="ptm('searchIcon')" />
|
||||
</slot>
|
||||
|
@ -41,6 +41,7 @@
|
|||
<script>
|
||||
import SearchIcon from 'primevue/icons/search';
|
||||
import SpinnerIcon from 'primevue/icons/spinner';
|
||||
import InputText from 'primevue/inputtext';
|
||||
import { ObjectUtils } from 'primevue/utils';
|
||||
import BaseTree from './BaseTree.vue';
|
||||
import TreeNode from './TreeNode.vue';
|
||||
|
@ -240,9 +241,10 @@ export default {
|
|||
}
|
||||
},
|
||||
components: {
|
||||
TreeNode: TreeNode,
|
||||
SearchIcon: SearchIcon,
|
||||
SpinnerIcon: SpinnerIcon
|
||||
TreeNode,
|
||||
InputText,
|
||||
SearchIcon,
|
||||
SpinnerIcon
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue