mirror of https://github.com/vuejs/core.git
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 |
||
---|---|---|
.. | ||
__tests__ | ||
src | ||
LICENSE | ||
README.md | ||
index.js | ||
package.json |
README.md
@vue/runtime-dom
import { h, createApp } from '@vue/runtime-dom'
const RootComponent = {
render() {
return h('div', 'hello world')
}
}
createApp(RootComponent).mount('#app')