mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 17:49:16 +08:00
13 lines
285 B
JavaScript
13 lines
285 B
JavaScript
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;
|