Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit bec5e85

Browse files
author
TheZoker
committed
Update control types
1 parent e5077b9 commit bec5e85

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

vue2-vuetify/src/complex/AnyOfRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const controlRenderer = defineComponent({
6969
},
7070
setup(props: RendererProps<ControlElement>) {
7171
const input = useJsonFormsAnyOfControl(props);
72-
const control = (input.control as any).value as typeof input.control;
72+
const control = input.control.value;
7373
const selectedIndex = ref(control.indexOfFittingSchema || 0);
7474
7575
return {

vue2-vuetify/src/complex/OneOfRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const controlRenderer = defineComponent({
116116
},
117117
setup(props: RendererProps<ControlElement>) {
118118
const input = useJsonFormsOneOfControl(props);
119-
const control = (input.control as any).value as typeof input.control;
119+
const control = input.control.value;
120120
121121
const selectedIndex = ref(control.indexOfFittingSchema);
122122
const selectIndex = ref(selectedIndex.value);

vue2-vuetify/src/complex/OneOfTabRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const controlRenderer = defineComponent({
111111
},
112112
setup(props: RendererProps<ControlElement>) {
113113
const input = useJsonFormsOneOfControl(props);
114-
const control = (input.control as any).value as typeof input.control;
114+
const control = input.control.value;
115115
116116
const selectedIndex = ref(control.indexOfFittingSchema || 0);
117117
const tabIndex = ref(selectedIndex.value);

vue2-vuetify/src/complex/components/AdditionalProperties.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ export default defineComponent({
165165
},
166166
},
167167
setup(props) {
168-
const control = props.input.control as any as Ref<
169-
typeof props.input.control
170-
>;
168+
const control = props.input.control;
171169
const reservedPropertyNames = Object.keys(
172170
control.value.schema.properties || {}
173171
);

0 commit comments

Comments
 (0)