Skip to content

Commit cb000ea

Browse files
committed
add helpers
1 parent a1f008c commit cb000ea

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/create-instance/create-instance.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,9 @@ export default function createInstance (
7575
if (scopedSlotFn) {
7676
props = { ...bindObject, ...props }
7777
const proxy = {}
78-
Object.keys(vm._renderProxy).concat(Object.keys(Vue.prototype)).forEach((key) => {
79-
if (key[0] === '_') {
80-
proxy[key] = vm._renderProxy[key]
81-
}
78+
const helpers = ['_c', '_o', '_n', '_s', '_l', '_t', '_q', '_i', '_m', '_f', '_k', '_b', '_v', '_e', '_u', '_g']
79+
helpers.forEach((key) => {
80+
proxy[key] = vm._renderProxy[key]
8281
})
8382
proxy[slotScope] = props
8483
return scopedSlotFn.call(proxy)

0 commit comments

Comments
 (0)