VTable/packages/vue-vtable
方帅 0ef19c560a
Merge pull request #2596 from YELineee/develop
fix: convert camel case in tables
2024-10-12 19:22:37 +08:00
..
demo fix: the demo is not working properly 2024-10-12 14:39:37 +08:00
src fix: remove some unused code 2024-10-12 14:57:27 +08:00
.eslintrc.js feat: initial commit 2024-09-04 17:48:22 +08:00
bundler.config.js chore: add vue build method 2024-09-24 16:23:57 +08:00
package.json build: prelease version 1.9.1 2024-10-12 07:12:04 +00:00
README.md docs: update Vue-VTable README 2024-09-11 10:10:02 +08:00
setup-mock.js feat: initial commit 2024-09-04 17:48:22 +08:00
tscofig.eslint.json feat: initial commit 2024-09-04 17:48:22 +08:00
tsconfig.json feat: initial commit 2024-09-04 17:48:22 +08:00

Vue-VTable

VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns. Vue-VTable is the Vue wrapper of VTable.

npm Version npm Download license

Usage

Installation

npm package

// npm
npm install @visactor/vue-vtable

// yarn
yarn add @visactor/vue-vtable

Quick Start

unified tag

<template>
  <vue-list-table :options="tableOptions"/>
</template>

<script>
export default {
  data() {
    const option = {
      header: [
        {
          field: '0',
          caption: '名称'
        },
        {
          field: '1',
          caption: '年龄'
        },
        {
          field: '2',
          caption: '性别'
        },
        {
          field: '3',
          caption: '爱好'
        }
      ],
      records: new Array(1000).fill(['Yelineee', 18, '男', '🏀'])
    };
    return {
      tableOptions: option
    };
  }
};
</script>

gramatical tag

<template>
  <vue-pivot-chart :options="tableOptions" ref="pivotChartRef" @onLegendItemClick="handleLegendItemClick" :height="800">
    
   <PivotRowDimension
      v-for="row in rows"
      :dimensionKey="row.dimensionKey"
      :title="row.title"
      :headerStyle="row.headerStyle"
      :objectHandler="row"
    />
    
    
    <PivotColumnDimension
      v-for="column in columns"
      :dimensionKey="column.dimensionKey"
      :title="column.title"
      :headerStyle="column.headerStyle"
      :objectHandler="column"
    />

    
    <PivotIndicator
      v-for="indicator in indicators"
      :indicatorKey="indicator.indicatorKey"
      :title="indicator.title"
      :cellType="indicator.cellType"
      :chartModule="indicator.chartModule"
      :chartSpec="indicator.chartSpec"
      :style="indicator.style"
    />

    <PivotCorner
      :titleOnDimension="corner.titleOnDimension"
      :headerStyle="corner.headerStyle"
    />

  </vue-pivot-chart>
</template>

More demos and detailed tutorials

Related Links

Ecosystem

Project Description
AI-generated Components AI-generated table component.

Contribution

If you would like to contribute, please read the Code of Conduct Guide first。

Small streams converge to make great rivers and seas!

License

MIT License