调整分包,完成隐私协议(样式待优化)
This commit is contained in:
11
childPackage/miniprogram_npm/towxml/table/table.js
Normal file
11
childPackage/miniprogram_npm/towxml/table/table.js
Normal file
@@ -0,0 +1,11 @@
|
||||
Component({
|
||||
options: {
|
||||
styleIsolation: 'shared'
|
||||
},
|
||||
properties: {
|
||||
data: {
|
||||
type: Object,
|
||||
value: {}
|
||||
}
|
||||
}
|
||||
})
|
6
childPackage/miniprogram_npm/towxml/table/table.json
Normal file
6
childPackage/miniprogram_npm/towxml/table/table.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"decode": "../decode"
|
||||
}
|
||||
}
|
24
childPackage/miniprogram_npm/towxml/table/table.wxml
Normal file
24
childPackage/miniprogram_npm/towxml/table/table.wxml
Normal 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>
|
Reference in New Issue
Block a user