Skip to content

Commit c2de0a7

Browse files
author
Irfan Maulana
committed
fix this failed
1 parent 82ba32b commit c2de0a7

File tree

5 files changed

+37
-16
lines changed

5 files changed

+37
-16
lines changed

dist/vue-rangedate-picker.common.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ var fecha = createCommonjsModule(function (module) {
355355
})(commonjsGlobal);
356356
});
357357

358-
var this$1 = undefined;
359358
var defaultConfig = {};
360359
var defaultI18n = 'ID';
361360
var availableMonths = {
@@ -484,11 +483,15 @@ var __vue_module__ = {
484483
},
485484
months: {
486485
type: Array,
487-
default: function () { return availableMonths[this$1.i18n]; }
486+
default: function () {
487+
return availableMonths[this.i18n]
488+
}
488489
},
489490
shortDays: {
490491
type: Array,
491-
default: function () { return availableShortDays[this$1.i18n]; }
492+
default: function () {
493+
return availableShortDays[this.i18n]
494+
}
492495
},
493496
// options for captions are: title, ok_button
494497
captions: {
@@ -517,7 +520,9 @@ var __vue_module__ = {
517520
},
518521
presetRanges: {
519522
type: Object,
520-
default: function () { return defaultPresets(this$1.i18n); }
523+
default: function () {
524+
return defaultPresets[this.i18n]
525+
}
521526
},
522527
compact: {
523528
type: String,

dist/vue-rangedate-picker.esm.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ var fecha = createCommonjsModule(function (module) {
351351
})(commonjsGlobal);
352352
});
353353

354-
var this$1 = undefined;
355354
var defaultConfig = {};
356355
var defaultI18n = 'ID';
357356
var availableMonths = {
@@ -480,11 +479,15 @@ var __vue_module__ = {
480479
},
481480
months: {
482481
type: Array,
483-
default: function () { return availableMonths[this$1.i18n]; }
482+
default: function () {
483+
return availableMonths[this.i18n]
484+
}
484485
},
485486
shortDays: {
486487
type: Array,
487-
default: function () { return availableShortDays[this$1.i18n]; }
488+
default: function () {
489+
return availableShortDays[this.i18n]
490+
}
488491
},
489492
// options for captions are: title, ok_button
490493
captions: {
@@ -513,7 +516,9 @@ var __vue_module__ = {
513516
},
514517
presetRanges: {
515518
type: Object,
516-
default: function () { return defaultPresets(this$1.i18n); }
519+
default: function () {
520+
return defaultPresets[this.i18n]
521+
}
517522
},
518523
compact: {
519524
type: String,

dist/vue-rangedate-picker.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ var fecha = createCommonjsModule(function (module) {
357357
})(commonjsGlobal);
358358
});
359359

360-
var this$1 = undefined;
361360
var defaultConfig = {};
362361
var defaultI18n = 'ID';
363362
var availableMonths = {
@@ -486,11 +485,15 @@ var __vue_module__ = {
486485
},
487486
months: {
488487
type: Array,
489-
default: function () { return availableMonths[this$1.i18n]; }
488+
default: function () {
489+
return availableMonths[this.i18n]
490+
}
490491
},
491492
shortDays: {
492493
type: Array,
493-
default: function () { return availableShortDays[this$1.i18n]; }
494+
default: function () {
495+
return availableShortDays[this.i18n]
496+
}
494497
},
495498
// options for captions are: title, ok_button
496499
captions: {
@@ -519,7 +522,9 @@ var __vue_module__ = {
519522
},
520523
presetRanges: {
521524
type: Object,
522-
default: function () { return defaultPresets(this$1.i18n); }
525+
default: function () {
526+
return defaultPresets[this.i18n]
527+
}
523528
},
524529
compact: {
525530
type: String,

dist/vue-rangedate-picker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/rangedate-picker.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,15 @@ export default {
128128
},
129129
months: {
130130
type: Array,
131-
default: () => availableMonths[this.i18n]
131+
default: function () {
132+
return availableMonths[this.i18n]
133+
}
132134
},
133135
shortDays: {
134136
type: Array,
135-
default: () => availableShortDays[this.i18n]
137+
default: function () {
138+
return availableShortDays[this.i18n]
139+
}
136140
},
137141
// options for captions are: title, ok_button
138142
captions: {
@@ -161,7 +165,9 @@ export default {
161165
},
162166
presetRanges: {
163167
type: Object,
164-
default: () => defaultPresets(this.i18n)
168+
default: function () {
169+
return defaultPresets[this.i18n]
170+
}
165171
},
166172
compact: {
167173
type: String,

0 commit comments

Comments
 (0)