feat: taro框架使用自定义标签

This commit is contained in:
eric
2022-12-09 18:00:16 +08:00
parent 05e0bbae3f
commit 15e162f62d
13 changed files with 132 additions and 57 deletions

135
dist/base.wxml vendored
View File

@@ -137,9 +137,12 @@
<block>{{i.v}}</block>
</template>
<template name="tmpl_0_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_0_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_0_container">
@@ -202,9 +205,12 @@
</scroll-view>
</template>
<template name="tmpl_1_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_1_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_1_container">
@@ -267,9 +273,12 @@
</scroll-view>
</template>
<template name="tmpl_2_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_2_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_2_container">
@@ -332,9 +341,12 @@
</scroll-view>
</template>
<template name="tmpl_3_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_3_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_3_container">
@@ -389,9 +401,12 @@
</text>
</template>
<template name="tmpl_4_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_4_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_4_container">
@@ -446,9 +461,12 @@
</text>
</template>
<template name="tmpl_5_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_5_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_5_container">
@@ -495,9 +513,12 @@
</text>
</template>
<template name="tmpl_6_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_6_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_6_container">
@@ -544,9 +565,12 @@
</text>
</template>
<template name="tmpl_7_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_7_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_7_container">
@@ -593,9 +617,12 @@
</text>
</template>
<template name="tmpl_8_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_8_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_8_container">
@@ -642,9 +669,12 @@
</text>
</template>
<template name="tmpl_9_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_9_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_9_container">
@@ -691,9 +721,12 @@
</text>
</template>
<template name="tmpl_10_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_10_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_10_container">
@@ -740,9 +773,12 @@
</text>
</template>
<template name="tmpl_11_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_11_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_11_container">
@@ -789,9 +825,12 @@
</text>
</template>
<template name="tmpl_12_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_12_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_12_container">
@@ -838,9 +877,12 @@
</text>
</template>
<template name="tmpl_13_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_13_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_13_container">
@@ -887,9 +929,12 @@
</text>
</template>
<template name="tmpl_14_custom-wrapper">
<custom-wrapper i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</custom-wrapper>
<template name="tmpl_14_channel-video">
<channel-video autoplay="{{i.autoplay}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<block wx:for="{{i.cn}}" wx:key="sid">
<template is="{{xs.e(cid+1)}}" data="{{i:item,l:l}}" />
</block>
</channel-video>
</template>
<template name="tmpl_14_container">