Skip to content

Commit 6cb1711

Browse files
committed
fix: add create-wrapper
1 parent 4969f30 commit 6cb1711

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/wrappers/create-wrapper.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// @flow
2+
3+
import Vue from 'vue'
4+
import Wrapper from './wrapper'
5+
import VueWrapper from './vue-wrapper'
6+
7+
export default function createWrapper (
8+
node: VNode | Component,
9+
update: Function,
10+
options: WrapperOptions
11+
) {
12+
return node instanceof Vue
13+
? new VueWrapper(node, options)
14+
: new Wrapper(node, update, options)
15+
}

0 commit comments

Comments
 (0)