Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1936] Migrate c-segment-collection.vue to typescript #2036

Merged
merged 7 commits into from
Oct 4, 2023
Merged
12 changes: 7 additions & 5 deletions frontend/src/components/c-segment-collection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
c-segment(v-bind:segment="segment", v-bind:path="path")
</template>

<script>
<script lang='ts'>
import { defineComponent } from 'vue';
import cSegment from './c-segment.vue';
import Segment from '../utils/segment';

export default {
export default defineComponent({
name: 'c-segment-collection',
components: {
cSegment,
},
props: {
segments: {
type: Array,
type: Array<Segment>,
required: true,
},
path: {
Expand All @@ -28,11 +30,11 @@ export default {
};
},
methods: {
visibilityChanged(isVisible) {
visibilityChanged(isVisible: boolean) {
if (isVisible) {
this.isRendered = true;
}
},
},
};
});
</script>
Loading