index.js 303 B

123456789101112131415
  1. const { h, Fragment } = require('vue')
  2. function jsx(type, props, key) {
  3. const { children } = props
  4. delete props.children
  5. if (arguments.length > 2) {
  6. props.key = key
  7. }
  8. return h(type, props, children)
  9. }
  10. exports.jsx = jsx
  11. exports.jsxs = jsx
  12. exports.jsxDEV = jsx
  13. exports.Fragment = Fragment