# uni-table ## Instructions 组件名:uni-table 代码块: uTable 点击下载&安装 ### Syntax - 使用 ``(或 ``,当需要包裹子节点时)。 - 遇到平台差异时,建议使用条件编译(`#ifdef / #endif`)显式处理。 #### Properties | 属性名 | 类型 | 默认值 | 可选值 | 说明 | | --- | --- | --- | --- | --- | | border | Boolean | false | - | 是否带有纵向边框 | | stripe | Boolean | false | - | 是否显示斑马线样式 | | type | String | '' | - | 值为type="selection" 时开启多选 | | emptyText | String | 没有更多数据 | - | 空数据时显示的文本内容 | | loading | Boolean | false | - | 显示加载中 | #### Events | 事件称名 | 说明 | 返回参数 | | --- | --- | --- | | selection-change | 开启多选时,当选择项发生变化时会触发该事件 | Function(Object) | #### Platform Compatibility See official docs for platform support table: `https://uniapp.dcloud.net.cn/component/uniui/uni-table.html` ### Examples ### Example (Example 1) ```vue 日期 姓名 地址 2020-10-20 Jeson 北京市海淀区 2020-10-21 HanMeiMei 北京市海淀区 2020-10-22 LiLei 北京市海淀区 2020-10-23 Danner 北京市海淀区 ``` ### Example (Example 2) ```html 日期 姓名 地址 2020-10-20 Jeson 北京市海淀区 2020-10-21 HanMeiMei 北京市海淀区 2020-10-22 LiLei 北京市海淀区 2020-10-23 Danner 北京市海淀区 ``` ### Example (Example 3) ```vue e = { filterType: "", //筛选类型 search/select/range 和传入的相同 filter: "" // 值, filterType=search字符串类型,filterType=select数组类型,filterType=range数组类型,[0]开始值, [1]结束值 } ``` ### Example (Example 4) ```javascript e = { filterType: "", //筛选类型 search/select/range 和传入的相同 filter: "" // 值, filterType=search字符串类型,filterType=select数组类型,filterType=range数组类型,[0]开始值, [1]结束值 } ``` ### Example (Example 5) ```vue ``` ### Example (Example 6) ```html ``` Reference: - [Official Documentation](https://uniapp.dcloud.net.cn/component/uniui/uni-table.html) - [Plugin Marketplace](https://ext.dcloud.net.cn/plugin?name=table) - [Local Example](examples/uni-ui/uni-table.vue)