Skip to content

Expose enum to template from <script setup> #3571

@johnsoncodehk

Description

@johnsoncodehk

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions