1.0.3 • Published 5 years ago

@hellosnowyy/vue-l-table v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

vue-l-table

整合iview table和page组件

使用方法:

// 需先引入
iviewimport "iview/dist/styles/iview.css"
import iView from 'iview';
Vue.use(iView);

import LTable from '@hellosnowyy/vue-l-table';
Vue.use(LTable);

options

参数名称说明类型
table表格参数object
page分页参数object

table额外参数

参数名称说明类型
index开启序号boolean
indexLabel序号抬头,默认为序号string

###example###

<LTable :table="table" :page="page"></LTable>


// 参数同iview,采用小驼峰命名key值
// 支持Table  slot-scope

let table = {
	data: [],
    columns: [
		{
            title: '名称',
            slot: 'name'
        },
        {
            title: '描述',
            key: 'des'
        }
    ],
	showHeader: true
}

let page = {
    total: 100,
    current: 1,
    pageSize: 10,
    showTotal: true
}

solt

名称说明
headerTable header
footerTable footer
loadingTable loading
totalPage 默认solt,用于自定义total

methods

用法与Table相同

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago