Skip to content

Commit 3f71f55

Browse files
committed
update split layout
1 parent e16219c commit 3f71f55

File tree

6 files changed

+7
-12
lines changed

6 files changed

+7
-12
lines changed

packages/example/src/examples/vertical-split-layout/data.json renamed to packages/example/src/examples/horizontal-split-layout/data.json

File renamed without changes.

packages/example/src/examples/vertical-split-layout/index.ts renamed to packages/example/src/examples/horizontal-split-layout/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const input: ExampleInputDescription = { schema, uischema, data };
88

99
registerExamples([
1010
{
11-
name: 'vertical-split-layout',
12-
label: 'Vertical Split Layout',
11+
name: 'horizontal-split-layout',
12+
label: 'Horizontal Split Layout',
1313
input,
1414
},
1515
]);

packages/example/src/examples/vertical-split-layout/schema.json renamed to packages/example/src/examples/horizontal-split-layout/schema.json

File renamed without changes.

packages/example/src/examples/vertical-split-layout/uischema.json renamed to packages/example/src/examples/horizontal-split-layout/uischema.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,10 @@
3131
}
3232
],
3333
"options": {
34-
"vertical": true,
34+
"horizontal": true,
3535
"vuetify": {
3636
"splitpanes": {},
37-
"pane[0]": {
38-
"min-size": 20
39-
},
40-
"pane[1]": {
41-
"min-size": 20
42-
}
37+
"pane": [{ "min-size": 20 }, { "min-size": 20 }]
4338
}
4439
}
4540
}

packages/example/src/examples/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { input as errorMessage } from './error-message';
2626
import { input as file } from './file';
2727
import { input as groupLayout } from './group-layout';
2828
import { input as horizontalLayout } from './horizontal-layout';
29+
import { input as horizontalSplitLayout } from './horizontal-split-layout';
2930
import { input as huge } from './huge';
3031
import { input as ifThenElse } from './if-then-else';
3132
import { input as integerType } from './integer-type';
@@ -61,7 +62,6 @@ import { input as templateLayout } from './template-layout';
6162
import { input as templateSlot } from './template-slot';
6263
import { input as time } from './time';
6364
import { input as verticalLayout } from './vertical-layout';
64-
import { input as verticalSplitLayout } from './vertical-split-layout';
6565

6666
export * from './register';
6767

@@ -94,6 +94,7 @@ export {
9494
file,
9595
groupLayout,
9696
horizontalLayout,
97+
horizontalSplitLayout,
9798
huge,
9899
ifThenElse,
99100
integerType,
@@ -129,5 +130,4 @@ export {
129130
templateSlot,
130131
time,
131132
verticalLayout,
132-
verticalSplitLayout,
133133
};

packages/jsonforms-vuetify-renderers/src/renderers/SplitLayoutRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<splitpanes
3-
:horizontal="!appliedOptions.vertical"
3+
:horizontal="!appliedOptions.horizontal"
44
:rtl="rtl.isRtl.value"
55
:class="['default-theme', 'splitpanes-vuetify']"
66
v-if="layout.visible && (layout.uischema as Layout).elements.length > 0"

0 commit comments

Comments
 (0)