-
Notifications
You must be signed in to change notification settings - Fork 141
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
jsx onClick is not assignable to type of .vue (custom component) #555
Comments
I temporarily avoided this problem by wrapping a layer of div and setting the click event to the div.
Should I add an |
@icuxika, you did not provide <template>
<button class="v3-button" :class="classes" :disabled="props.disabled" v-bind="$attrs">
<span v-if="props.loading" class="v3-loading-indicator"></span>
<span v-else class="v3-loading-indicator-empty"></span>
<slot />
</button>
</template> Also I dont know if |
@funny-family Thanks, As a component in the library, I directly used this |
@mockingjet I avoided this by using the global registration of the Vue component, but the TypeScript attribute hint for is incorrect in the .tsx file, even though there are no errors, and using in the .vue file, everything works as expected.
|
VButton
use VButton
Question
It works normally when I use
yarn dev
, but it will report error when I usevue-tsc --noEmit && vite build
The text was updated successfully, but these errors were encountered: