Skip to content

Commit 4c4e84f

Browse files
committed
feat(vue-vuetify): improve mixed and additional property editors
1 parent 141f288 commit 4c4e84f

15 files changed

Lines changed: 2252 additions & 373 deletions

File tree

packages/vue-vuetify/dev/views/ExampleView.vue

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ import examples from '../examples';
2929
import { useAppStore } from '../store';
3030
import { createAjv } from '../validate';
3131
32-
import { Pane, Splitpanes } from 'splitpanes';
33-
import 'splitpanes/dist/splitpanes.css';
32+
import { VPane, VSplitpanes } from '../../src/components';
3433
import { getCustomRenderersForExample } from '../renderers';
3534
3635
const { extendedVuetifyRenderers } = await import('../../src');
@@ -332,12 +331,11 @@ const handleAction = (action: Action) => {
332331
</v-card-title>
333332
<v-divider class="mx-4"></v-divider>
334333
<div class="json-forms">
335-
<splitpanes
336-
:class="['default-theme', 'splitpanes-vuetify']"
337-
:rtl="appStore.rtl"
334+
<v-splitpanes
335+
class="splitpanes-vuetify"
338336
v-if="appStore.layout === 'demo-and-data'"
339337
>
340-
<pane min-size="20">
338+
<v-pane min-size="20">
341339
<v-card>
342340
<v-card-title>
343341
<v-toolbar flat>
@@ -348,8 +346,8 @@ const handleAction = (action: Action) => {
348346
<v-divider class="mx-4"></v-divider>
349347
<example-form :state="state" @jsfchange="onChange" />
350348
</v-card>
351-
</pane>
352-
<pane>
349+
</v-pane>
350+
<v-pane>
353351
<v-card>
354352
<v-card-title>
355353
<v-toolbar flat>
@@ -389,8 +387,8 @@ const handleAction = (action: Action) => {
389387
:editorBeforeMount="registerValidations"
390388
></monaco-editor>
391389
</v-card>
392-
</pane>
393-
</splitpanes>
390+
</v-pane>
391+
</v-splitpanes>
394392

395393
<example-form :state="state" @jsfchange="onChange" v-else />
396394
</div>
@@ -509,28 +507,3 @@ const handleAction = (action: Action) => {
509507
</div>
510508
</div>
511509
</template>
512-
<style lang="scss" scoped>
513-
:deep(.default-theme) {
514-
&.splitpanes--vertical > .splitpanes__splitter,
515-
.splitpanes--vertical > .splitpanes__splitter {
516-
border-left: 1px solid rgb(var(--v-theme-on-surface-variant));
517-
}
518-
519-
&.splitpanes--horizontal > .splitpanes__splitter,
520-
.splitpanes--horizontal > .splitpanes__splitter {
521-
border-top: 1px solid rgb(var(--v-theme-on-surface-variant));
522-
}
523-
524-
.splitpanes__splitter {
525-
background-color: rgb(var(--v-theme-surface));
526-
&:before,
527-
&:after {
528-
background-color: rgb(var(--v-theme-on-surface-variant));
529-
}
530-
&:hover:before,
531-
&:hover:after {
532-
background-color: rgb(var(--v-theme-on-surface-variant));
533-
}
534-
}
535-
}
536-
</style>

packages/vue-vuetify/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"dayjs": "^1.10.6",
6969
"lodash": "^4.17.21",
7070
"maska": "^2.1.11",
71+
"splitpanes": "^3.1.5",
7172
"vue": "^3.5.0",
7273
"vuetify": "^3.11.0"
7374
},

0 commit comments

Comments
 (0)