Skip to content

Commit 586bcec

Browse files
committed
wip: Provide ready-made configuration snippets to help set up the app's configuration file #1140
1 parent c599d83 commit 586bcec

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

extras/configs/helpers.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
module.exports = {
2-
verticalSeparator: (color = 'grey-4') => {
2+
verticalSeparator: (options) => {
3+
// color: color to be used. Default to `grey-4`
4+
const color = options?.color || 'grey-4'
35
return {
46
component: 'QSeparator',
57
vertical: true,
68
color
79
}
810
},
9-
horizontalSeparator: (color = 'grey-4') => {
11+
horizontalSeparator: (options) => {
12+
// color: color to be used. Default to `grey-4`
13+
const color = options?.color || 'grey-4'
1014
return {
1115
component: 'QSeparator',
1216
class: 'full-width',
1317
style: 'min-height: 1px;',
1418
color
1519
}
1620
},
17-
leftPane: (component = 'LeftPane') => {
21+
leftPane: (options) => {
22+
// component: component to be used to render the leftPane. Default to 'LeftPane`
23+
const component = options?.component || 'LeftPane'
1824
return {
1925
content: [{ component }]
2026
}

0 commit comments

Comments
 (0)