vueless 0.0.343 → 0.0.344
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/composables/useLocale.js
CHANGED
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
:timepicker="timepicker"
|
|
49
49
|
:date-format="dateFormat"
|
|
50
50
|
:date-time-format="dateTimeFormat"
|
|
51
|
-
:user-date-format="
|
|
51
|
+
:user-date-format="userDateFormat"
|
|
52
52
|
:user-date-time-format="userDateTimeFormat"
|
|
53
53
|
:max-date="maxDate"
|
|
54
54
|
:min-date="minDate"
|
|
@@ -359,7 +359,7 @@ function onBlur(event) {
|
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
function formatUserDate(data) {
|
|
362
|
-
if (props.
|
|
362
|
+
if (props.userDateFormat !== STANDARD_USER_FORMAT || props.timepicker) return data;
|
|
363
363
|
|
|
364
364
|
let prefix = "";
|
|
365
365
|
const formattedDate = data.charAt(0).toUpperCase() + data.toLowerCase().slice(1);
|
|
@@ -16,7 +16,7 @@ import defaultConfig from "../config.js?raw"
|
|
|
16
16
|
<Source code={getSource(defaultConfig)} language="jsx" dark />
|
|
17
17
|
|
|
18
18
|
## Formatting tokens
|
|
19
|
-
Each character in the table below can be used in `dateFormat` and `
|
|
19
|
+
Each character in the table below can be used in `dateFormat` and `userDateFormat` / `userDateTimeFormat` options to achieve the format you need.
|
|
20
20
|
|
|
21
21
|
<Markdown>
|
|
22
22
|
{`
|