0.0.8 • Published 4 years ago

babel-plugin-vue3-jsx-transform v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Introduction

This is a babel plugin that helps transform jsx element to vnode for vue 3.0

Details

slot support

<template slot="name">
    ...
</template>

v-show support

<div v-show="name">
    ...
</div>

or

<div vShow="name">
    ...
</div>

v-if support

<div v-if="name">
    ...
</div>

or

<div vIf="name">
    ...
</div>

spread attribute support

<div {...{class:'a', style: 'color: white'}}></div>

Change Log

v0.0.6

  • add v-if support

v0.0.5

  • bug fix

v0.0.4

  • add v-show support

v0.0.3

  • add slot support

v0.0.2

  • support spread attribute on element