Skip to content

Commit 52fc889

Browse files
author
F-loat
committed
update: 移除 directives 模块
1 parent 9a8a5bd commit 52fc889

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/platforms/mp/runtime/patch.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33
import * as nodeOps from './node-ops'
44
import { createPatchFunction } from 'core/vdom/patch'
5-
import baseModules from 'core/vdom/modules/index'
5+
// 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: baseModules })
15+
export const corePatch: Function = createPatchFunction({ nodeOps, modules })
1416

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

0 commit comments

Comments
 (0)