vome-core 0.1.78 → 0.1.79
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/components/ui/avatar/Avatar.vue +1 -1
- package/dist/admin/components/ui/avatar/AvatarFallback.vue +1 -1
- package/dist/admin/components/ui/avatar/index.js +1 -1
- package/dist/admin/components/ui/badge/Badge.vue +1 -1
- package/dist/admin/components/ui/badge/index.d.ts +1 -1
- package/dist/admin/components/ui/badge/index.js +1 -1
- package/dist/admin/components/ui/button/Button.vue +1 -1
- package/dist/admin/components/ui/button/index.d.ts +1 -1
- package/dist/admin/components/ui/button/index.js +1 -1
- package/dist/admin/components/ui/checkbox/Checkbox.vue +1 -1
- package/dist/admin/components/ui/checkbox/index.js +1 -1
- package/dist/admin/components/ui/dialog/DialogContent.vue +1 -1
- package/dist/admin/components/ui/dialog/DialogDescription.vue +1 -1
- package/dist/admin/components/ui/dialog/DialogFooter.vue +1 -1
- package/dist/admin/components/ui/dialog/DialogHeader.vue +1 -1
- package/dist/admin/components/ui/dialog/DialogOverlay.vue +1 -1
- package/dist/admin/components/ui/dialog/DialogScrollContent.vue +1 -1
- package/dist/admin/components/ui/dialog/DialogTitle.vue +1 -1
- package/dist/admin/components/ui/dialog/index.js +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuContent.vue +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuItem.vue +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuLabel.vue +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSeparator.vue +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuShortcut.vue +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSubContent.vue +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
- package/dist/admin/components/ui/dropdown-menu/index.js +1 -1
- package/dist/admin/components/ui/input/Input.vue +1 -1
- package/dist/admin/components/ui/input/index.js +1 -1
- package/dist/admin/components/ui/label/Label.vue +1 -1
- package/dist/admin/components/ui/label/index.js +1 -1
- package/dist/admin/components/ui/scroll-area/ScrollArea.vue +1 -1
- package/dist/admin/components/ui/scroll-area/ScrollBar.vue +1 -1
- package/dist/admin/components/ui/scroll-area/index.js +1 -1
- package/dist/admin/components/ui/select/SelectContent.vue +2 -2
- package/dist/admin/components/ui/select/SelectItem.vue +1 -1
- package/dist/admin/components/ui/select/SelectLabel.vue +1 -1
- package/dist/admin/components/ui/select/SelectScrollDownButton.vue +1 -1
- package/dist/admin/components/ui/select/SelectScrollUpButton.vue +1 -1
- package/dist/admin/components/ui/select/SelectSeparator.vue +1 -1
- package/dist/admin/components/ui/select/SelectTrigger.vue +1 -1
- package/dist/admin/components/ui/select/index.js +1 -1
- package/dist/admin/components/ui/separator/Separator.vue +1 -1
- package/dist/admin/components/ui/separator/index.js +1 -1
- package/dist/admin/components/ui/sheet/SheetContent.vue +1 -1
- package/dist/admin/components/ui/sheet/SheetDescription.vue +1 -1
- package/dist/admin/components/ui/sheet/SheetFooter.vue +1 -1
- package/dist/admin/components/ui/sheet/SheetHeader.vue +1 -1
- package/dist/admin/components/ui/sheet/SheetOverlay.vue +1 -1
- package/dist/admin/components/ui/sheet/SheetTitle.vue +1 -1
- package/dist/admin/components/ui/sheet/index.js +1 -1
- package/dist/admin/components/ui/sonner/Toaster.vue +1 -1
- package/dist/admin/components/ui/sonner/index.js +1 -1
- package/dist/admin/components/ui/table/Table.vue +1 -1
- package/dist/admin/components/ui/table/TableBody.vue +1 -1
- package/dist/admin/components/ui/table/TableCaption.vue +1 -1
- package/dist/admin/components/ui/table/TableCell.vue +1 -1
- package/dist/admin/components/ui/table/TableEmpty.vue +1 -1
- package/dist/admin/components/ui/table/TableFooter.vue +1 -1
- package/dist/admin/components/ui/table/TableHead.vue +1 -1
- package/dist/admin/components/ui/table/TableHeader.vue +1 -1
- package/dist/admin/components/ui/table/TableRow.vue +1 -1
- package/dist/admin/components/ui/table/index.js +1 -1
- package/dist/admin/components/ui/tabs/Tabs.vue +1 -1
- package/dist/admin/components/ui/tabs/TabsContent.vue +1 -1
- package/dist/admin/components/ui/tabs/TabsList.vue +1 -1
- package/dist/admin/components/ui/tabs/TabsTrigger.vue +1 -1
- package/dist/admin/components/ui/tabs/index.js +1 -1
- package/dist/admin/components/ui/tooltip/TooltipContent.vue +1 -1
- package/dist/admin/components/ui/tooltip/index.js +1 -1
- package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
- 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/dict.js +1 -1
- package/dist/admin/crud/export-fetch.js +1 -1
- 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/validate.js +1 -1
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/index.d.ts +0 -5
- package/dist/admin/index.js +0 -20
- 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/document-title.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/setup-crud-defaults.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 +0 -1
- package/dist/admin/stores/dict.js +1 -1
- package/dist/admin/stores/locale.js +1 -1
- package/dist/admin/stores/theme.js +1 -1
- package/dist/admin/themes/dark.js +1 -1
- package/dist/admin/themes/index.js +1 -1
- package/dist/admin/themes/light.js +1 -1
- package/dist/client/configure.js +2 -2
- package/dist/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/shared/datetime-picker.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/dist/admin/components/ui/table/utils.d.ts +0 -3
- package/dist/admin/components/ui/table/utils.js +0 -1
- package/dist/comm/chinese-segments.test.d.ts +0 -1
- package/dist/comm/path.test.d.ts +0 -1
- package/typings/admin/base/auth.d.ts +0 -21
- package/typings/admin/base/permission.d.ts +0 -19
- package/typings/admin/comm/crud.d.ts +0 -343
- package/typings/admin/comm/eps.d.ts +0 -66
- package/typings/admin/comm/request.d.ts +0 -13
- package/typings/admin/comm/service.d.ts +0 -48
- package/typings/admin/comm/upload.d.ts +0 -26
- package/typings/admin/vome/browser.d.ts +0 -10
- package/typings/admin/vome/module.d.ts +0 -13
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/** 前端 EPS 类型 */
|
|
2
|
-
export type EpsApiItem = {
|
|
3
|
-
method: string;
|
|
4
|
-
path: string;
|
|
5
|
-
summary: string;
|
|
6
|
-
prefix: string;
|
|
7
|
-
ignoreToken: boolean;
|
|
8
|
-
ignorePerms: boolean;
|
|
9
|
-
perms: string[];
|
|
10
|
-
};
|
|
11
|
-
export type EpsColumn = {
|
|
12
|
-
propertyName: string;
|
|
13
|
-
type: string;
|
|
14
|
-
comment?: string;
|
|
15
|
-
nullable?: boolean;
|
|
16
|
-
dict?: string | string[];
|
|
17
|
-
/** 物理表名,供 field.{table}.{prop} */
|
|
18
|
-
table?: string;
|
|
19
|
-
source?: string;
|
|
20
|
-
};
|
|
21
|
-
export type EpsEntity = {
|
|
22
|
-
module: string;
|
|
23
|
-
side: string;
|
|
24
|
-
prefix: string;
|
|
25
|
-
/** 关联实体/表名(可选);中间列展示用 info.type.name 或 prefix 末段 */
|
|
26
|
-
name?: string;
|
|
27
|
-
info?: {
|
|
28
|
-
type: {
|
|
29
|
-
/** 控制器路径末段,对应文件名(如 dict-info) */
|
|
30
|
-
name: string;
|
|
31
|
-
description: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
api: EpsApiItem[];
|
|
35
|
-
columns: EpsColumn[];
|
|
36
|
-
pageColumns: EpsColumn[];
|
|
37
|
-
pageQueryOp?: {
|
|
38
|
-
keyWordLikeFields?: unknown[];
|
|
39
|
-
fieldEq?: unknown[];
|
|
40
|
-
fieldLike?: unknown[];
|
|
41
|
-
fieldArray?: unknown[];
|
|
42
|
-
fieldRange?: unknown[];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export type EpsModuleMap = Record<string, EpsEntity[]>;
|
|
46
|
-
/** EPS 开放接口完整载荷 */
|
|
47
|
-
export type EpsDictFlatRow = {
|
|
48
|
-
id: number;
|
|
49
|
-
name: string;
|
|
50
|
-
typeId: number;
|
|
51
|
-
parentId?: number | null;
|
|
52
|
-
orderNum?: number;
|
|
53
|
-
value?: unknown;
|
|
54
|
-
};
|
|
55
|
-
export type EpsPayload = {
|
|
56
|
-
/** 服务端 vome.eps;写入打包 eps.json,生产仅 true 时前端可再请求 */
|
|
57
|
-
eps?: boolean;
|
|
58
|
-
modules: EpsModuleMap;
|
|
59
|
-
dict: Record<string, EpsDictFlatRow[]>;
|
|
60
|
-
};
|
|
61
|
-
/** 菜单「自动添加权限」行 */
|
|
62
|
-
export type AutoPermRow = {
|
|
63
|
-
enabled: boolean;
|
|
64
|
-
name: string;
|
|
65
|
-
perm: string;
|
|
66
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type ApiResult<T> = {
|
|
2
|
-
code: number;
|
|
3
|
-
message: string;
|
|
4
|
-
data: T;
|
|
5
|
-
};
|
|
6
|
-
export type RequestOptions = RequestInit & {
|
|
7
|
-
/** 失败时是否 toast,默认 true */
|
|
8
|
-
toast?: boolean;
|
|
9
|
-
/** 跳过自动 refresh */
|
|
10
|
-
skipRefresh?: boolean;
|
|
11
|
-
/** 请求超时 ms,默认 5000;AI sync 默认 360000,stream 传 0 不掐断 */
|
|
12
|
-
timeoutMs?: number;
|
|
13
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/** 链式 service 叶子节点 */
|
|
2
|
-
export type ServiceRequestOptions = {
|
|
3
|
-
url?: string;
|
|
4
|
-
method?: string;
|
|
5
|
-
data?: unknown;
|
|
6
|
-
params?: Record<string, unknown>;
|
|
7
|
-
/** 透传 HTTP 超时;默认由 request 客户端处理(5s) */
|
|
8
|
-
timeoutMs?: number;
|
|
9
|
-
};
|
|
10
|
-
export type ServiceLeaf = {
|
|
11
|
-
namespace: string;
|
|
12
|
-
permission: Record<string, string>;
|
|
13
|
-
_permission: Record<string, boolean>;
|
|
14
|
-
request: (options?: ServiceRequestOptions) => Promise<unknown>;
|
|
15
|
-
page?: (
|
|
16
|
-
data?: Record<string, unknown>,
|
|
17
|
-
options?: Pick<ServiceRequestOptions, 'timeoutMs'>,
|
|
18
|
-
) => Promise<{
|
|
19
|
-
list: Record<string, unknown>[];
|
|
20
|
-
pagination: {
|
|
21
|
-
page: number;
|
|
22
|
-
size: number;
|
|
23
|
-
total: number;
|
|
24
|
-
};
|
|
25
|
-
}>;
|
|
26
|
-
list?: (
|
|
27
|
-
data?: Record<string, unknown>,
|
|
28
|
-
options?: Pick<ServiceRequestOptions, 'timeoutMs'>,
|
|
29
|
-
) => Promise<Record<string, unknown>[]>;
|
|
30
|
-
info?: (data: {
|
|
31
|
-
id: number | string;
|
|
32
|
-
}) => Promise<Record<string, unknown>>;
|
|
33
|
-
add?: (data: Record<string, unknown>) => Promise<unknown>;
|
|
34
|
-
update?: (data: Record<string, unknown>) => Promise<unknown>;
|
|
35
|
-
delete?: (data: {
|
|
36
|
-
ids: Array<number | string>;
|
|
37
|
-
force?: boolean;
|
|
38
|
-
}) => Promise<unknown>;
|
|
39
|
-
restore?: (data: {
|
|
40
|
-
ids: Array<number | string>;
|
|
41
|
-
}) => Promise<unknown>;
|
|
42
|
-
[method: string]: unknown;
|
|
43
|
-
};
|
|
44
|
-
/** 嵌套树:service.base.user(动态键,运行时由 EPS 填充) */
|
|
45
|
-
export type ServiceTree = {
|
|
46
|
-
request: (options?: ServiceRequestOptions) => Promise<unknown>;
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type UploadFileType = 'image' | 'video' | 'audio' | 'word' | 'excel' | 'ppt' | 'pdf' | 'rar' | 'file';
|
|
2
|
-
export type UploadRule = {
|
|
3
|
-
name: string;
|
|
4
|
-
type: UploadFileType;
|
|
5
|
-
color: string;
|
|
6
|
-
exts: string[];
|
|
7
|
-
};
|
|
8
|
-
export type UploadItem = {
|
|
9
|
-
uid: string;
|
|
10
|
-
name: string;
|
|
11
|
-
url: string;
|
|
12
|
-
preload?: string;
|
|
13
|
-
type: UploadFileType;
|
|
14
|
-
size?: number;
|
|
15
|
-
progress: number;
|
|
16
|
-
error?: string;
|
|
17
|
-
};
|
|
18
|
-
export type UploadOptions = {
|
|
19
|
-
prefixPath?: string;
|
|
20
|
-
onProgress?: (progress: number) => void;
|
|
21
|
-
};
|
|
22
|
-
export type UploadResult = {
|
|
23
|
-
url: string;
|
|
24
|
-
key?: string;
|
|
25
|
-
fileId?: string;
|
|
26
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type BrowserScreen = 'xs' | 'sm' | 'md' | 'xl' | 'full';
|
|
2
|
-
export type BrowserInfo = {
|
|
3
|
-
height: number;
|
|
4
|
-
width: number;
|
|
5
|
-
type: string;
|
|
6
|
-
/** 断点:xs <768 / sm <992 / md <1200 / xl <1920 / full */
|
|
7
|
-
screen: BrowserScreen;
|
|
8
|
-
/** 迷你布局:侧栏收起或移动端 */
|
|
9
|
-
isMini: boolean;
|
|
10
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue';
|
|
2
|
-
/** 视图异步加载器 */
|
|
3
|
-
export type ViewLoader = () => Promise<{
|
|
4
|
-
default: Component;
|
|
5
|
-
}>;
|
|
6
|
-
/** 视图路径树(菜单 viewPath 选择) */
|
|
7
|
-
export type ViewsTreeNode = {
|
|
8
|
-
label: string;
|
|
9
|
-
/** 完整 viewPath(叶子)或路径前缀(目录) */
|
|
10
|
-
value: string;
|
|
11
|
-
isLeaf?: boolean;
|
|
12
|
-
children?: ViewsTreeNode[];
|
|
13
|
-
};
|