docs: add zh-CN.md

This commit is contained in:
Amour1688
2020-07-02 13:30:17 +08:00
parent 290c56ae96
commit 33ff92fd87
2 changed files with 47 additions and 1 deletions

View File

@ -2,6 +2,8 @@
To add Vue JSX support.
English | [简体中文](./README-zh_CN.md)
## Installation
Install the plugin with:
@ -16,7 +18,7 @@ Then add the plugin to .babelrc:
```
{
"plugins": ["@ant-design-vue/babel-plugin-jsx", { "transformOn": true, "compatibleProps": true }]
"plugins": ["@ant-design-vue/babel-plugin-jsx"]
}
```
@ -31,6 +33,8 @@ transform `on: { click: xx }` to `onClick: xxx`
compatible with Vue 2.x
`{ props, on = {}, attrs, ...rest }` will be transformed to `{ ...props, ...attrs, ...transformOn(on), ...rest }`
## Compatibility
This repo is only compatible with: