@veritree/ui 0.76.1-4 → 0.76.1-5
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
|
@@ -111,12 +111,12 @@ export default {
|
|
|
111
111
|
// following the Unicode Technical Standard #35 for date format patterns.
|
|
112
112
|
// This is different from the format patterns used in the JavaScript Date object, which uses 'YYYY' and 'DD'.
|
|
113
113
|
// For more information, refer to the date-fns documentation: https://date-fns.org/v3.6.0/docs/Unicode-Tokens
|
|
114
|
-
//
|
|
114
|
+
// Using useAdditionalDayOfYearTokens and useAdditionalWeekYearTokens allows the date-fns library to use 'YYYY' and 'DD'.
|
|
115
115
|
valueModelFormatted() {
|
|
116
|
-
return format(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
);
|
|
116
|
+
return format(this.value, this.format, {
|
|
117
|
+
useAdditionalDayOfYearTokens: true,
|
|
118
|
+
useAdditionalWeekYearTokens: true,
|
|
119
|
+
});
|
|
120
120
|
},
|
|
121
121
|
|
|
122
122
|
disabledDates() {
|