1.3.1 • Published 2 years ago

bc-pivot-table v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

bc-pivot-table

A pivot table rewriting table with div

*Support virtual scrolling

*Support the merging of left and upper grids

*Enable webworker for calculation under big data

*Total supported display

*Support freezing the left column

*Rewrite the layout and replace the unfriendly table with Div

bc-pivot-table preview

github

https://github.com/beckhayu888/bc-pivot-table

Install

npm install --save bc-pivot-table

Components

BcBasePivotTable

BcFixedPivotTable

Use

Global import

import bcPivotTable from 'bc-pivot-table'

createApp(App).use(bcPivotTable)

<bc-base-pivot-table></bc-base-pivot-table>

<bc-fixed-pivot-table></bc-fixed-pivot-table>

Local introduction

import { BcBasePivotTable, BcFixedPivotTable } from 'bc-pivot-table'

<bc-base-pivot-table></bc-base-pivot-table>

<bc-fixed-pivot-table></bc-fixed-pivot-table>

Parameter description

parametertypedefaultremark
showSumBooleantrueShow total
valueKeyStringvalueUse field of data value
rowKeyArray[]Configuration array in the left column
colKeyArray[]Configuration array of header column above
dataListArray[]data
cellStyleOpsObject{}Pivot table configuration
rowKey、colKey
parametertypedefaultremark
labelStringlabel
valueStringUse field of data value
cellStyleOps
parametertypedefaultremark
paddingLeftNumber6padding-left
paddingRightNumber6padding-right
heightNumber25Height attribute of each grid
fontSizeNumber12fontSize
maxWidthNumber150Maximum width of each grid
workerAutoLimitNumber1000When the amount of data reaches how many pieces, start webworker to calculate (solution for multiple data)

important remark!!!

Remember!!! You can't change the CSS attribute that changes the width and height of the grid at will, otherwise the grid style will be disordered

Changing the color and other styles that do not change the width and height can be modified using the depth selector

The current version only supports vue3 X version

example

effect Example code Example code Example code

You can download the code to view the example

1.3.1

2 years ago

1.3.0

2 years ago

1.2.8

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.5

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago