@veritree/ui 0.76.1-6 → 0.76.1-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.76.1-6",
3
+ "version": "0.76.1-7",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -21,7 +21,7 @@
21
21
  :minimum-view="minimumView"
22
22
  :maximum-view="maximumView"
23
23
  :show-edge-dates="showEdgeDates"
24
- :disabled-dates="disabledDates"
24
+ :disabled-dates="disabledDatesComputed"
25
25
  @input="onInput"
26
26
  >
27
27
  <template #prevIntervalBtn>
@@ -62,6 +62,10 @@ export default {
62
62
  },
63
63
 
64
64
  props: {
65
+ disabledDates: {
66
+ type: [Function, Object],
67
+ default: null,
68
+ },
65
69
  format: {
66
70
  type: String,
67
71
  default: 'YYYY-MM-DD',
@@ -111,7 +115,11 @@ export default {
111
115
  return dayjs(this.value).format(this.format);
112
116
  },
113
117
 
114
- disabledDates() {
118
+ disabledDatesComputed() {
119
+ if (this.disabledDates) {
120
+ return this.disabledDates;
121
+ }
122
+
115
123
  return {
116
124
  to: this.min,
117
125
  from: this.max,