Closed anncwb closed 4 years ago
Now it can only be used like this
plugins: [
(createJsxPlugin as any)(),
],
And this needs to be changed to optional interface IntrinsicAttributes { ['v-if']?: unknown; ['v-else-if']?: unknown; ['v-else']?: unknown; ['v-show']?: unknown; ['v-html']?: unknown; ['v-text']?: unknown; ['v-model']?: unknown; } }
interface IntrinsicAttributes {
['v-if']?: unknown;
['v-else-if']?: unknown;
['v-else']?: unknown;
['v-show']?: unknown;
['v-html']?: unknown;
['v-text']?: unknown;
['v-model']?: unknown;
}
}
Thanks for your issue,already fixed and updated
Big problem, your plug-in may cause the component to fail responsively.
in .tsx file
setup(){
return () => {
const bar = unref(getBarRef);
const { size, move } = props;
return (
<div
class={['scrollbar__bar', 'is-' + bar.key]}
onMousedown={clickTrackHandler}
ref={elRef}
>
<div
ref={thumbRef}
class="scrollbar__thumb"
onMousedown={clickThumbHandler}
style={renderThumbStyle({ size, move, bar })}
/>
</div>
);
};
Will cause the style dynamic calculation to fail
style={renderThumbStyle({ size, move, bar })} Will not be responsive, remove jsx-plugin to restore
Other attributes should be the same. I dare not use it now
I'm sorry that I didn't have a careful test before, you can update and try again
It’s great, but I checked this problem for a long time before I found out
class={xxx}. Will not be responsive, remove jsx-plugin to restore
class={xxx}. Will not be responsive, remove jsx-plugin to restore
can you show your code? There is nothing wrong with my test Do you use a functional component?
Plug-in ts type error in vite.config.ts