vue3-core/packages/runtime-dom
Evan You e181bff6dc
feat(custom-element): support emit with options
In a custom element created via `defineCustomElement`, if the first
event argument is an object, it will be used as the options object
for the emitted CustomEvent. The entire argument list is still exposed
via the CustomEvent's `detail` property.

```js
emit('event', { bubbles: true })
```

close #7605
2024-08-03 13:46:58 +08:00
..
__tests__ feat(custom-element): support emit with options 2024-08-03 13:46:58 +08:00
src feat(custom-element): support emit with options 2024-08-03 13:46:58 +08:00
LICENSE chore: license 2019-10-28 11:15:17 -04:00
README.md chore: update runtime-dom/README example to latest signature (#693) [ci skip] 2020-02-04 09:24:29 -05:00
index.js refactor: rename packages 2018-10-26 15:44:50 -04:00
package.json feat(runtime-dom): Trusted Types compatibility (#10844) 2024-08-02 12:46:12 +08:00

README.md

@vue/runtime-dom

import { h, createApp } from '@vue/runtime-dom'

const RootComponent = {
  render() {
    return h('div', 'hello world')
  }
}

createApp(RootComponent).mount('#app')