bfg-common 1.4.404 → 1.4.405
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.
|
@@ -85,6 +85,7 @@ export const chartTypeFunc = (
|
|
|
85
85
|
]
|
|
86
86
|
|
|
87
87
|
const getCorrectRuForm = (value: number, type: string): string => {
|
|
88
|
+
// TODO поправить используя correctRuUnit из плагина date
|
|
88
89
|
const forms: UI_I_ArbitraryObject<string[]> = {
|
|
89
90
|
hour: ['Час', 'Часа', 'Часов'],
|
|
90
91
|
day: ['День', 'Дня', 'Дней'],
|
package/package.json
CHANGED
package/plugins/date.ts
CHANGED
|
@@ -215,12 +215,12 @@ export default defineNuxtPlugin(() => {
|
|
|
215
215
|
const years = Math.floor(time / 60 / 60 / 24 / 30 / 12)
|
|
216
216
|
|
|
217
217
|
let result = ''
|
|
218
|
-
if (
|
|
219
|
-
if (
|
|
220
|
-
if (
|
|
221
|
-
if (
|
|
222
|
-
if (
|
|
223
|
-
if (
|
|
218
|
+
if (years) result += `${years}${units[5]}`
|
|
219
|
+
if (months) result += ` ${months}${units[4]}`
|
|
220
|
+
if (days) result += ` ${days}${units[3]}`
|
|
221
|
+
if (hours) result += ` ${hours}${units[2]}`
|
|
222
|
+
if (minutes) result += ` ${minutes}${units[1]}`
|
|
223
|
+
if (seconds) result += ` ${seconds}${units[0]}`
|
|
224
224
|
|
|
225
225
|
return result
|
|
226
226
|
}
|