You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
303 B
16 lines
303 B
const { h, Fragment } = require('vue')
|
|
|
|
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
|