File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/components/FormLayout Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11<template lang="pug">
22div( :class ="styles.FormLayout" )
33 template(
4- v-if ="slotsElms.length" ,
4+ v-if ="!noItemWrap && slotsElms.length" ,
55 v-for ="(item, index) in slotsElms" ,
66 )
77 Item(
88 v-if ="!itemGroupIndexes[index]" ,
99 :key ="index" ,
10- :class ="styles.Item" ,
1110 )
1211 component(
1312 :is ="item" ,
@@ -28,6 +27,15 @@ import { extractElement } from '@/utilities/extract-fragment';
2827import styles from ' @/classes/FormLayout.json' ;
2928import { Item } from ' ./components' ;
3029
30+ interface Props {
31+ /** No wrap all stack elements with FormItem */
32+ noItemWrap? : boolean ;
33+ }
34+
35+ const props = withDefaults (defineProps <Props >(), {
36+ noItemWrap: false ,
37+ });
38+
3139const itemRefs = ref <any []>([]);
3240
3341const itemGroupIndexes = ref <boolean []>([]);
Original file line number Diff line number Diff line change 11export { default as FormLayout } from './FormLayout.vue' ;
22export { Group as FormGroup } from './components/Group' ;
3+ export { Item as FormItem } from './components/Item' ;
You can’t perform that action at this time.
0 commit comments