Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
use recursive merge for datepicker options and format
Browse files Browse the repository at this point in the history
  • Loading branch information
matfish2 committed Mar 18, 2018
1 parent 243544b commit b29aa3a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions compiled/methods/init-date-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ module.exports = function () {

columnOptions = typeof that.opts.datepickerPerColumnOptions[column] !== 'undefined' ? that.opts.datepickerPerColumnOptions[column] : {};

columnOptions = merge(columnOptions, {
columnOptions = merge.recursive(columnOptions, {
locale: {
format: that.dateFormat(column)
}
});

el.daterangepicker(merge(datepickerOptions, columnOptions, range));
el.daterangepicker(merge.recursive(datepickerOptions, columnOptions, range));

el.on('apply.daterangepicker', function (ev, picker) {

Expand Down
2 changes: 1 addition & 1 deletion dist/vue-tables-2.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/methods/init-date-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ module.exports = function() {
columnOptions = typeof that.opts.datepickerPerColumnOptions[column]!=='undefined'?
that.opts.datepickerPerColumnOptions[column]:{};

columnOptions = merge(columnOptions, {
columnOptions = merge.recursive(columnOptions, {
locale: {
format: that.dateFormat(column)
}
});

el.daterangepicker(merge(datepickerOptions, columnOptions, range));
el.daterangepicker(merge.recursive(datepickerOptions, columnOptions, range));

el.on('apply.daterangepicker', function(ev, picker) {

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-tables-2",
"description": "Vue.js 2 grid components",
"version": "1.3.83",
"version": "1.3.90",
"keywords": [
"vue2",
"vuex",
Expand Down

0 comments on commit b29aa3a

Please sign in to comment.