升级package, 以及更新声明文件
This commit is contained in:
26
README.md
Normal file
26
README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
## 表格示例(slot)
|
||||
|
||||
```html
|
||||
<cf-table
|
||||
maxHeight="30vh"
|
||||
columns="{{columns}}"
|
||||
useTheadSlot="1"
|
||||
useTbodySlot="1"
|
||||
data="{{data}}"
|
||||
>
|
||||
<view slot="thead" class="table">
|
||||
<view class="tr" style="box-sizing: border-box;">
|
||||
<view class="th" style="width:100px;box-sizing: border-box;">th</view>
|
||||
<view class="th" style="width:200px;box-sizing: border-box;">th</view>
|
||||
<view class="th" style="width:300px;box-sizing: border-box;">th</view>
|
||||
</view>
|
||||
</view>
|
||||
<view slot="tbody" class="table">
|
||||
<view class="tr" style="box-sizing: border-box;">
|
||||
<view class="td" style="width:100px;box-sizing: border-box;">td</view>
|
||||
<view class="td" style="width:200px;box-sizing: border-box;">td</view>
|
||||
<view class="td" style="width:300px;box-sizing: border-box;">td</view>
|
||||
</view>
|
||||
</view>
|
||||
</cf-table>
|
||||
```
|
||||
Reference in New Issue
Block a user