调整分包,完成隐私协议(样式待优化)

This commit is contained in:
2024-07-18 14:18:05 +08:00
parent 765b3ad111
commit 00384d7382
1045 changed files with 34254 additions and 98 deletions

View File

@@ -0,0 +1,11 @@
Component({
options: {
styleIsolation: 'shared'
},
properties: {
data: {
type: Object,
value: {}
}
}
})

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"decode": "../decode"
}
}

View File

@@ -0,0 +1,24 @@
<!--table-->
<block wx:if="{{data.tag === 'table'}}">
<view class="h2w__tableParent">
<view class="{{data.attrs.class}}" width="{{data.attrs.width}}" style="{{data.attrs.style}}">
<!--thead、tbody、tfoot-->
<block wx:if="{{data.children}}" wx:for="{{data.children}}" wx:for-item="item" wx:key="i">
<view wx:if="{{item.tag}}" class="{{item.attrs.class}}">
<!--tr-->
<block wx:if="{{item.children}}" wx:for="{{item.children}}" wx:for-item="item" wx:key="i">
<view wx:if="{{item.tag}}" class="{{item.attrs.class}}">
<!--td-->
<block wx:if="{{item.children}}" wx:for="{{item.children}}" wx:for-item="item" wx:key="i">
<view wx:if="{{item.tag}}" class="{{item.attrs.class}}" width="{{data.attrs.width}}" style="{{data.attrs.style}}">
<!--content-->
<decode wx:if="{{item.children}}" nodes="{{item}}"/>
</view>
</block>
</view>
</block>
</view>
</block>
</view>
</view>
</block>