Skip to content

Commit a50cf76

Browse files
imyzfHanks10100
authored andcommitted
feat(weex): add resetLoadmore to recycle-list method (#11)
* feat(weex): add resetLoadmore to recycle-list method * feat(weex): export $el methods to component methods
1 parent 5bace57 commit a50cf76

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/platforms/weex/runtime/components/recycle-list.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,23 @@ function watchArray (vm: Component, array: Array<any>) {
8787

8888
export default {
8989
name: 'recycle-list',
90+
methods: {
91+
closest (...args: Array<any>) {
92+
return this.$el.closest(...args)
93+
},
94+
queryElement (...args: Array<any>) {
95+
return this.$el.queryElement(...args)
96+
},
97+
queryElementAll (...args: Array<any>) {
98+
return this.$el.queryElementAll(...args)
99+
},
100+
scrollToElement (...args: Array<any>) {
101+
return this.$el.scrollToElement(...args)
102+
},
103+
resetLoadmore (...args: Array<any>) {
104+
return this.$el.resetLoadmore(...args)
105+
}
106+
},
90107
render (h: Function) {
91108
if (this._vnode && this.$options['[[UseCache]]']) {
92109
def(this.$options, '[[UseCache]]', false)

0 commit comments

Comments
 (0)