refs #6694 VnLocation #154

Merged
jsegarra merged 31 commits from 6280_vnLocation into dev 2024-01-29 13:23:04 +00:00
1 changed files with 2 additions and 13 deletions
Showing only changes of commit 9f9835b7ab - Show all commits

View File

@ -12,15 +12,11 @@ const $props = defineProps({
default: () => [],
},
optionLabel: {
type: [String, Function],
type: [String],
jsegarra marked this conversation as resolved Outdated
Outdated
Review

No veo el pq hacerlo function

No veo el pq hacerlo function
default: '',
},
filterOptions: {
type: [Array, Function],
default: () => [],
},
filterRules: {
type: [Array, Function],
type: [Array],
jsegarra marked this conversation as resolved Outdated
Outdated
Review

No veo el pq hacerlo function

No veo el pq hacerlo function
Outdated
Review

No veo el pq hacerlo function

No veo el pq hacerlo function
default: () => [],
},
isClearable: {
jsegarra marked this conversation as resolved Outdated
Outdated
Review

No veo que se use

No veo que se use
@ -57,13 +53,6 @@ const filter = (val, options) => {
const search = val.toString().toLowerCase();
if (!search) return options;
if($props.filterRules.length) {
const passSomeRule = $props.filterRules.some((rule) => {
const cond = eval(rule)
return cond;
});
if(!passSomeRule) return options
}
return options.filter((row) => {
if ($props.filterOptions.length) {