62
62
:key =" `${control.path}-${control.data.length}-${index}`"
63
63
:class =" styles.arrayList.item"
64
64
>
65
- <v-expansion-panel-title :class =" styles.arrayList.itemHeader" >
66
- <v-container py-0 :class =" styles.arrayList.itemContainer" >
65
+ <v-expansion-panel-title
66
+ :class =" `${styles.arrayList.itemHeader} py-0`"
67
+ >
68
+ <v-container :class =" `${styles.arrayList.itemContainer} py-0`" >
67
69
<v-row
68
70
:style =" `display: grid; grid-template-columns: ${
69
71
!hideAvatar ? 'min-content' : ''
161
163
:disabled ="
162
164
!control.enabled ||
163
165
(appliedOptions.restrict &&
164
- arraySchema !== undefined &&
165
- arraySchema.minItems !== undefined &&
166
- dataLength <= arraySchema.minItems)
166
+ control. arraySchema !== undefined &&
167
+ control. arraySchema.minItems !== undefined &&
168
+ dataLength <= control. arraySchema.minItems)
167
169
"
168
170
@click.stop =" suggestToDelete = index"
169
171
>
250
252
251
253
<script lang="ts">
252
254
import {
253
- Resolve ,
254
255
composePaths ,
255
256
createDefaultValue ,
256
257
findUISchema ,
257
258
getControlPath ,
258
259
type ControlElement ,
259
- type JsonSchema ,
260
260
type UISchemaElement ,
261
261
} from ' @jsonforms/core' ;
262
262
import {
@@ -351,9 +351,9 @@ const controlRenderer = defineComponent({
351
351
return (
352
352
! this .control .enabled ||
353
353
(this .appliedOptions .restrict &&
354
- this .arraySchema !== undefined &&
355
- this .arraySchema .maxItems !== undefined &&
356
- this .dataLength >= this .arraySchema .maxItems )
354
+ this .control . arraySchema !== undefined &&
355
+ this .control . arraySchema .maxItems !== undefined &&
356
+ this .dataLength >= this .control . arraySchema .maxItems )
357
357
);
358
358
},
359
359
dataLength(): number {
@@ -370,13 +370,6 @@ const controlRenderer = defineComponent({
370
370
this .control .rootSchema ,
371
371
);
372
372
},
373
- arraySchema(): JsonSchema | undefined {
374
- return Resolve .schema (
375
- this .control .rootSchema ,
376
- this .control .uischema .scope ,
377
- this .control .rootSchema ,
378
- );
379
- },
380
373
hideAvatar(): boolean {
381
374
return !! this .appliedOptions .hideAvatar ;
382
375
},
0 commit comments