index.mjs 273 B

1234567891011121314151617
  1. import { h, Fragment } from '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. export {
  11. Fragment,
  12. jsx,
  13. jsx as jsxs,
  14. jsx as jsxDEV
  15. }