yi-table

表格组件
4,821
Install
npm install yi-table
Latest Version:0.6.9
Vue:2
License:MIT
Last Updated:Feb 20, 2021
Links: GitHub  ·  npm
Maintainer: lmislm

YiTable

Installation

$ npm i yi-table -S

Next, 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-name
  • table-column 属性show-overflow-tooltip
  • table的内部方法,通过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 start

Git 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

Related Packages

element-ui-sticky-table

Sticky for element-ui table

6,882 11
qing-element-world-area

Element UI 世界地图国家和地区数据(含港澳台)

402 0
element-ui-verify

如果你受够了饿了么ElementUI原生的校验方式,那就来试试它吧!一款更懂你的校验插件

2,897 468

Version History

Version Released Vue License
0.6.9 ^2.6.11 MIT
0.6.8 ^2.6.11 MIT
0.6.7 ^2.6.11 MIT
0.6.6 ^2.6.11 MIT
0.6.5 ^2.6.11 MIT