How can i use Spread syntax with script setup #7592
Answered
by
LinusBorg
lishaobos
asked this question in
Help/Questions
-
normali can use ... return so many variables <script>
export default {
setup() {
const useX = () => {
return {
a: 123.
b: 456,
c: 789
}
}
return {
...useX()
}
}
}
</script> setuphow can i do <script setup>
const useX = () => {
return {
a: 123.
b: 456,
c: 789
}
}
// is tired
const { a, b, c } = useX()
</script> |
Beta Was this translation helpful? Give feedback.
Answered by
LinusBorg
Jan 28, 2023
Replies: 1 comment 1 reply
-
There's no way to do that, logically. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LinusBorg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no way to do that, logically.