vue.js组件数据绑定_Vue.js的增强的数据透视表组件

vue.js组件数据绑定 VUE数据透视表加 (vue-pivot-table-plus)A customized vue component for pivot table. 数据透视表的定制vue组件。 This project is modified based on vue-pivot-table to adjust its design to our products and ad...
摘要由CSDN通过智能技术生成

vue.js组件数据绑定

VUE数据透视表加 (vue-pivot-table-plus)

A customized vue component for pivot table.

数据透视表的定制vue组件。

This project is modified based on vue-pivot-table to adjust its design to our products and add custom features described below.

根据vue-pivot-table修改了此项目,以根据我们的产品调整其设计并添加以下描述的自定义功能。

定制功能 (Customized features)

  • Used v-model to bind row / column fields

    使用v-model绑定行/列字段

    • And get these states reactively

      并React性地获得这些状态
  • Reset row / column fields

    重置行/列字段

  • Download the current pivotted table in CSV / TSV

    下载CSV / TSV中的当前数据透视表

  • Sortable rows

    可排序的行

  • Design updates

    设计更新

    • Shrinked buttons and table

      缩小的按钮和桌子

安装 (Install)

npm install --save vue-pivot-table-plus (temp)

npm install --save vue-pivot-table-plus (temp)

用法 (Usage)

The component Pivot has an aggregation table (referred to as PivotTable) from data & specific rows/columns.

组件Pivot具有来自数据和特定行/列的聚合表(称为PivotTable )。

Pivot has also a drag & drop user interface to configure rows/columns of a PivotTable.

Pivot还具有拖放用户界面,以配置PivotTable表的行/列。

<!-- App.vue (template) -->
<template>
  <div id="app">
  ...

    <pivot
      :data="data"
      v-model="fields"
      :reducer="reducer"
      :showSettings="defaultShowSettings"
      >
    </pivot>
  ...

</template>
/* App.vue (js)*/
// Import the needed component(s)
import Vue from 'vue'
import { Pivot } from 'vue-pivot-table-plus'

export default Vue.extend({
  name: "app",
  components: { Pivot },
  data: () => {
    return {
      data: 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值