vome-core 0.3.64 → 0.3.66
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/admin/api/client.js +7 -2
- package/dist/admin/components/ui/avatar/Avatar.vue +18 -18
- package/dist/admin/components/ui/avatar/AvatarFallback.vue +21 -21
- package/dist/admin/components/ui/avatar/AvatarImage.vue +16 -16
- package/dist/admin/components/ui/avatar/index.js +1 -1
- package/dist/admin/components/ui/badge/Badge.vue +26 -26
- package/dist/admin/components/ui/button/Button.vue +31 -31
- package/dist/admin/components/ui/checkbox/Checkbox.vue +35 -35
- package/dist/admin/components/ui/checkbox/index.js +1 -1
- package/dist/admin/components/ui/dialog/Dialog.vue +19 -19
- package/dist/admin/components/ui/dialog/DialogClose.vue +15 -15
- package/dist/admin/components/ui/dialog/DialogContent.vue +267 -267
- package/dist/admin/components/ui/dialog/DialogDescription.vue +23 -23
- package/dist/admin/components/ui/dialog/DialogFooter.vue +27 -27
- package/dist/admin/components/ui/dialog/DialogHeader.vue +17 -17
- package/dist/admin/components/ui/dialog/DialogOverlay.vue +21 -21
- package/dist/admin/components/ui/dialog/DialogScrollContent.vue +60 -60
- package/dist/admin/components/ui/dialog/DialogTitle.vue +23 -23
- package/dist/admin/components/ui/dialog/DialogTrigger.vue +15 -15
- package/dist/admin/components/ui/dialog/index.js +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenu.vue +19 -19
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +39 -39
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuContent.vue +39 -39
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuGroup.vue +15 -15
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuItem.vue +31 -31
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuLabel.vue +23 -23
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -21
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +40 -40
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -23
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -17
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSub.vue +18 -18
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSubContent.vue +27 -27
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -31
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -17
- package/dist/admin/components/ui/dropdown-menu/index.js +1 -1
- package/dist/admin/components/ui/input/Input.vue +183 -183
- package/dist/admin/components/ui/input/index.js +1 -1
- package/dist/admin/components/ui/label/Label.vue +26 -26
- package/dist/admin/components/ui/label/index.js +1 -1
- package/dist/admin/components/ui/scroll-area/ScrollArea.vue +33 -33
- package/dist/admin/components/ui/scroll-area/ScrollBar.vue +32 -32
- package/dist/admin/components/ui/scroll-area/index.js +1 -1
- package/dist/admin/components/ui/select/Select.vue +19 -19
- package/dist/admin/components/ui/select/SelectContent.vue +51 -51
- package/dist/admin/components/ui/select/SelectGroup.vue +15 -15
- package/dist/admin/components/ui/select/SelectItem.vue +53 -53
- package/dist/admin/components/ui/select/SelectItemText.vue +15 -15
- package/dist/admin/components/ui/select/SelectLabel.vue +17 -17
- package/dist/admin/components/ui/select/SelectScrollDownButton.vue +26 -26
- package/dist/admin/components/ui/select/SelectScrollUpButton.vue +26 -26
- package/dist/admin/components/ui/select/SelectSeparator.vue +19 -19
- package/dist/admin/components/ui/select/SelectTrigger.vue +44 -44
- package/dist/admin/components/ui/select/SelectValue.vue +15 -15
- package/dist/admin/components/ui/select/index.js +1 -1
- package/dist/admin/components/ui/separator/Separator.vue +29 -29
- package/dist/admin/components/ui/separator/index.js +1 -1
- package/dist/admin/components/ui/sheet/Sheet.vue +19 -19
- package/dist/admin/components/ui/sheet/SheetClose.vue +15 -15
- package/dist/admin/components/ui/sheet/SheetContent.vue +63 -63
- package/dist/admin/components/ui/sheet/SheetDescription.vue +21 -21
- package/dist/admin/components/ui/sheet/SheetFooter.vue +16 -16
- package/dist/admin/components/ui/sheet/SheetHeader.vue +15 -15
- package/dist/admin/components/ui/sheet/SheetOverlay.vue +21 -21
- package/dist/admin/components/ui/sheet/SheetTitle.vue +21 -21
- package/dist/admin/components/ui/sheet/SheetTrigger.vue +15 -15
- package/dist/admin/components/ui/sheet/index.js +1 -1
- package/dist/admin/components/ui/sonner/Toaster.vue +117 -117
- package/dist/admin/components/ui/sonner/index.js +1 -1
- package/dist/admin/components/ui/table/Table.vue +16 -16
- package/dist/admin/components/ui/table/TableBody.vue +17 -17
- package/dist/admin/components/ui/table/TableCaption.vue +17 -17
- package/dist/admin/components/ui/table/TableCell.vue +22 -22
- package/dist/admin/components/ui/table/TableEmpty.vue +34 -34
- package/dist/admin/components/ui/table/TableFooter.vue +17 -17
- package/dist/admin/components/ui/table/TableHead.vue +17 -17
- package/dist/admin/components/ui/table/TableHeader.vue +17 -17
- package/dist/admin/components/ui/table/TableRow.vue +17 -17
- package/dist/admin/components/ui/table/index.js +1 -1
- package/dist/admin/components/ui/tabs/Tabs.vue +24 -24
- package/dist/admin/components/ui/tabs/TabsContent.vue +21 -21
- package/dist/admin/components/ui/tabs/TabsList.vue +24 -24
- package/dist/admin/components/ui/tabs/TabsTrigger.vue +26 -26
- package/dist/admin/components/ui/tabs/index.js +1 -1
- package/dist/admin/components/ui/tooltip/Tooltip.vue +19 -19
- package/dist/admin/components/ui/tooltip/TooltipContent.vue +34 -34
- package/dist/admin/components/ui/tooltip/TooltipProvider.vue +14 -14
- package/dist/admin/components/ui/tooltip/TooltipTrigger.vue +15 -15
- package/dist/admin/components/ui/tooltip/index.js +1 -1
- package/dist/admin/components/vm-action-btn.vue +136 -136
- package/dist/admin/components/vm-aside-list-item.vue +136 -136
- package/dist/admin/components/vm-aside.vue +229 -229
- package/dist/admin/components/vm-auto-perm-dialog.vue +371 -371
- package/dist/admin/components/vm-card-grid.vue +37 -37
- package/dist/admin/components/vm-card-head.vue +45 -45
- package/dist/admin/components/vm-card-meta.vue +22 -22
- package/dist/admin/components/vm-card-title.vue +56 -56
- package/dist/admin/components/vm-card.vue +176 -176
- package/dist/admin/components/vm-check-tree.vue +340 -340
- package/dist/admin/components/vm-clamp-text.vue +39 -39
- package/dist/admin/components/vm-dept-tree.vue +497 -497
- package/dist/admin/components/vm-empty.vue +68 -68
- package/dist/admin/components/vm-eps-perm-picker.vue +123 -123
- package/dist/admin/components/vm-form-dialog.vue +632 -632
- package/dist/admin/components/vm-group-cascader.vue +560 -560
- package/dist/admin/components/vm-icon-btn.vue +88 -88
- package/dist/admin/components/vm-icon-picker.vue +647 -647
- package/dist/admin/components/vm-inline-search.vue +61 -61
- package/dist/admin/components/vm-loading.vue +114 -114
- package/dist/admin/components/vm-markdown.vue +405 -405
- package/dist/admin/components/vm-marquee.vue +265 -265
- package/dist/admin/components/vm-page-tabs.vue +94 -94
- package/dist/admin/components/vm-perm-section.vue +57 -57
- package/dist/admin/components/vm-ri-icon.vue +23 -23
- package/dist/admin/components/vm-role-picker.vue +314 -314
- package/dist/admin/components/vm-split-layout.vue +106 -106
- package/dist/admin/components/vm-thumb.vue +49 -49
- package/dist/admin/components/vm-view-path-picker.vue +59 -59
- package/dist/admin/crud/auto-fields.js +1 -1
- package/dist/admin/crud/components/vm-avatar.vue +104 -104
- package/dist/admin/crud/components/vm-color-picker.vue +1626 -1626
- package/dist/admin/crud/components/vm-column-custom.vue +193 -193
- package/dist/admin/crud/components/vm-context-menu.vue +105 -105
- package/dist/admin/crud/components/vm-copy-btn.vue +102 -102
- package/dist/admin/crud/components/vm-date-calendar-panel.vue +537 -537
- package/dist/admin/crud/components/vm-date-picker.vue +75 -75
- package/dist/admin/crud/components/vm-date-range.vue +88 -88
- package/dist/admin/crud/components/vm-date-text.vue +42 -42
- package/dist/admin/crud/components/vm-datetime-field.vue +215 -215
- package/dist/admin/crud/components/vm-datetime-picker.vue +9 -9
- package/dist/admin/crud/components/vm-dict-tag.vue +112 -112
- package/dist/admin/crud/components/vm-ellipsis-text.vue +34 -34
- package/dist/admin/crud/components/vm-form-hint.vue +81 -81
- package/dist/admin/crud/components/vm-json-code.vue +41 -41
- package/dist/admin/crud/components/vm-json-editor.vue +161 -161
- package/dist/admin/crud/components/vm-json-kv-editor.vue +318 -318
- package/dist/admin/crud/components/vm-kv-row.vue +51 -51
- package/dist/admin/crud/components/vm-multi-select.vue +279 -279
- package/dist/admin/crud/components/vm-number-range.vue +204 -204
- package/dist/admin/crud/components/vm-preview-viewer.vue +894 -894
- package/dist/admin/crud/components/vm-radio.vue +87 -87
- package/dist/admin/crud/components/vm-richtext.vue +313 -313
- package/dist/admin/crud/components/vm-select.vue +570 -570
- package/dist/admin/crud/components/vm-status-tag.vue +158 -158
- package/dist/admin/crud/components/vm-switch.vue +158 -158
- package/dist/admin/crud/components/vm-tag-list.vue +108 -108
- package/dist/admin/crud/components/vm-text-link.vue +52 -52
- package/dist/admin/crud/components/vm-toggle-switch.vue +84 -84
- package/dist/admin/crud/components/vm-tree-select.vue +450 -450
- package/dist/admin/crud/components/vm-upload-item.vue +298 -298
- package/dist/admin/crud/components/vm-upload.vue +436 -436
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/crud-page-request.js +1 -1
- package/dist/admin/crud/data-i18n.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/export-fetch.js +1 -1
- package/dist/admin/crud/index.js +1 -0
- package/dist/admin/crud/key.js +1 -1
- package/dist/admin/crud/plugins.js +1 -1
- package/dist/admin/crud/span.js +1 -1
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/useCrud.js +3 -0
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/crud/vm-add-btn.vue +70 -70
- package/dist/admin/crud/vm-adv-search.vue +83 -83
- package/dist/admin/crud/vm-crud.vue +711 -711
- package/dist/admin/crud/vm-data-i18n-btn.vue +456 -456
- package/dist/admin/crud/vm-data-i18n-lang.vue +183 -183
- package/dist/admin/crud/vm-export-btn.vue +183 -183
- package/dist/admin/crud/vm-flex.vue +14 -14
- package/dist/admin/crud/vm-form.vue +33 -15
- package/dist/admin/crud/vm-import-btn.vue +747 -747
- package/dist/admin/crud/vm-multi-delete-btn.vue +49 -49
- package/dist/admin/crud/vm-pagination.vue +212 -212
- package/dist/admin/crud/vm-refresh-btn.vue +35 -35
- package/dist/admin/crud/vm-row.vue +55 -55
- package/dist/admin/crud/vm-search-key.vue +78 -78
- package/dist/admin/crud/vm-search.vue +466 -466
- package/dist/admin/crud/vm-table.vue +1390 -1390
- package/dist/admin/crud/vm-tabs.vue +94 -94
- package/dist/admin/crud/vm-toolbar.vue +357 -357
- package/dist/admin/crud/vm-upsert.vue +765 -765
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/env.d.ts +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/index.d.ts +1 -31
- package/dist/admin/lib/browser.js +1 -1
- package/dist/admin/lib/cn.js +1 -1
- package/dist/admin/lib/dialog-float.js +1 -1
- package/dist/admin/lib/export-excel.js +1 -1
- package/dist/admin/lib/import-excel.js +1 -1
- package/dist/admin/lib/json.js +1 -1
- package/dist/admin/lib/menu.js +1 -1
- package/dist/admin/lib/micro-locale.js +1 -1
- package/dist/admin/lib/micro-theme.js +1 -1
- package/dist/admin/lib/shell.js +1 -1
- package/dist/admin/lib/theme-color-options.js +1 -1
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.js +1 -1
- package/dist/admin/lib/video-frame.js +1 -1
- package/dist/admin/router/create.js +1 -1
- package/dist/admin/router/guards.js +1 -1
- package/dist/admin/router/index.d.ts +1 -5
- package/dist/admin/service/index.d.ts +1 -11
- package/dist/admin/styles/base.css +121 -121
- package/dist/admin/vendor/browser-image-compression.js +1144 -1144
- package/dist/admin/vendor/decimal-js.js +12 -12
- package/dist/admin/vendor/xlsx.js +263 -263
- package/dist/ai/index.js +1 -1
- package/dist/client/admin-vendor.d.ts +1 -13
- package/dist/client/ai-model-registry.js +1 -1
- package/dist/client/base.js +1 -1
- package/dist/client/configure.js +1 -1
- package/dist/client/dict.js +1 -1
- package/dist/client/eps-payload.js +1 -1
- package/dist/client/eps.js +1 -1
- package/dist/client/index.d.ts +1 -7
- package/dist/client/index.js +1 -1
- package/dist/client/locale-change.js +1 -1
- package/dist/client/locale-store.js +1 -1
- package/dist/client/service.js +1 -1
- package/dist/client/vite-admin.d.ts +1 -40
- package/dist/client/vite-admin.js +1 -1
- package/dist/client/vite-auto-import.d.ts +1 -2
- package/dist/client/vite-auto-import.js +1 -1
- package/dist/client/vite-micro-proxy.d.ts +1 -20
- package/dist/client/vite-micro-proxy.js +1 -1
- package/dist/client/vite-plugin-eps.d.ts +1 -20
- package/dist/client/vite-plugin-eps.js +1 -1
- package/dist/client/vite-resolve.d.ts +1 -16
- package/dist/client/vite-resolve.js +1 -1
- package/dist/config/index.js +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/ioc/index.d.ts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/shared/datetime-picker.js +1 -1
- package/dist/shared/decimal.js +1 -1
- package/dist/shared/excel.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/locale-json.js +1 -1
- package/dist/shared/tree.js +1 -1
- package/package.json +1 -1
- package/typings/admin/base/auth.ts +24 -24
- package/typings/admin/base/permission.ts +19 -19
- package/typings/admin/comm/cascader.ts +7 -7
- package/typings/admin/comm/check-tree.ts +7 -7
- package/typings/admin/comm/crud.ts +427 -427
- package/typings/admin/comm/eps.ts +86 -86
- package/typings/admin/comm/request.ts +16 -16
- package/typings/admin/comm/service.ts +43 -43
- package/typings/admin/comm/upload.ts +39 -39
- package/typings/admin/theme.ts +10 -10
- package/typings/admin/vome/browser.ts +11 -11
- package/typings/admin/vome/module.ts +13 -13
- package/typings/admin/vome/tags.ts +9 -9
- package/typings/comm/crud.ts +83 -83
- package/typings/comm/page.ts +18 -18
- package/typings/comm/scan.ts +6 -6
- package/typings/common.ts +4 -4
- package/typings/context/data.ts +10 -10
- package/typings/ext/market-seat.ts +42 -42
- package/typings/ext/market.ts +55 -55
- package/typings/ext/module.ts +64 -64
- package/typings/ext/plugin.ts +38 -38
- package/typings/ioc/metadata.ts +34 -34
- package/typings/logger/config.ts +6 -6
- package/typings/routing/crud.ts +199 -199
- package/typings/routing/eps.ts +88 -88
- package/typings/routing/meta.ts +63 -63
- package/typings/routing/register.ts +21 -21
- package/typings/routing/scan-context.ts +7 -7
- package/dist/admin/api/client.d.ts +0 -50
- package/dist/admin/components/ui/avatar/index.d.ts +0 -3
- package/dist/admin/components/ui/badge/index.d.ts +0 -6
- package/dist/admin/components/ui/button/index.d.ts +0 -7
- package/dist/admin/components/ui/checkbox/index.d.ts +0 -1
- package/dist/admin/components/ui/dialog/index.d.ts +0 -10
- package/dist/admin/components/ui/dropdown-menu/index.d.ts +0 -15
- package/dist/admin/components/ui/input/index.d.ts +0 -1
- package/dist/admin/components/ui/label/index.d.ts +0 -1
- package/dist/admin/components/ui/scroll-area/index.d.ts +0 -2
- package/dist/admin/components/ui/select/index.d.ts +0 -11
- package/dist/admin/components/ui/separator/index.d.ts +0 -1
- package/dist/admin/components/ui/sheet/index.d.ts +0 -8
- package/dist/admin/components/ui/sonner/index.d.ts +0 -1
- package/dist/admin/components/ui/table/index.d.ts +0 -9
- package/dist/admin/components/ui/tabs/index.d.ts +0 -4
- package/dist/admin/components/ui/tooltip/index.d.ts +0 -4
- package/dist/admin/crud/auto-fields.d.ts +0 -68
- package/dist/admin/crud/config.d.ts +0 -5
- package/dist/admin/crud/confirm.d.ts +0 -19
- package/dist/admin/crud/crud-page-request.d.ts +0 -21
- package/dist/admin/crud/data-i18n.d.ts +0 -62
- package/dist/admin/crud/dict.d.ts +0 -4
- package/dist/admin/crud/export-fetch.d.ts +0 -22
- package/dist/admin/crud/index.d.ts +0 -60
- package/dist/admin/crud/json-kv.d.ts +0 -9
- package/dist/admin/crud/key.d.ts +0 -22
- package/dist/admin/crud/paging.d.ts +0 -2
- package/dist/admin/crud/plugins.d.ts +0 -63
- package/dist/admin/crud/registry.d.ts +0 -3
- package/dist/admin/crud/span.d.ts +0 -17
- package/dist/admin/crud/style.d.ts +0 -82
- package/dist/admin/crud/useCrud.d.ts +0 -21
- package/dist/admin/crud/validate.d.ts +0 -7
- package/dist/admin/directives/perm.d.ts +0 -3
- package/dist/admin/hooks/useBrowser.d.ts +0 -6
- package/dist/admin/hooks/useUpload.d.ts +0 -8
- package/dist/admin/hooks/useVome.d.ts +0 -10
- package/dist/admin/lib/browser.d.ts +0 -3
- package/dist/admin/lib/cn.d.ts +0 -2
- package/dist/admin/lib/compress-image.d.ts +0 -12
- package/dist/admin/lib/dialog-float.d.ts +0 -8
- package/dist/admin/lib/eps.d.ts +0 -2
- package/dist/admin/lib/export-excel.d.ts +0 -9
- package/dist/admin/lib/file-preview.d.ts +0 -9
- package/dist/admin/lib/import-excel.d.ts +0 -21
- package/dist/admin/lib/json.d.ts +0 -11
- package/dist/admin/lib/menu.d.ts +0 -3
- package/dist/admin/lib/micro-locale.d.ts +0 -5
- package/dist/admin/lib/micro-theme.d.ts +0 -14
- package/dist/admin/lib/module.d.ts +0 -21
- package/dist/admin/lib/scarce-assets.d.ts +0 -5
- package/dist/admin/lib/shell.d.ts +0 -8
- package/dist/admin/lib/theme-color-options.d.ts +0 -15
- package/dist/admin/lib/tree.d.ts +0 -2
- package/dist/admin/lib/upload.d.ts +0 -17
- package/dist/admin/lib/video-frame.d.ts +0 -6
- package/dist/admin/router/create.d.ts +0 -16
- package/dist/admin/router/guards.d.ts +0 -6
- package/dist/admin/router/menu-routes.d.ts +0 -13
- package/dist/admin/stores/app.d.ts +0 -13
- package/dist/admin/stores/tags.d.ts +0 -14
- package/dist/admin/stores/user.d.ts +0 -48
- package/dist/client/ai-model-registry.d.ts +0 -16
- package/dist/client/base.d.ts +0 -28
- package/dist/client/configure.d.ts +0 -33
- package/dist/client/dict.d.ts +0 -31
- package/dist/client/eps-payload.d.ts +0 -3
- package/dist/client/eps.d.ts +0 -17
- package/dist/client/locale-change.d.ts +0 -16
- package/dist/client/locale-store.d.ts +0 -105
- package/dist/client/service.d.ts +0 -29
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import type { ToasterProps } from 'vue-sonner'
|
|
3
|
-
import { Toaster as Sonner } from 'vue-sonner'
|
|
4
|
-
import {
|
|
5
|
-
CircleCheckIcon,
|
|
6
|
-
InfoIcon,
|
|
7
|
-
Loader2Icon,
|
|
8
|
-
OctagonXIcon,
|
|
9
|
-
TriangleAlertIcon,
|
|
10
|
-
} from '@lucide/vue'
|
|
11
|
-
import { cn } from '../../../lib/cn'
|
|
12
|
-
/** 必须引入,否则定位/色底样式全丢 */
|
|
13
|
-
import 'vue-sonner/style.css'
|
|
14
|
-
|
|
15
|
-
defineOptions({ name: 'Toaster' })
|
|
16
|
-
|
|
17
|
-
const props = withDefaults(defineProps<ToasterProps>(), {
|
|
18
|
-
theme: 'system',
|
|
19
|
-
richColors: true,
|
|
20
|
-
closeButton: false,
|
|
21
|
-
position: 'top-center',
|
|
22
|
-
duration: 2500,
|
|
23
|
-
})
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<template>
|
|
27
|
-
<Sonner
|
|
28
|
-
:class="cn('toaster group vm-toaster', props.class)"
|
|
29
|
-
:style="{
|
|
30
|
-
'--normal-bg': 'var(--popover)',
|
|
31
|
-
'--normal-text': 'var(--popover-foreground)',
|
|
32
|
-
'--normal-border': 'color-mix(in srgb, var(--border) 55%, transparent)',
|
|
33
|
-
'--border-radius': 'var(--vm-control-radius)',
|
|
34
|
-
'--success-bg': 'var(--success-soft)',
|
|
35
|
-
'--success-border': 'color-mix(in srgb, var(--success) 22%, transparent)',
|
|
36
|
-
'--success-text': 'var(--success)',
|
|
37
|
-
'--error-bg': 'var(--danger-soft)',
|
|
38
|
-
'--error-border': 'color-mix(in srgb, var(--destructive) 22%, transparent)',
|
|
39
|
-
'--error-text': 'var(--destructive)',
|
|
40
|
-
'--warning-bg': 'var(--warning-soft)',
|
|
41
|
-
'--warning-border': 'color-mix(in srgb, var(--warning) 22%, transparent)',
|
|
42
|
-
'--warning-text': 'var(--warning)',
|
|
43
|
-
'--info-bg': 'var(--brand-soft)',
|
|
44
|
-
'--info-border': 'color-mix(in srgb, var(--brand) 22%, transparent)',
|
|
45
|
-
'--info-text': 'var(--brand)',
|
|
46
|
-
}"
|
|
47
|
-
v-bind="props"
|
|
48
|
-
>
|
|
49
|
-
<template #success-icon>
|
|
50
|
-
<CircleCheckIcon class="size-4" />
|
|
51
|
-
</template>
|
|
52
|
-
<template #info-icon>
|
|
53
|
-
<InfoIcon class="size-4" />
|
|
54
|
-
</template>
|
|
55
|
-
<template #warning-icon>
|
|
56
|
-
<TriangleAlertIcon class="size-4" />
|
|
57
|
-
</template>
|
|
58
|
-
<template #error-icon>
|
|
59
|
-
<OctagonXIcon class="size-4" />
|
|
60
|
-
</template>
|
|
61
|
-
<template #loading-icon>
|
|
62
|
-
<div>
|
|
63
|
-
<Loader2Icon class="size-4 animate-spin" />
|
|
64
|
-
</div>
|
|
65
|
-
</template>
|
|
66
|
-
</Sonner>
|
|
67
|
-
</template>
|
|
68
|
-
|
|
69
|
-
<style lang="scss">
|
|
70
|
-
/* 跟消息自适应宽度;圆角与按钮一致;淡描边;图标与文案间距收紧
|
|
71
|
-
* sonner 内联 --width:356px,必须用 !important 覆盖 */
|
|
72
|
-
.vm-toaster[data-sonner-toaster] {
|
|
73
|
-
--toast-icon-margin-end: 0px;
|
|
74
|
-
--toast-svg-margin-end: 0px;
|
|
75
|
-
width: max-content !important;
|
|
76
|
-
max-width: min(400px, 100vw - 32px) !important;
|
|
77
|
-
|
|
78
|
-
/* 中上方:略低于贴顶默认值 */
|
|
79
|
-
&[data-y-position='top'] {
|
|
80
|
-
top: min(120px, 18vh) !important;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
[data-sonner-toast] {
|
|
84
|
-
width: max-content !important;
|
|
85
|
-
max-width: min(400px, 100vw - 32px) !important;
|
|
86
|
-
min-width: 0;
|
|
87
|
-
min-height: 40px;
|
|
88
|
-
height: auto !important;
|
|
89
|
-
padding: 10px 14px;
|
|
90
|
-
gap: 6px;
|
|
91
|
-
font-size: 14px;
|
|
92
|
-
font-weight: 500;
|
|
93
|
-
border-width: 1px;
|
|
94
|
-
border-style: solid;
|
|
95
|
-
border-radius: var(--vm-control-radius) !important;
|
|
96
|
-
box-shadow: var(--shadow-soft, 0 4px 12px rgb(0 0 0 / 8%));
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
[data-content] {
|
|
100
|
-
max-width: 100%;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
[data-title],
|
|
104
|
-
[data-description] {
|
|
105
|
-
white-space: normal;
|
|
106
|
-
word-break: break-word;
|
|
107
|
-
overflow-wrap: anywhere;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
[data-icon] {
|
|
111
|
-
width: 1.125rem;
|
|
112
|
-
height: 1.125rem;
|
|
113
|
-
margin: 0 !important;
|
|
114
|
-
flex-shrink: 0;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
</style>
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { ToasterProps } from 'vue-sonner'
|
|
3
|
+
import { Toaster as Sonner } from 'vue-sonner'
|
|
4
|
+
import {
|
|
5
|
+
CircleCheckIcon,
|
|
6
|
+
InfoIcon,
|
|
7
|
+
Loader2Icon,
|
|
8
|
+
OctagonXIcon,
|
|
9
|
+
TriangleAlertIcon,
|
|
10
|
+
} from '@lucide/vue'
|
|
11
|
+
import { cn } from '../../../lib/cn'
|
|
12
|
+
/** 必须引入,否则定位/色底样式全丢 */
|
|
13
|
+
import 'vue-sonner/style.css'
|
|
14
|
+
|
|
15
|
+
defineOptions({ name: 'Toaster' })
|
|
16
|
+
|
|
17
|
+
const props = withDefaults(defineProps<ToasterProps>(), {
|
|
18
|
+
theme: 'system',
|
|
19
|
+
richColors: true,
|
|
20
|
+
closeButton: false,
|
|
21
|
+
position: 'top-center',
|
|
22
|
+
duration: 2500,
|
|
23
|
+
})
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
<Sonner
|
|
28
|
+
:class="cn('toaster group vm-toaster', props.class)"
|
|
29
|
+
:style="{
|
|
30
|
+
'--normal-bg': 'var(--popover)',
|
|
31
|
+
'--normal-text': 'var(--popover-foreground)',
|
|
32
|
+
'--normal-border': 'color-mix(in srgb, var(--border) 55%, transparent)',
|
|
33
|
+
'--border-radius': 'var(--vm-control-radius)',
|
|
34
|
+
'--success-bg': 'var(--success-soft)',
|
|
35
|
+
'--success-border': 'color-mix(in srgb, var(--success) 22%, transparent)',
|
|
36
|
+
'--success-text': 'var(--success)',
|
|
37
|
+
'--error-bg': 'var(--danger-soft)',
|
|
38
|
+
'--error-border': 'color-mix(in srgb, var(--destructive) 22%, transparent)',
|
|
39
|
+
'--error-text': 'var(--destructive)',
|
|
40
|
+
'--warning-bg': 'var(--warning-soft)',
|
|
41
|
+
'--warning-border': 'color-mix(in srgb, var(--warning) 22%, transparent)',
|
|
42
|
+
'--warning-text': 'var(--warning)',
|
|
43
|
+
'--info-bg': 'var(--brand-soft)',
|
|
44
|
+
'--info-border': 'color-mix(in srgb, var(--brand) 22%, transparent)',
|
|
45
|
+
'--info-text': 'var(--brand)',
|
|
46
|
+
}"
|
|
47
|
+
v-bind="props"
|
|
48
|
+
>
|
|
49
|
+
<template #success-icon>
|
|
50
|
+
<CircleCheckIcon class="size-4" />
|
|
51
|
+
</template>
|
|
52
|
+
<template #info-icon>
|
|
53
|
+
<InfoIcon class="size-4" />
|
|
54
|
+
</template>
|
|
55
|
+
<template #warning-icon>
|
|
56
|
+
<TriangleAlertIcon class="size-4" />
|
|
57
|
+
</template>
|
|
58
|
+
<template #error-icon>
|
|
59
|
+
<OctagonXIcon class="size-4" />
|
|
60
|
+
</template>
|
|
61
|
+
<template #loading-icon>
|
|
62
|
+
<div>
|
|
63
|
+
<Loader2Icon class="size-4 animate-spin" />
|
|
64
|
+
</div>
|
|
65
|
+
</template>
|
|
66
|
+
</Sonner>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<style lang="scss">
|
|
70
|
+
/* 跟消息自适应宽度;圆角与按钮一致;淡描边;图标与文案间距收紧
|
|
71
|
+
* sonner 内联 --width:356px,必须用 !important 覆盖 */
|
|
72
|
+
.vm-toaster[data-sonner-toaster] {
|
|
73
|
+
--toast-icon-margin-end: 0px;
|
|
74
|
+
--toast-svg-margin-end: 0px;
|
|
75
|
+
width: max-content !important;
|
|
76
|
+
max-width: min(400px, 100vw - 32px) !important;
|
|
77
|
+
|
|
78
|
+
/* 中上方:略低于贴顶默认值 */
|
|
79
|
+
&[data-y-position='top'] {
|
|
80
|
+
top: min(120px, 18vh) !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[data-sonner-toast] {
|
|
84
|
+
width: max-content !important;
|
|
85
|
+
max-width: min(400px, 100vw - 32px) !important;
|
|
86
|
+
min-width: 0;
|
|
87
|
+
min-height: 40px;
|
|
88
|
+
height: auto !important;
|
|
89
|
+
padding: 10px 14px;
|
|
90
|
+
gap: 6px;
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
font-weight: 500;
|
|
93
|
+
border-width: 1px;
|
|
94
|
+
border-style: solid;
|
|
95
|
+
border-radius: var(--vm-control-radius) !important;
|
|
96
|
+
box-shadow: var(--shadow-soft, 0 4px 12px rgb(0 0 0 / 8%));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-content] {
|
|
100
|
+
max-width: 100%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[data-title],
|
|
104
|
+
[data-description] {
|
|
105
|
+
white-space: normal;
|
|
106
|
+
word-break: break-word;
|
|
107
|
+
overflow-wrap: anywhere;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[data-icon] {
|
|
111
|
+
width: 1.125rem;
|
|
112
|
+
height: 1.125rem;
|
|
113
|
+
margin: 0 !important;
|
|
114
|
+
flex-shrink: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5521(_0x545a6e,_0x41e6d8){_0x545a6e=_0x545a6e-0x1b3;var _0x481204=_0x4812();var _0x5521be=_0x481204[_0x545a6e];if(_0x5521['RPRhCI']===undefined){var _0x1853e6=function(_0x4f21a9){var _0x333b63='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x578599='',_0x13f8fc='';for(var _0x1f5442=0x0,_0x32be7a,_0x1f2ac6,_0x321e0f=0x0;_0x1f2ac6=_0x4f21a9['charAt'](_0x321e0f++);~_0x1f2ac6&&(_0x32be7a=_0x1f5442%0x4?_0x32be7a*0x40+_0x1f2ac6:_0x1f2ac6,_0x1f5442++%0x4)?_0x578599+=String['fromCharCode'](0xff&_0x32be7a>>(-0x2*_0x1f5442&0x6)):0x0){_0x1f2ac6=_0x333b63['indexOf'](_0x1f2ac6);}for(var _0xa831e4=0x0,_0x24a0fa=_0x578599['length'];_0xa831e4<_0x24a0fa;_0xa831e4++){_0x13f8fc+='%'+('00'+_0x578599['charCodeAt'](_0xa831e4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x13f8fc);};_0x5521['GLvaFD']=_0x1853e6,_0x5521['SzZBhj']={},_0x5521['RPRhCI']=!![];}var _0x7fba49=_0x481204[0x0],_0x48ab09=_0x545a6e+_0x7fba49,_0x12af39=_0x5521['SzZBhj'][_0x48ab09];return!_0x12af39?(_0x5521be=_0x5521['GLvaFD'](_0x5521be),_0x5521['SzZBhj'][_0x48ab09]=_0x5521be):_0x5521be=_0x12af39,_0x5521be;}function _0x4812(){var _0x482c85=['ndC0nZi4q3z4Ag1x','n1ftwNvfCW','mti5otu3mZLYsgHHvvG','nduXmdu0mZbsAwDNAuG','mta3nJuXn3LkDu5Pyq','ofvkz25ouq','nty2mdu4CM5Ky0D3','mtjWyunrtK4','mZiWodu1nuX4rgvorq','mZe3nZa4CMrOBvPl'];_0x4812=function(){return _0x482c85;};return _0x4812();}(function(_0x536a54,_0x2542ef){var _0x5b6ea3=_0x5521,_0x301495=_0x536a54();while(!![]){try{var _0x120f39=-parseInt(_0x5b6ea3(0x1bb))/0x1+parseInt(_0x5b6ea3(0x1b6))/0x2*(-parseInt(_0x5b6ea3(0x1b4))/0x3)+parseInt(_0x5b6ea3(0x1b7))/0x4+-parseInt(_0x5b6ea3(0x1b5))/0x5+-parseInt(_0x5b6ea3(0x1b3))/0x6*(-parseInt(_0x5b6ea3(0x1b8))/0x7)+parseInt(_0x5b6ea3(0x1bc))/0x8*(-parseInt(_0x5b6ea3(0x1b9))/0x9)+parseInt(_0x5b6ea3(0x1ba))/0xa;if(_0x120f39===_0x2542ef)break;else _0x301495['push'](_0x301495['shift']());}catch(_0x9c3d72){_0x301495['push'](_0x301495['shift']());}}}(_0x4812,0xe2101));export{default as Toaster}from'./Toaster.vue';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "../../../lib/cn"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
7
|
-
}>()
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<div data-slot="table-container" class="relative w-full overflow-auto">
|
|
12
|
-
<table data-slot="table" :class="cn('w-full caption-bottom text-sm', props.class)">
|
|
13
|
-
<slot />
|
|
14
|
-
</table>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "../../../lib/cn"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div data-slot="table-container" class="relative w-full overflow-auto">
|
|
12
|
+
<table data-slot="table" :class="cn('w-full caption-bottom text-sm', props.class)">
|
|
13
|
+
<slot />
|
|
14
|
+
</table>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "../../../lib/cn"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
7
|
-
}>()
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<tbody
|
|
12
|
-
data-slot="table-body"
|
|
13
|
-
:class="cn('[&_tr:last-child]:border-0', props.class)"
|
|
14
|
-
>
|
|
15
|
-
<slot />
|
|
16
|
-
</tbody>
|
|
17
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "../../../lib/cn"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<tbody
|
|
12
|
+
data-slot="table-body"
|
|
13
|
+
:class="cn('[&_tr:last-child]:border-0', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</tbody>
|
|
17
|
+
</template>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "../../../lib/cn"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
7
|
-
}>()
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<caption
|
|
12
|
-
data-slot="table-caption"
|
|
13
|
-
:class="cn('text-muted-foreground mt-4 text-sm', props.class)"
|
|
14
|
-
>
|
|
15
|
-
<slot />
|
|
16
|
-
</caption>
|
|
17
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "../../../lib/cn"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<caption
|
|
12
|
+
data-slot="table-caption"
|
|
13
|
+
:class="cn('text-muted-foreground mt-4 text-sm', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</caption>
|
|
17
|
+
</template>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "../../../lib/cn"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
7
|
-
}>()
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<td
|
|
12
|
-
data-slot="table-cell"
|
|
13
|
-
:class="
|
|
14
|
-
cn(
|
|
15
|
-
'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5',
|
|
16
|
-
props.class,
|
|
17
|
-
)
|
|
18
|
-
"
|
|
19
|
-
>
|
|
20
|
-
<slot />
|
|
21
|
-
</td>
|
|
22
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "../../../lib/cn"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<td
|
|
12
|
+
data-slot="table-cell"
|
|
13
|
+
:class="
|
|
14
|
+
cn(
|
|
15
|
+
'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5',
|
|
16
|
+
props.class,
|
|
17
|
+
)
|
|
18
|
+
"
|
|
19
|
+
>
|
|
20
|
+
<slot />
|
|
21
|
+
</td>
|
|
22
|
+
</template>
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
4
|
-
import { cn } from "../../../lib/cn"
|
|
5
|
-
import TableCell from "./TableCell.vue"
|
|
6
|
-
import TableRow from "./TableRow.vue"
|
|
7
|
-
|
|
8
|
-
const props = withDefaults(defineProps<{
|
|
9
|
-
class?: HTMLAttributes["class"]
|
|
10
|
-
colspan?: number
|
|
11
|
-
}>(), {
|
|
12
|
-
colspan: 1,
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<template>
|
|
19
|
-
<TableRow class="hover:bg-transparent">
|
|
20
|
-
<TableCell
|
|
21
|
-
:class="
|
|
22
|
-
cn(
|
|
23
|
-
'p-4 whitespace-nowrap align-middle text-sm text-foreground',
|
|
24
|
-
props.class,
|
|
25
|
-
)
|
|
26
|
-
"
|
|
27
|
-
v-bind="delegatedProps"
|
|
28
|
-
>
|
|
29
|
-
<div class="flex items-center justify-center py-10">
|
|
30
|
-
<slot />
|
|
31
|
-
</div>
|
|
32
|
-
</TableCell>
|
|
33
|
-
</TableRow>
|
|
34
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
4
|
+
import { cn } from "../../../lib/cn"
|
|
5
|
+
import TableCell from "./TableCell.vue"
|
|
6
|
+
import TableRow from "./TableRow.vue"
|
|
7
|
+
|
|
8
|
+
const props = withDefaults(defineProps<{
|
|
9
|
+
class?: HTMLAttributes["class"]
|
|
10
|
+
colspan?: number
|
|
11
|
+
}>(), {
|
|
12
|
+
colspan: 1,
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<TableRow class="hover:bg-transparent">
|
|
20
|
+
<TableCell
|
|
21
|
+
:class="
|
|
22
|
+
cn(
|
|
23
|
+
'p-4 whitespace-nowrap align-middle text-sm text-foreground',
|
|
24
|
+
props.class,
|
|
25
|
+
)
|
|
26
|
+
"
|
|
27
|
+
v-bind="delegatedProps"
|
|
28
|
+
>
|
|
29
|
+
<div class="flex items-center justify-center py-10">
|
|
30
|
+
<slot />
|
|
31
|
+
</div>
|
|
32
|
+
</TableCell>
|
|
33
|
+
</TableRow>
|
|
34
|
+
</template>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "../../../lib/cn"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
7
|
-
}>()
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<tfoot
|
|
12
|
-
data-slot="table-footer"
|
|
13
|
-
:class="cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', props.class)"
|
|
14
|
-
>
|
|
15
|
-
<slot />
|
|
16
|
-
</tfoot>
|
|
17
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "../../../lib/cn"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<tfoot
|
|
12
|
+
data-slot="table-footer"
|
|
13
|
+
:class="cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</tfoot>
|
|
17
|
+
</template>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "../../../lib/cn"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
7
|
-
}>()
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<th
|
|
12
|
-
data-slot="table-head"
|
|
13
|
-
:class="cn('text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5', props.class)"
|
|
14
|
-
>
|
|
15
|
-
<slot />
|
|
16
|
-
</th>
|
|
17
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "../../../lib/cn"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<th
|
|
12
|
+
data-slot="table-head"
|
|
13
|
+
:class="cn('text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</th>
|
|
17
|
+
</template>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "../../../lib/cn"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
7
|
-
}>()
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<thead
|
|
12
|
-
data-slot="table-header"
|
|
13
|
-
:class="cn('[&_tr]:border-b', props.class)"
|
|
14
|
-
>
|
|
15
|
-
<slot />
|
|
16
|
-
</thead>
|
|
17
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "../../../lib/cn"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<thead
|
|
12
|
+
data-slot="table-header"
|
|
13
|
+
:class="cn('[&_tr]:border-b', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</thead>
|
|
17
|
+
</template>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "../../../lib/cn"
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
7
|
-
}>()
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<tr
|
|
12
|
-
data-slot="table-row"
|
|
13
|
-
:class="cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors', props.class)"
|
|
14
|
-
>
|
|
15
|
-
<slot />
|
|
16
|
-
</tr>
|
|
17
|
-
</template>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "../../../lib/cn"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<tr
|
|
12
|
+
data-slot="table-row"
|
|
13
|
+
:class="cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</tr>
|
|
17
|
+
</template>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e650d,_0x3ce2b5){var _0x33bb71=_0x39ff,_0x42fa2c=_0x4e650d();while(!![]){try{var _0xcf6336=-parseInt(_0x33bb71(0x128))/0x1+parseInt(_0x33bb71(0x127))/0x2+-parseInt(_0x33bb71(0x12d))/0x3*(-parseInt(_0x33bb71(0x12a))/0x4)+-parseInt(_0x33bb71(0x12e))/0x5+-parseInt(_0x33bb71(0x124))/0x6*(parseInt(_0x33bb71(0x12c))/0x7)+-parseInt(_0x33bb71(0x126))/0x8*(-parseInt(_0x33bb71(0x125))/0x9)+parseInt(_0x33bb71(0x12b))/0xa*(parseInt(_0x33bb71(0x129))/0xb);if(_0xcf6336===_0x3ce2b5)break;else _0x42fa2c['push'](_0x42fa2c['shift']());}catch(_0x4a3d75){_0x42fa2c['push'](_0x42fa2c['shift']());}}}(_0x2baa,0x62180));export{default as Table}from'./Table.vue';function _0x2baa(){var _0x11bdef=['mte4nZLOCLLssvG','nJy5EMXouffg','mteZnJKWmhLJr3vUDG','mta2oePPqLfsDG','ndi0odbbEgX3A2C','mtyWu0jztejm','nty1mJm4B3LRzhHt','nJG5odrsyK95uKO','mtq5mdvSAxf0weG','mZy0ngH3tLPXuq','mZeWmgTJz21muq'];_0x2baa=function(){return _0x11bdef;};return _0x2baa();}export{default as TableBody}from'./TableBody.vue';export{default as TableCaption}from'./TableCaption.vue';export{default as TableCell}from'./TableCell.vue';export{default as TableEmpty}from'./TableEmpty.vue';export{default as TableFooter}from'./TableFooter.vue';function _0x39ff(_0x45914d,_0x2f9b0a){_0x45914d=_0x45914d-0x124;var _0x2baac3=_0x2baa();var _0x39ff7b=_0x2baac3[_0x45914d];if(_0x39ff['SiQzxh']===undefined){var _0x1a986a=function(_0xa3b557){var _0x255dc3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1ffc44='',_0x2b986e='';for(var _0x407503=0x0,_0x3bbdfa,_0x223288,_0x1dc41b=0x0;_0x223288=_0xa3b557['charAt'](_0x1dc41b++);~_0x223288&&(_0x3bbdfa=_0x407503%0x4?_0x3bbdfa*0x40+_0x223288:_0x223288,_0x407503++%0x4)?_0x1ffc44+=String['fromCharCode'](0xff&_0x3bbdfa>>(-0x2*_0x407503&0x6)):0x0){_0x223288=_0x255dc3['indexOf'](_0x223288);}for(var _0x354a1c=0x0,_0x255b9c=_0x1ffc44['length'];_0x354a1c<_0x255b9c;_0x354a1c++){_0x2b986e+='%'+('00'+_0x1ffc44['charCodeAt'](_0x354a1c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2b986e);};_0x39ff['nZVgmy']=_0x1a986a,_0x39ff['VociXA']={},_0x39ff['SiQzxh']=!![];}var _0x4415d9=_0x2baac3[0x0],_0x19e7f8=_0x45914d+_0x4415d9,_0xa9aa81=_0x39ff['VociXA'][_0x19e7f8];return!_0xa9aa81?(_0x39ff7b=_0x39ff['nZVgmy'](_0x39ff7b),_0x39ff['VociXA'][_0x19e7f8]=_0x39ff7b):_0x39ff7b=_0xa9aa81,_0x39ff7b;}export{default as TableHead}from'./TableHead.vue';export{default as TableHeader}from'./TableHeader.vue';export{default as TableRow}from'./TableRow.vue';
|