mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 12:07:39 +08:00
feat(wip): recycle list template inline expand
This commit is contained in:
parent
b3cb9d9dd2
commit
ac999573ea
@ -144,6 +144,22 @@ export function createComponent (
|
||||
|
||||
data = data || {}
|
||||
|
||||
// recycle-list optimized render function for extracting cell-slot
|
||||
// template. This is essentailly inline expanding instead of creating
|
||||
// an actual instance.
|
||||
// https://github.com/Hanks10100/weex-native-directive/tree/master/component
|
||||
// $flow-disable-line
|
||||
if (__WEEX__ && data.attrs['@isInRecycleList']) {
|
||||
const altRender = Ctor.options['@render']
|
||||
if (altRender) {
|
||||
return altRender.call(
|
||||
context,
|
||||
context.$createElement,
|
||||
data.attrs
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// resolve constructor options in case global mixins are applied after
|
||||
// component constructor creation
|
||||
resolveConstructorOptions(Ctor)
|
||||
|
Loading…
Reference in New Issue
Block a user