mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-14 07:29:17 +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;
|