vue3-core/packages/vue/jsx-runtime/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
303 B
JavaScript
Raw Normal View History

const { h, Fragment } = require('vue')
2023-03-29 16:17:34 +08:00
function jsx(type, props, key) {
const { children } = props
delete props.children
if (arguments.length > 2) {
props.key = key
}
return h(type, props, children)
}
exports.jsx = jsx
exports.jsxs = jsx
exports.jsxDEV = jsx
exports.Fragment = Fragment