mirror of
				https://github.com/vuejs/babel-plugin-jsx.git
				synced 2025-10-31 01:12:17 +08:00 
			
		
		
		
	docs: add zh-CN.md
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user