(this, ...args: any)
| 34 | let fallbackCreateElement: CreateElement |
| 35 | |
| 36 | export const createElement: H = function createElement(this, ...args: any) { |
| 37 | const instance = this?.proxy || getCurrentInstance()?.proxy |
| 38 | if (!instance) { |
| 39 | __DEV__ && |
| 40 | warn('`createElement()` has been called outside of render function.') |
| 41 | if (!fallbackCreateElement) { |
| 42 | fallbackCreateElement = defineComponentInstance( |
| 43 | getVueConstructor() |
| 44 | ).$createElement |
| 45 | } |
| 46 | |
| 47 | return fallbackCreateElement.apply(fallbackCreateElement, args) |
| 48 | } |
| 49 | |
| 50 | return instance.$createElement.apply(instance, args) |
| 51 | } |
searching dependent graphs…