1.0.3 • Published 1 year ago

auto-el-table v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

auto-el-table

tableDatas:为控件初始化绑定变量,存放表格表头数据和内容

tableData:表格数据

tableLabel:表头定义

示例:

<template>
  <div class="home">
    <auto-el-table ref="subComp" :table-datas="tableDatas" :rule="formRules" ></auto-el-table>
  </div>
</template>

<script>
export default {
  name: 'Home',
  components: {
  },
  data() {
    return {
      tableDatas: [
        {
          tableData: [], 
          tableLabel: [
            { label: '一层', width: '', prop: '1_1', type: 'string' }
          ],
          id: '100101',
          name: '机房温度℃',
          activeNames: ['100101'],
          check: false,
          infoData: {},
          cur_page: 1,
          pageSize: 10,
          total: 0,
          pageSizes: [10, 20, 30, 50],
          isAddColumn: true,
          colume: undefined,
          columeoptions: [{ encode: '1', fullName: '一层', company: '层' }, {
            encode: '2',
            fullName: '二层',
            company: '层'
          }],
          isplan: false,
          build: true
        }
      ],
      formRules: {}
    }
  }
}
</script>