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

fix: support string type in v-for #839

Merged
merged 2 commits into from Jan 15, 2022
Merged

Conversation

Teemwu
Copy link
Contributor

@Teemwu Teemwu commented Jan 4, 2022

No description provided.

@johnsoncodehk
Copy link
Member

Hi @Teemwu, could you give me an example of what is the problem to solve?

@Teemwu
Copy link
Contributor Author

Teemwu commented Jan 6, 2022

Hi @johnsoncodehk, when I use a string in v-for, volar will warn, but it can be rendered by vue.

<template>
  <div v-for="item in message" :key="item">{{ item }}</div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const message = ref('Foo')
</script>

image

@johnsoncodehk johnsoncodehk merged commit 63d7212 into vuejs:master Jan 15, 2022
@johnsoncodehk
Copy link
Member

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants