fix(VnTable): create scss
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
d9d54a351f
commit
0ad6b260da
|
@ -83,7 +83,6 @@ const tableModes = [
|
||||||
icon: 'grid_view',
|
icon: 'grid_view',
|
||||||
title: t('grid view'),
|
title: t('grid view'),
|
||||||
value: 'card',
|
value: 'card',
|
||||||
disable: () => console.log('called'),
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -233,7 +232,7 @@ defineExpose({
|
||||||
table-header-class="bg-header"
|
table-header-class="bg-header"
|
||||||
card-container-class="grid-three"
|
card-container-class="grid-three"
|
||||||
flat
|
flat
|
||||||
:style="mode == 'table' && 'max-height: 92vh'"
|
:style="mode == 'table' && 'max-height: 90vh'"
|
||||||
virtual-scroll
|
virtual-scroll
|
||||||
@virtual-scroll="
|
@virtual-scroll="
|
||||||
(event) =>
|
(event) =>
|
||||||
|
|
|
@ -1,14 +1,3 @@
|
||||||
<template>
|
|
||||||
<span v-for="toComponent of componentArray" :key="toComponent.name">
|
|
||||||
<component
|
|
||||||
v-if="toComponent?.component"
|
|
||||||
:is="mix(toComponent).component"
|
|
||||||
v-bind="mix(toComponent).attrs"
|
|
||||||
v-on="mix(toComponent).event ?? {}"
|
|
||||||
v-model="model"
|
|
||||||
/>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, defineModel } from 'vue';
|
import { computed, defineModel } from 'vue';
|
||||||
|
|
||||||
|
@ -53,3 +42,19 @@ function toValueAttrs(attrs) {
|
||||||
return typeof attrs == 'function' ? attrs($props.value) : attrs;
|
return typeof attrs == 'function' ? attrs($props.value) : attrs;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<template>
|
||||||
|
<span
|
||||||
|
v-for="toComponent of componentArray"
|
||||||
|
:key="toComponent.name"
|
||||||
|
class="column flex-center fit"
|
||||||
|
>
|
||||||
|
<component
|
||||||
|
v-if="toComponent?.component"
|
||||||
|
:is="mix(toComponent).component"
|
||||||
|
v-bind="mix(toComponent).attrs"
|
||||||
|
v-on="mix(toComponent).event ?? {}"
|
||||||
|
v-model="model"
|
||||||
|
class="fit"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
|
|
@ -270,7 +270,7 @@ const columns = computed(() => [
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('customer.extendedList.tableVisibleColumns.isEqualizated'),
|
label: t('customer.extendedList.tableVisibleColumns.isEqualizated'),
|
||||||
name: 'isEqualizated',
|
name: 'isEqualizated',
|
||||||
created: true,
|
create: true,
|
||||||
columnFilter: {
|
columnFilter: {
|
||||||
inWhere: true,
|
inWhere: true,
|
||||||
},
|
},
|
||||||
|
@ -399,6 +399,13 @@ function handleLocation(data, location) {
|
||||||
auto-load
|
auto-load
|
||||||
>
|
>
|
||||||
<template #more-create-dialog="{ data }">
|
<template #more-create-dialog="{ data }">
|
||||||
|
<VnLocation
|
||||||
|
:roles-allowed-to-create="['deliveryAssistant']"
|
||||||
|
:options="postcodesOptions"
|
||||||
|
v-model="data.location"
|
||||||
|
@update:model-value="(location) => handleLocation(data, location)"
|
||||||
|
/>
|
||||||
|
<QInput v-model="data.userName" :label="t('Web user')" />
|
||||||
<QInput :label="t('Email')" clearable type="email" v-model="data.email">
|
<QInput :label="t('Email')" clearable type="email" v-model="data.email">
|
||||||
<template #append>
|
<template #append>
|
||||||
<QIcon name="info" class="cursor-info">
|
<QIcon name="info" class="cursor-info">
|
||||||
|
@ -408,18 +415,13 @@ function handleLocation(data, location) {
|
||||||
</QIcon>
|
</QIcon>
|
||||||
</template>
|
</template>
|
||||||
</QInput>
|
</QInput>
|
||||||
<QInput v-model="data.userName" :label="t('Web user')" />
|
|
||||||
<VnLocation
|
|
||||||
:roles-allowed-to-create="['deliveryAssistant']"
|
|
||||||
:options="postcodesOptions"
|
|
||||||
v-model="data.location"
|
|
||||||
@update:model-value="(location) => handleLocation(data, location)"
|
|
||||||
>
|
|
||||||
</VnLocation>
|
|
||||||
</template>
|
</template>
|
||||||
</VnTable>
|
</VnTable>
|
||||||
</template>
|
</template>
|
||||||
|
<i18n>
|
||||||
|
es:
|
||||||
|
Web user: Usuario Web
|
||||||
|
</i18n>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.col-content {
|
.col-content {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
Loading…
Reference in New Issue