Amour1688 a68a45e6ca
use createVNode (#14)
* chore: use createVNode

* test: add patchFlag
2020-06-27 09:31:41 +08:00
2020-06-27 09:31:41 +08:00
2020-05-19 21:44:08 +08:00
2020-05-08 16:58:50 +08:00
2020-06-04 19:45:40 +08:00

Babel Plugin JSX for Vue 3.0

To add Vue JSX support.

Installation

Install the plugin with:

npm install @ant-design-vue/babel-plugin-jsx -D

npm install @ant-design-vue/babel-helper-vue-transform-on

Then add the plugin to .babelrc:

{
  "plugins": ["@ant-design-vue/babel-plugin-jsx", { "transformOn": true, "compatibleProps": true }]
}

Usage

options

  • transformOn

transform on: { click: xx } to onClick: xxx

  • compatibleProps

compatible with Vue 2.x

Compatibility

This repo is only compatible with:

  • Babel 7+
  • Vue 3+
Description
JSX for Vue 3
Readme 52 MiB
Languages
TypeScript 97.6%
CSS 1.6%
HTML 0.5%
JavaScript 0.3%