edoc-table-list
v1.0.16
Published
edoc-table-list组件
Downloads
3
Readme
table-list
edoc-table-list组件
Build Setup
# install dependencies
npm install edoc-table-list --save
For detailed explanation on how things work, consult the docs for vue-loader.
Usage
# in main.js
import EdocTableList from 'edoc-table-list';
Vue.use(EdocTableList);
# in <template>
<edoc-table-list header-color="#409EFF" header-text-color="#ffffff" checkable :button-group="buttonGroup" :labels="labels" url="get/my-data" @switch-change="onSwitchChange($event)">
<template slot="operation" slot-scope="{ row, $index }">
<el-tooltip class="item" effect="light" content="detail" placement="top">
<i class="el-icon-view" @click="detail(row, $index)"></i>
</el-tooltip>
<el-tooltip class="item" effect="light" content="delete" placement="top" style="margin-left: 15px">
<i class="el-icon-delete" @click="del(row,$index)"></i>
</el-tooltip>
</template>
</edoc-table-list>