Expose enum to template from `<script setup>`
What problem does this feature solve?
Support using enum in template with <script setup>
.
What does the proposed API look like?
<template>
{{ Foo.bar }}
</template>
<script setup lang="ts">
enum Foo {
bar
}
</script>
@johnsoncodehk you need to specify the lang
attribute?
<script setup lang="ts">
enum Foo {
bar
}
</script>