#7136 - Enable paginate event in VnSelectFilter #255

Closed
jsegarra wants to merge 86 commits from 7136_vnselectFilter_paginate into dev
3 changed files with 11 additions and 5 deletions
Showing only changes of commit 94e626a460 - Show all commits

View File

@ -21,6 +21,10 @@ const $props = defineProps({
type: String,
default: 'id',
},
dataKey: {
type: String,
default: null,
},
optionFilter: {
type: String,
default: null,
@ -89,7 +93,7 @@ const useURL = computed(() => $props.url);
import { useAttrs } from 'vue';
Outdated
Review

'' es false
$props.url ? $props.url : $attrs.label

'' es false `$props.url ? $props.url : $attrs.label`
const $attrs = useAttrs();
const arrayDataKey = $props.url !== '' ? $props.url : $attrs.label;
const arrayDataKey = $props.dataKey ?? ($props.url !== '' ? $props.url : $attrs.label);
const arrayDataOptions = {
url: $props.url,
jsegarra marked this conversation as resolved Outdated
Outdated
Review

Si lo estas definiendo no puede ser null no?

Si lo estas definiendo no puede ser null no?
where: $props.where,

View File

@ -13,7 +13,6 @@ import VnSelect from 'src/components/common/VnSelect.vue';
const route = useRoute();
const { t } = useI18n();
const workers = ref([]);
const businessTypes = ref([]);
const contactChannels = ref([]);
</script>
@ -99,10 +98,11 @@ const contactChannels = ref([]);
<VnSelect
Outdated
Review

He probado este y se vuelve loco el descriptor

He probado este y se vuelve loco el descriptor

Me tendrás que mostrar, please

Me tendrás que mostrar, please
:input-debounce="0"
:label="t('customer.basicData.salesPerson')"
:options="workers"
:rules="validate('client.salesPersonFk')"
url="Workers/activeWithInheritedRole"
hide-selected
:where="{ role: 'salesPerson' }"
dense
emit-value
map-options
option-label="name"

View File

@ -57,8 +57,7 @@ const props = defineProps({
<QItem class="q-mb-sm">
<QItemSection>
<VnSelect
:where="{ role: 'salesPerson' }"
option-filter="firstName"
data-key="salesperson"
url="Workers/activeWithInheritedRole"
:input-debounce="0"
:label="t('Salesperson')"
@ -68,6 +67,8 @@ const props = defineProps({
map-options
option-label="name"
option-value="id"
:where="{ role: 'salesPerson' }"
option-filter="firstName"
outlined
rounded
use-input
@ -142,6 +143,7 @@ const props = defineProps({
<QItem class="q-mb-sm">
<QItemSection>
<VnSelect
data-key="author"
:input-debounce="0"
:label="t('Author')"
url="Workers/activeWithInheritedRole"