Skip to content

Commit 941dfe2

Browse files
committed
feat: add form prop to CRow, which enables form-row styles
1 parent fa4da7f commit 941dfe2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/grid/CRow.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const props = {
1414
alignHorizontal: {
1515
type: String,
1616
validator: str => ['', 'start', 'end', 'center','between', 'around'].includes(str)
17-
}
17+
},
18+
form: Boolean
1819
}
1920
2021
export default {
@@ -25,7 +26,7 @@ export default {
2526
return h(
2627
props.tag || 'div',
2728
mergeData(data, {
28-
staticClass: 'row',
29+
staticClass: props.form ? 'form-row' : 'row',
2930
class: {
3031
'no-gutters': !props.gutters,
3132
[`align-items-${props.alignVertical}`]: props.alignVertical,

src/components/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ export declare class CRow extends Vue {
287287
gutters: boolean
288288
alignVertical: string
289289
alignHorizontal: string
290+
form: boolean
290291
}
291292

292293
export declare class CHeader extends Vue {

0 commit comments

Comments
 (0)