wenkil-transverse-table

1.0.7 • Public • Published

INSTALL

npm i wenkil-transverse-table

demo

<template>
  <div class="app-container">
    <TransverseTable ref="transverseTable" :columnNum='4' :tableData="[
            {key:'test',value: 1},
            {key:'test',value: 1},
            {key:'test',value: 1},
            {key:'test',value: 1},
            {key:'test',value: 1},
            {key:'test',value: 1},
    ]"></TransverseTable>
  </div>
</template>


<script>
  import TransverseTable from 'wenkil-transverse-table'
  export default {
    components: {TransverseTable},
    data() {
      return {}
    },
    created() {},
    mounted() {
      this.$refs.transverseTable.setTable()
    },
    methods: {},
  }
</script>

在父组件里,动态获取数据时需要调用下this.$refs.transverseTable.setTable() 来渲染数据

columnNum为 列数,默认为6,可以根据需求传如你想要展示的列数 tableData为 Key Value 格式的数组

我的github地址 https://github.com/wenkil/wenkil-transverse-table

Readme

Keywords

none

Package Sidebar

Install

npm i wenkil-transverse-table

Weekly Downloads

0

Version

1.0.7

License

ISC

Unpacked Size

20.6 kB

Total Files

15

Last publish

Collaborators

  • user_1929614951653442