gridjs-vue
Advanced tools
Comparing version 0.3.3 to 0.3.4
{ | ||
"name": "gridjs-vue", | ||
"description": "A Vue.js wrapper component for Grid.js", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"license": "MIT", | ||
@@ -17,3 +17,4 @@ "private": false, | ||
"build": "bili src/index.js; yarn todo", | ||
"todo": "leasot -x --reporter markdown 'src/**/*' > TODO.md" | ||
"todo": "leasot -x --reporter markdown 'src/**/*' > TODO.md", | ||
"release": "eval $(envkey-source); release-it" | ||
}, | ||
@@ -42,2 +43,3 @@ "files": [ | ||
"@babel/preset-env": "^7.10.3", | ||
"@release-it/keep-a-changelog": "^1.1.1", | ||
"@vue/compiler-sfc": "^3.0.0-beta.15", | ||
@@ -56,2 +58,3 @@ "@vue/eslint-config-prettier": "^6.0.0", | ||
"prettier": "^2.0.5", | ||
"release-it": "^13.6.3", | ||
"rollup": "^2.18.1", | ||
@@ -58,0 +61,0 @@ "rollup-plugin-babel": "^4.4.0", |
# gridjs-vue | ||
<center><img src="https://user-images.githubusercontent.com/2541728/84843482-ffc31c00-b015-11ea-95e8-dc6fb3931ad5.png" alt="gridjs-vue logo" /></center> | ||
![gridjs-vue logo](https://user-images.githubusercontent.com/2541728/84843482-ffc31c00-b015-11ea-95e8-dc6fb3931ad5.png) | ||
@@ -127,2 +127,14 @@ A Vue wrapper component for [Grid.js](https://gridjs.io). | ||
// OR an array containing objects defining column headers | ||
cols: [ | ||
{ | ||
name: 'Column 1', | ||
id: 'col1' | ||
}, | ||
{ | ||
name: 'Column 2', | ||
id: 'col2' | ||
} | ||
] | ||
// AND EITHER an array containing row data (`data` in the Grid.js API) | ||
@@ -136,4 +148,4 @@ rows: [ | ||
rows: [ | ||
{ 'col 1': 'row 1', 'col 2': 'row 1' }, | ||
{ 'col 1': 'row 2', 'col 2': 'row 2' } | ||
{ col1: 'row 1', col2: 'row 1' }, | ||
{ col1: 'row 2', col2: 'row 2' } | ||
] | ||
@@ -144,4 +156,4 @@ | ||
return [ | ||
{ 'col 1': 3 + 4, 'col 2': 5 + 6 }, | ||
{ 'col 1': 1 * 2, 'col 2': 7 * 8 } | ||
{ col1: 3 + 4, col2: 5 + 6 }, | ||
{ col1: 1 * 2, col2: 7 * 8 } | ||
] | ||
@@ -148,0 +160,0 @@ } |
501110
226
25