Skip to content

Commit ad27484

Browse files
authored
Merge pull request vuejs#314 from F-loat/fix-registe-ref
fix: vuejs#149 恢复对组件 ref 的支持
2 parents 92725e8 + 52fc889 commit ad27484

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/platforms/mp/runtime/patch.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
import * as nodeOps from './node-ops'
44
import { createPatchFunction } from 'core/vdom/patch'
55
// import baseModules from 'core/vdom/modules/index'
6+
import ref from 'core/vdom/modules/ref'
67
// const platformModules = []
78
// import platformModules from 'web/runtime/modules/index'
89

910
// the directive module should be applied last, after all
1011
// built-in modules have been applied.
1112
// const modules = platformModules.concat(baseModules)
13+
const modules = [ref]
1214

13-
export const corePatch: Function = createPatchFunction({ nodeOps, modules: [] })
15+
export const corePatch: Function = createPatchFunction({ nodeOps, modules })
1416

1517
export function patch () {
1618
corePatch.apply(this, arguments)

0 commit comments

Comments
 (0)