Components
- Introduction
- vc-button
- vc-icon
- vc-checkbox
- vc-radio
- vc-buttonGroup
- vc-cascader
- vc-datepicker
- timepicker
- vc-easyclearinput
- vc-inputNumber
- vc-select
- vc-alert
- vc-badge
- vc-card
- vc-carousel
- vc-dropdown
- vc-toast
- vc-notification
- vc-modal
- vc-dialog
- vc-confrim
- vc-popover
- vc-tooltip
- vc-progress
- vc-table
- vc-tag
- vc-breadcrumb
- vc-pagination
- vc-steps
- vc-tabs
- vc-backtop
- vc-loading
- vc-panel
vc-table
Install
|
|
|
|
Usage
props
name
- type:
String
- default:
'vc-table' + Date.now()
tpl
- type:
String
// 放出tpl属性,让用户定制组件template,支持一个字符串来代表字符串模板或模板dom标示
data
- type:
Array
dataParser
a callback to parse each entry[key]
in template
- type:
Function
dataPlus
- type:
Object
// 高级定制: 外部可提供一个数据对象供模板使用(比如传入baseUrl)
columns
- type:
Array
columnsMap
- type:
Object
// key => value对照映射,用于可能的中文filter
title
表头
- type:
String
titleAlign
- type:
String
- default:
'center'
tableFixed
table-layout: fixed的使用
- type:
Boolean
- default:
false
searchable
是否可搜索过滤
- type:
Boolean
- default:
false
filterKey
- type:
String
filterLabel
- type:
String
- default:
'筛选'
sortable
- type:
Boolean
- default:
false
showTableHeader
- type:
Boolean
- default:
true
exportLabel
- type:
String
- default:
'导出'
exportable
是否显示导出按钮(会dispatch排序参数等相关信息)
- type:
Boolean
- default:
false
example
- js
|
|