初始化

This commit is contained in:
zhu
2026-03-27 13:29:41 +08:00
commit ee03132cee
112 changed files with 6417 additions and 0 deletions

11
towxml/table/table.js Normal file
View File

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

6
towxml/table/table.json Normal file
View File

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

24
towxml/table/table.wxml Normal file
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>

0
towxml/table/table.wxss Normal file
View File