yi-table v0.6.9
YiTable
Installation
$ npm i yi-table -SNext, you must register the component. The most common use case is to do that globally.
import YiTable from 'yi-table';
Vue.use(YiTable);Usage
example
<yi-table
:data="[
{ name: '张三,法外狂徒张三', age: '23', birthday: '1993' },
{ name: '李四', age: '32', birthday: '1992' },
{ name: '王五', age: '12', birthday: '1998' },
{ name: '赵六', age: '15', birthday: '1990' }
]"
stripe
border
>
<yi-table-column type="index"></yi-table-column>
<yi-table-column type="selection" :selectable="handleSelectable"></yi-table-column>
<yi-table-column prop="name" label="姓名"></yi-table-column>
<yi-table-column prop="age" label="年龄" sortable></yi-table-column>
<yi-table-column prop="birthday" label="生日"></yi-table-column>
</yi-table>TODO
- 详细文档
table 属性row-class-nametable-column 属性show-overflow-tooltiptable的内部方法,通过ref引用toggleRowSelection- 默认type为index和selection的列宽度为55
-
table-column的slot-scope="scope", 可以不需要给(应该是prop不需要给,不给的默认处理为空) table的border和stripe属性默认为**true**多选框样式统一成element-ui样式scroll滚动条样式固定
Example
$ cd /yi-table
$ git checkout dev
$ npm i
$ npm startGit Commit Guidelines ↑Top
Type
Must be one of the following:(detail)
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing or correcting existing tests
- chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago