mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-01-26 16:19:09 +08:00
feat: remove compatibleProps
This commit is contained in:
parent
0559c78b57
commit
5c2179f6d9
@ -1,3 +0,0 @@
|
|||||||
# @ant-design-vue/babel-helper-vue-compatible-props
|
|
||||||
|
|
||||||
> compatible with Vue 2.x
|
|
@ -1,12 +0,0 @@
|
|||||||
const transformOn = require('@ant-design-vue/babel-helper-vue-transform-on');
|
|
||||||
|
|
||||||
const compatibleProps = (attr) => {
|
|
||||||
const {
|
|
||||||
props, on = {}, attrs, ...rest
|
|
||||||
} = attr || {};
|
|
||||||
return {
|
|
||||||
...props, ...attrs, ...transformOn(on), ...rest,
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = compatibleProps;
|
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@ant-design-vue/babel-helper-vue-compatible-props",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"description": "compatible with Vue 2.x",
|
|
||||||
"author": "Amour1688 <lcz_1996@foxmail.com>",
|
|
||||||
"homepage": "https://github.com/vueComponent/jsx#readme",
|
|
||||||
"license": "MIT",
|
|
||||||
"main": "index.js",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/vueComponent/jsx.git"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@ant-design-vue/babel-helper-vue-transform-on": "^1.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
@ -23,7 +23,6 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design-vue/babel-helper-vue-compatible-props": "^1.0.0",
|
|
||||||
"@ant-design-vue/babel-helper-vue-transform-on": "^1.0.0",
|
"@ant-design-vue/babel-helper-vue-transform-on": "^1.0.0",
|
||||||
"@babel/helper-module-imports": "^7.0.0",
|
"@babel/helper-module-imports": "^7.0.0",
|
||||||
"@babel/plugin-syntax-jsx": "^7.0.0",
|
"@babel/plugin-syntax-jsx": "^7.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user