Subscribe on changes!

Expose enum to template from `<script setup>`

avatar
Apr 9th 2021

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>
avatar
Apr 9th 2021

@johnsoncodehk you need to specify the lang attribute?

<script setup lang="ts">
enum Foo {
  bar
}
</script>
avatar
Apr 9th 2021

@HcySunYang Yes we need it and I'm updated, thanks.

avatar
Jul 19th 2021

Supported via 1ffd48a + 93a950d6