mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-12-12 16:38:56 +08:00
style: format
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
declare function transformOn(
|
||||
obj: Record<string, any>
|
||||
): Record<`on${string}`, any>;
|
||||
obj: Record<string, any>,
|
||||
): Record<`on${string}`, any>
|
||||
|
||||
export { transformOn as default, transformOn as 'module.exports' };
|
||||
export { transformOn as default, transformOn as 'module.exports' }
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
function transformOn(obj) {
|
||||
const result = {};
|
||||
const result = {}
|
||||
Object.keys(obj).forEach((evt) => {
|
||||
result[`on${evt[0].toUpperCase()}${evt.slice(1)}`] = obj[evt];
|
||||
});
|
||||
return result;
|
||||
result[`on${evt[0].toUpperCase()}${evt.slice(1)}`] = obj[evt]
|
||||
})
|
||||
return result
|
||||
}
|
||||
|
||||
export { transformOn as default, transformOn as 'module.exports' };
|
||||
export { transformOn as default, transformOn as 'module.exports' }
|
||||
|
||||
Reference in New Issue
Block a user