wh-eltable
v1.0.1
Published
基于element-ui中el-table封装的组件
Downloads
2
Readme
el-eltable
ElementUI's combined with el-table.
Usage
Install
npm install --save wh-eltable
Require element-ui
If your project does not use element-ui, you need to introduce a separate element-ui package, like this:
import 'wh-eltable/lib/element-ui';
Global registration
import Vue from 'vue';
import WhEltable from 'wh-eltable';
Vue.use(WhEltable);
In-component registration
import WhEltable from 'wh-eltable';
export default {
components: {
WhEltable
}
};
Complete example
<template>
<div class="table">
<wh-table :tableData="tableData" :columns="columns" :loading="loading" />
</div>
</template>
<script>
export default {
name: 'component',
data() {
return {
tableData: [
{
id: 1
}
],
columns: [
{
prop: 'id',
label: '姓名'
}
],
loading: false
}
}
}
</script>
<style lang="scss" scoped></style>