mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 09:52:35 +00:00
Tree: allow filterBy
to be a getter
This commit is contained in:
parent
acfba694f9
commit
42f2c6f969
5 changed files with 9 additions and 9 deletions
|
@ -42,7 +42,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { resolveFieldData } from '@primeuix/utils/object';
|
||||
import { isFunction, resolveFieldData } from '@primeuix/utils/object';
|
||||
import SearchIcon from '@primevue/icons/search';
|
||||
import SpinnerIcon from '@primevue/icons/spinner';
|
||||
import IconField from 'primevue/iconfield';
|
||||
|
@ -222,7 +222,7 @@ export default {
|
|||
computed: {
|
||||
filteredValue() {
|
||||
let filteredNodes = [];
|
||||
const searchFields = this.filterBy.split(',');
|
||||
const searchFields = isFunction(this.filterBy) ? [this.filterBy] : this.filterBy.split(',');
|
||||
const filterText = this.filterValue.trim().toLocaleLowerCase(this.filterLocale);
|
||||
const strict = this.filterMode === 'strict';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue