Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit 9b8ea78

Browse files
committed
fix: fix typing problems
1 parent e249bfc commit 9b8ea78

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/components/PropControls/BooleanSwitch/BooleanSwitch.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
</template>
1515

1616
<script lang="ts">
17+
import { defineComponent } from 'vue'
1718
import { useModelWrapper } from '@/composables/modelWrapper'
1819
1920
import Radio from '@/components/UI/Radio/Radio.vue'
2021
import RadioGroup from '@/components/UI/RadioGroup/RadioGroup.vue'
2122
22-
export default {
23+
export default defineComponent({
2324
name: 'BooleanSwitch',
2425
components: {
2526
Radio,
@@ -45,5 +46,5 @@ export default {
4546
value,
4647
}
4748
},
48-
}
49+
})
4950
</script>

src/components/UI/Radio/Radio.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
</template>
1414

1515
<script lang="ts">
16-
import { computed, inject } from 'vue'
16+
import { computed, inject, defineComponent } from 'vue'
1717
1818
import { useComponentId } from '@/composables/componentId'
1919
2020
import { RadioInjectionKey } from '@/components/UI/symbols'
2121
22-
export default {
22+
export default defineComponent({
2323
name: 'Radio',
2424
props: {
2525
value: {
@@ -52,7 +52,7 @@ export default {
5252
return props.name
5353
}
5454
55-
return RadioGroup?.name || `radio-${id}`
55+
return RadioGroup?.name.value || `radio-${id}`
5656
})
5757
5858
const onChange = () => {
@@ -68,5 +68,5 @@ export default {
6868
selected,
6969
}
7070
},
71-
}
71+
})
7272
</script>

src/components/UI/RadioGroup/RadioGroup.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
</template>
66

77
<script lang="ts">
8-
import { provide, computed } from 'vue'
8+
import { provide, computed, defineComponent } from 'vue'
99
1010
import { useComponentId } from '@/composables/componentId'
1111
1212
import { RadioInjectionKey } from '@/components/UI/symbols'
1313
14-
export default {
14+
export default defineComponent({
1515
name: 'RadioGroup',
1616
props: {
1717
name: {
@@ -44,5 +44,5 @@ export default {
4444
})
4545
4646
},
47-
}
47+
})
4848
</script>

0 commit comments

Comments
 (0)