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(compiler-sfc): in script-setup automatically setting the name option from inferred filename. #4997

Merged
merged 5 commits into from May 10, 2022

Conversation

ygj6
Copy link
Member

@ygj6 ygj6 commented Nov 25, 2021

fix: #4993

@ygj6 ygj6 changed the title fix(runtime-core): get script-setup componentName in keepalive. fix(compiler-sfc): in script-setup automatically setting the name option from inferred filename. Nov 26, 2021
@ygj6 ygj6 marked this pull request as draft November 27, 2021 02:40
@ygj6 ygj6 marked this pull request as ready for review November 27, 2021 09:21
@awkj
Copy link

awkj commented Dec 15, 2021

Can Official support the Syntactic sugar?
https://github.com/anncwb/vite-plugin-vue-setup-extend

<template>
  <div>hello world {{ a }}</div>
</template>

<script lang="ts" setup name="App">
  const a = 1
</script>

@honghuangdc
Copy link

if the component name is a variable, can this syntactic sugar support ?

@honghuangdc
Copy link

Can Official support the Syntactic sugar? https://github.com/anncwb/vite-plugin-vue-setup-extend

<template>
  <div>hello world {{ a }}</div>
</template>

<script lang="ts" setup name="App">
  const a = 1
</script>

if the component name is a variable, can this syntactic sugar support ?

@netlify
Copy link

netlify bot commented May 10, 2022

Deploy Preview for vue-next-template-explorer ready!

Name Link
🔨 Latest commit b8ac010
🔍 Latest deploy log https://app.netlify.com/sites/vue-next-template-explorer/deploys/6279ba2d8ae52e0008759b7c
😎 Deploy Preview https://deploy-preview-4997--vue-next-template-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 10, 2022

Deploy Preview for vuejs-coverage ready!

Name Link
🔨 Latest commit b8ac010
🔍 Latest deploy log https://app.netlify.com/sites/vuejs-coverage/deploys/6279ba2d5ee4080009d666a1
😎 Deploy Preview https://deploy-preview-4997--vuejs-coverage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 10, 2022

Deploy Preview for vue-sfc-playground ready!

Name Link
🔨 Latest commit b8ac010
🔍 Latest deploy log https://app.netlify.com/sites/vue-sfc-playground/deploys/6279ba2ddb47ff0008483123
😎 Deploy Preview https://deploy-preview-4997--vue-sfc-playground.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

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.

KeepAlive can not get setup-SFC component's name
5 participants