triggerEvent (wechat mini)

Example

example.json

Notice here we have declared the generic:itemview to take on our item-view component here. item-view was imported in our .json file.
example.wxml

example.wxss

Item View

item-view.js

item-view.json

item-view.wxml

item-view.wxss