Skip to content

Commit

Permalink
keys fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xaksis committed Jan 11, 2018
1 parent 70f3d9d commit 82896c1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
11 changes: 11 additions & 0 deletions dev/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<div>
<button @click="addRow">Add Row</button>
<button @click="editRow">edit Row</button>
<vue-good-table
:paginate="true"
:columns="columns"
Expand Down Expand Up @@ -103,6 +105,15 @@
methods: {
onClick() {
console.log('clicked');
},
addRow() {
this.rows.push({
name: 'Chris' + Math.random(),
age: 20,
});
},
editRow() {
this.$set(this.rows[12], 'age', 300);
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion dist/stats.json

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions dist/vue-good-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -23563,7 +23563,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
staticClass: "line-numbers"
}) : _vm._e(), _vm._v(" "), _vm._l((_vm.columns), function(column, index) {
return (!column.hidden) ? _c('th', {
key: column.label,
key: index,
class: _vm.getHeaderClasses(column, index),
style: ({
width: column.width ? column.width : 'auto'
Expand All @@ -23578,7 +23578,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
})], 2) : _vm._e()
}), _vm._v(" "), _vm._t("thead-tr")], 2), _vm._v(" "), (_vm.hasFilterRow) ? _c('tr', [(_vm.lineNumbers) ? _c('th') : _vm._e(), _vm._v(" "), _vm._l((_vm.columns), function(column, index) {
return (!column.hidden) ? _c('th', {
key: column.label
key: index
}, [(column.filterable) ? _c('div', {
class: _vm.getHeaderClasses(column, index)
}, [(!column.filterDropdown) ? _c('input', {
Expand All @@ -23604,12 +23604,13 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
}
}
}, [_c('option', {
key: "-1",
attrs: {
"value": ""
}
}, [_vm._v(_vm._s(_vm.getPlaceholder(column)))]), _vm._v(" "), _vm._l((column.filterOptions), function(option) {
}, [_vm._v(_vm._s(_vm.getPlaceholder(column)))]), _vm._v(" "), _vm._l((column.filterOptions), function(option, i) {
return _c('option', {
key: option,
key: i,
domProps: {
"value": option
}
Expand All @@ -23624,12 +23625,13 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
}
}
}, [_c('option', {
key: "-1",
attrs: {
"value": ""
}
}, [_vm._v(_vm._s(_vm.getPlaceholder(column)))]), _vm._v(" "), _vm._l((column.filterOptions), function(option) {
}, [_vm._v(_vm._s(_vm.getPlaceholder(column)))]), _vm._v(" "), _vm._l((column.filterOptions), function(option, i) {
return _c('option', {
key: option,
key: i,
domProps: {
"value": option.value
}
Expand All @@ -23651,7 +23653,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
index: index
}), _vm._v(" "), _vm._t("table-row", _vm._l((_vm.columns), function(column, i) {
return (!column.hidden && column.field) ? _c('td', {
key: column.label,
key: i,
class: _vm.getClasses(i, 'td')
}, [(!column.html) ? _c('span', [_vm._v(_vm._s(_vm.collectFormatted(row, column)))]) : _vm._e(), _vm._v(" "), (column.html) ? _c('span', {
domProps: {
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-good-table.min.js

Large diffs are not rendered by default.

0 comments on commit 82896c1

Please sign in to comment.