Skip to content

Commit 4e1f1e6

Browse files
yaffolsdirix
authored andcommitted
Adds arrayList.title class and cardProps binding to ArrayLayoutRenderer
This permits the addition of custom classes to the arrayList title container, and application of custom vuetify props, such as variant.
1 parent e3455b4 commit 4e1f1e6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/vue-vuetify/src/layouts/ArrayLayoutRenderer.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<v-card v-if="control.visible" :class="styles.arrayList.root">
3-
<v-card-title>
2+
<v-card v-if="control.visible" :class="styles.arrayList.root" v-bind="cardProps">
3+
<v-card-title :class="styles.arrayList.title">
44
<v-toolbar flat :class="styles.arrayList.toolbar">
55
<v-toolbar-title :class="styles.arrayList.label">{{
66
computedLabel
@@ -335,13 +335,15 @@ const controlRenderer = defineComponent({
335335
control.vuetifyProps('v-expansion-panels')
336336
)
337337
);
338+
const cardProps = computed(() => control.vuetifyProps('v-card') )
338339
const suggestToDelete = ref<null | number>(null);
339340
// indicate to our child renderers that we are increasing the "nested" level
340341
useNested('array');
341342
const t = useTranslator();
342343
return {
343344
...control,
344345
currentlyExpanded,
346+
cardProps,
345347
expansionPanelsProps,
346348
suggestToDelete,
347349
t,

packages/vue-vuetify/src/styles/defaultStyles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export const defaultStyles: Styles = {
2323
arrayList: {
2424
root: 'array-list',
2525
toolbar: 'array-list-toolbar',
26+
title: 'array-list-title',
2627
validationIcon: 'array-list-validation',
2728
addButton: 'array-list-add',
2829
label: 'array-list-label',

packages/vue-vuetify/src/styles/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface Styles {
3737
arrayList: {
3838
root?: string;
3939
toolbar?: string;
40+
title?: string,
4041
validationIcon?: string;
4142
container?: string;
4243
addButton?: string;

0 commit comments

Comments
 (0)