vue-tables-2
Advanced tools
Comparing version 0.4.12 to 0.4.20
module.exports = function() { | ||
return displayableColumns(this.Columns.concat(this.customColumns), this.windowWidth, this.columnsDisplay); | ||
return displayableColumns(this.Columns, this.windowWidth, this.columnsDisplay); | ||
} | ||
@@ -4,0 +4,0 @@ |
@@ -5,4 +5,3 @@ module.exports = function(column) { | ||
return this.customColumns.indexOf(column)==-1 && | ||
((typeof this.opts.filterable=='boolean' && this.opts.filterable) || this.opts.filterable.indexOf(column)>-1); | ||
return (typeof this.opts.filterable=='boolean' && this.opts.filterable) || this.opts.filterable.indexOf(column)>-1; | ||
} |
@@ -7,4 +7,2 @@ var bus = require('../bus') | ||
this.addCustomColumns(); | ||
setTimeout(function(){ | ||
@@ -11,0 +9,0 @@ this.dispatch('loaded',data); |
module.exports = function(column) { | ||
var isCustomColumn = this.customColumns.indexOf(column)>-1; | ||
if (isCustomColumn) return false; | ||
var sortAll = typeof this.opts.sortable=='boolean' && this.opts.sortable; | ||
@@ -8,0 +4,0 @@ |
module.exports = { | ||
listColumnsObject: require('../computed/list-columns-object'), | ||
allColumns: require('../computed/all-columns'), | ||
customColumns: require('../computed/custom-columns'), | ||
templatesKeys: require('../computed/templates-keys'), | ||
@@ -6,0 +5,0 @@ opts: require('../computed/opts'), |
module.exports = function() { | ||
return { | ||
id: makeId(), | ||
count:0, | ||
rowsToggleState:{}, | ||
@@ -6,0 +5,0 @@ windowWidth:window.innerWidth, |
@@ -10,3 +10,2 @@ module.exports = { | ||
getHeading: require('../methods/get-heading'), | ||
addCustomColumns: require('../methods/add-custom-columns'), | ||
sortable: require('../methods/sortable'), | ||
@@ -13,0 +12,0 @@ display: require('../methods/display'), |
@@ -6,2 +6,3 @@ export default function(useVuex, source) { | ||
let data = { | ||
count:0, | ||
customQueries:{}, | ||
@@ -8,0 +9,0 @@ query:null, |
@@ -43,4 +43,2 @@ import VuePagination from 'vue-pagination-2' | ||
this.addCustomColumns(); | ||
if (!this.vuex) { | ||
@@ -54,3 +52,2 @@ | ||
this.count = this.data.length; | ||
} | ||
@@ -57,0 +54,0 @@ |
102
package.json
{ | ||
"name": "vue-tables-2", | ||
"description": "Vue.js 2 grid components", | ||
"version": "0.4.12", | ||
"keywords": [ | ||
"vue2", | ||
"vuex", | ||
"bootstrap", | ||
"tables", | ||
"grids" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/matfish2/vue-tables-2" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"lib", | ||
"tonic-example.js" | ||
], | ||
"dependencies": { | ||
"clone": "^2.1.0", | ||
"merge": "^1.2.0", | ||
"moment": "^2.11.1", | ||
"vue": ">=2.0.0", | ||
"vue-pagination-2": "^0.2.4", | ||
"vue-resource": "^0.9.0" | ||
}, | ||
"browserify": { | ||
"transform": [ | ||
"babelify" | ||
] | ||
}, | ||
"scripts": { | ||
"build-min": "browserify index.js --s VueTables | uglifyjs -c > dist/vue-tables.min.js" | ||
}, | ||
"licenses": "MIT", | ||
"main": "index.js", | ||
"tonicExampleFilename": "tonic-example.js", | ||
"devDependencies": { | ||
"daterangepicker": "0.0.3", | ||
"jasmine-core": "^2.3.4", | ||
"jquery": "^2.1.4", | ||
"karma": "^0.13.15", | ||
"karma-browserify": "^4.4.1", | ||
"karma-chrome-launcher": "^0.2.1", | ||
"karma-firefox-launcher": "^0.1.7", | ||
"karma-jasmine": "^0.3.6", | ||
"babel-helper-vue-jsx-merge-props": "^2.0.1", | ||
"babel-plugin-syntax-jsx": "^6.13.0", | ||
"babel-plugin-transform-vue-jsx": "^3.1.0" | ||
} | ||
"name": "vue-tables-2", | ||
"description": "Vue.js 2 grid components", | ||
"version": "0.4.20", | ||
"keywords": [ | ||
"vue2", | ||
"vuex", | ||
"bootstrap", | ||
"tables", | ||
"grids" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/matfish2/vue-tables-2" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"lib", | ||
"tonic-example.js" | ||
], | ||
"dependencies": { | ||
"clone": "^2.1.0", | ||
"merge": "^1.2.0", | ||
"moment": "^2.11.1", | ||
"vue": ">=2.0.0", | ||
"vue-pagination-2": "^0.2.4", | ||
"vue-resource": "^0.9.0" | ||
}, | ||
"browserify": { | ||
"transform": [ | ||
"babelify" | ||
] | ||
}, | ||
"scripts": { | ||
"build-min": "browserify index.js --s VueTables | uglifyjs -c > dist/vue-tables.min.js" | ||
}, | ||
"licenses": "MIT", | ||
"main": "index.js", | ||
"tonicExampleFilename": "tonic-example.js", | ||
"devDependencies": { | ||
"daterangepicker": "0.0.3", | ||
"jasmine-core": "^2.3.4", | ||
"jquery": "^2.1.4", | ||
"karma": "^0.13.15", | ||
"karma-browserify": "^4.4.1", | ||
"karma-chrome-launcher": "^0.2.1", | ||
"karma-firefox-launcher": "^0.1.7", | ||
"karma-jasmine": "^0.3.6", | ||
"babel-helper-vue-jsx-merge-props": "^2.0.1", | ||
"babel-plugin-syntax-jsx": "^6.13.0", | ||
"babel-plugin-transform-vue-jsx": "^3.1.0" | ||
} | ||
} |
60063
96
1476