Skip to content

Commit 75a7203

Browse files
committed
organize imports and code format
1 parent 7194ebf commit 75a7203

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

packages/vue/src/components/JsonForms.vue

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@
77
</template>
88

99
<script lang="ts">
10-
import { PropType, reactive, defineComponent } from 'vue';
11-
import isEqual from 'lodash/isEqual';
1210
import {
13-
coreReducer,
1411
Actions,
15-
Generate,
1612
configReducer,
17-
JsonSchema,
18-
UISchemaElement,
19-
ValidationMode,
20-
JsonFormsCore,
21-
JsonFormsUISchemaRegistryEntry,
22-
JsonFormsRendererRegistryEntry,
23-
JsonFormsCellRendererRegistryEntry,
2413
CoreActions,
14+
coreReducer,
15+
defaultMiddleware,
16+
Generate,
2517
i18nReducer,
18+
JsonFormsCellRendererRegistryEntry,
19+
JsonFormsCore,
2620
JsonFormsI18nState,
27-
defaultMiddleware,
28-
Middleware,
21+
JsonFormsRendererRegistryEntry,
2922
JsonFormsSubStates,
23+
JsonFormsUISchemaRegistryEntry,
24+
JsonSchema,
3025
Layout,
26+
Middleware,
27+
UISchemaElement,
28+
ValidationMode,
3129
} from '@jsonforms/core';
30+
import isEqual from 'lodash/isEqual';
31+
import { defineComponent, PropType, reactive } from 'vue';
3232
import { JsonFormsChangeEvent, MaybeReadonly } from '../types';
3333
import DispatchRenderer from './DispatchRenderer.vue';
3434
@@ -41,8 +41,7 @@ const createDefaultLayout = (): Layout => ({
4141
type: 'VerticalLayout',
4242
elements: [],
4343
});
44-
const getSchemaGeneratorInput = (data: any) =>
45-
data === undefined ? {} : data;
44+
const getSchemaGeneratorInput = (data: any) => (data === undefined ? {} : data);
4645
const generateUISchema = (schema: JsonSchema) =>
4746
Generate.uiSchema(schema, undefined, undefined, schema) ??
4847
createDefaultLayout();
@@ -193,7 +192,8 @@ export default defineComponent({
193192
watch: {
194193
schema(newSchema) {
195194
this.schemaToUse =
196-
newSchema ?? Generate.jsonSchema(getSchemaGeneratorInput(this.dataToUse));
195+
newSchema ??
196+
Generate.jsonSchema(getSchemaGeneratorInput(this.dataToUse));
197197
if (!this.uischema) {
198198
this.uischemaToUse = generateUISchema(this.schemaToUse);
199199
}

0 commit comments

Comments
 (0)