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

[api] support processDefineProps to process runtime props #566

Open
3 tasks done
LoTwT opened this issue Nov 24, 2023 · 1 comment
Open
3 tasks done

[api] support processDefineProps to process runtime props #566

LoTwT opened this issue Nov 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@LoTwT
Copy link
Contributor

LoTwT commented Nov 24, 2023

Clear and concise description of the problem

It's a todo in the api/src/vue/analyze.ts to support runtime props.

Suggested solution

  • It may provide the following methods like handleObjectPropsDefinition and handleReferencePropsDefinition in theapi/src/vue/props.ts.
  • Or just one single method like handleRuntimePropsDefinition.

Alternative

No response

Additional context

I'd like to do this.
But I'm not sure about the type definitions of the methods and their return.
Should they be like TSProps?

Validations

@LoTwT LoTwT added the enhancement New feature or request label Nov 24, 2023
@sxzz
Copy link
Member

sxzz commented Nov 24, 2023

Hmmm, the internal API can be one of them, which is up to the contributor. If you want to contribute to the feature, I'd like to accept it.

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

No branches or pull requests

2 participants