Migrate Toc.vue to Vue 3 Composition API with TypeScript
kestra-io/kestra • PR #13113
✅ MergedMigrated the ui/src/components/plugins/Toc.vue component from the Vue 2 Options API (JavaScript) to the Vue 3 Composition API using <script setup lang="ts">.
Changes include:
- Converting data, computed properties, methods, and watchers to Composition API (
ref,computed,watch,nextTick) - Using
definePropsanddefineEmitswith full TypeScript generics - Adding explicit interfaces for
PluginandPluginElement - Retaining the existing template and behavior with no UI or functional changes