c0b983e016
- Tailwind CSS v4 con @tailwindcss/vite - shadcn-vue: 19 componentes UI (button, card, dialog, table, select, tabs, sidebar, separator, breadcrumb, badge, avatar, dropdown-menu, tooltip, input, switch, sheet, skeleton) - Sidebar collapsible con íconos Lucide - Theme Teloprax en CSS variables (rojo #E63946, negro #1A1A2E) - LoginView, DashboardView, CalendarView, SchedulerView migrados - Eliminado AppShell.vue manual (reemplazado por SidebarProvider) - Layout con breadcrumb, sidebar trigger, header unificado
11 lines
304 B
TypeScript
11 lines
304 B
TypeScript
import type { Updater } from '@tanstack/vue-table'
|
|
|
|
import type { Ref } from 'vue'
|
|
import { isFunction } from '@tanstack/vue-table'
|
|
|
|
export function valueUpdater<T>(updaterOrValue: Updater<T>, ref: Ref<T>) {
|
|
ref.value = isFunction(updaterOrValue)
|
|
? updaterOrValue(ref.value)
|
|
: updaterOrValue
|
|
}
|