Skip to content

Commit

Permalink
fix(virtual-list): H5 下报错 unknown custom element
Browse files Browse the repository at this point in the history
  • Loading branch information
honlyHuang authored and Chen-jj committed Nov 27, 2020
1 parent 7248c1d commit 1c55437
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/taro-components/virtual-list/vue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,10 @@ function createListComponent ({
this.$props,
this._instanceProps()
)


const scrollViewName = process.env.TARO_ENV === 'h5' ? 'taro-scroll-view' : 'scroll-view'
return h(
'scroll-view',
scrollViewName,
{
class: wclass,
ref: this._outerRefSetter,
Expand Down

0 comments on commit 1c55437

Please sign in to comment.