@tager/admin-export 1.0.0 → 1.0.1
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/dist/index.mjs
CHANGED
|
@@ -75,9 +75,15 @@ function getExportFormUrl(params) {
|
|
|
75
75
|
return compile(EXPORT_ROUTE_PATHS.EXPORT_FORM)(params);
|
|
76
76
|
}
|
|
77
77
|
function dateTimeFormat(value) {
|
|
78
|
-
const options = {};
|
|
79
78
|
const date = new Date(value);
|
|
80
|
-
return new Intl.DateTimeFormat("ru-RU",
|
|
79
|
+
return new Intl.DateTimeFormat("ru-RU", {
|
|
80
|
+
year: "numeric",
|
|
81
|
+
month: "numeric",
|
|
82
|
+
day: "numeric",
|
|
83
|
+
hour: "numeric",
|
|
84
|
+
minute: "numeric",
|
|
85
|
+
second: "numeric"
|
|
86
|
+
}).format(date);
|
|
81
87
|
}
|
|
82
88
|
var CellHistory_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
83
89
|
var _export_sfc = (sfc, props) => {
|
|
@@ -176,7 +182,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
176
182
|
id: 5,
|
|
177
183
|
name: t("export:log"),
|
|
178
184
|
field: "history",
|
|
179
|
-
style: { width: "25%" },
|
|
185
|
+
style: { width: "25%", whiteSpace: "nowrap" },
|
|
180
186
|
headStyle: { width: "25%" }
|
|
181
187
|
},
|
|
182
188
|
{
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export function dateTimeFormat(value: number | string | Date): string {
|
|
2
|
-
const
|
|
3
|
-
|
|
2
|
+
const date = new Date(value);
|
|
3
|
+
|
|
4
|
+
return new Intl.DateTimeFormat('ru-RU', {
|
|
5
|
+
year: 'numeric',
|
|
4
6
|
month: 'numeric',
|
|
5
7
|
day: 'numeric',
|
|
6
8
|
hour: 'numeric',
|
|
7
9
|
minute: 'numeric',
|
|
8
|
-
second: 'numeric'
|
|
9
|
-
};
|
|
10
|
-
const date = new Date(value);
|
|
11
|
-
return new Intl.DateTimeFormat('ru-RU', options).format(date);
|
|
10
|
+
second: 'numeric',
|
|
11
|
+
}).format(date);
|
|
12
12
|
}
|