morghulis 1.0.26 → 1.0.27

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.
Files changed (39) hide show
  1. package/dist/components/cell/MCell.vue.d.ts +11 -0
  2. package/dist/components/cell/char/CharCell.vue.d.ts +15 -0
  3. package/dist/components/cell/date/DateCell.vue.d.ts +15 -0
  4. package/dist/components/cell/refer/SelectCell.vue.d.ts +15 -0
  5. package/dist/components/cell/simple/BooleanCell.vue.d.ts +15 -0
  6. package/dist/components/cell/simple/DefaultCell.vue.d.ts +15 -0
  7. package/dist/components/cell/simple/NumberCell.vue.d.ts +18 -0
  8. package/dist/components/cell/useCellComponents.d.ts +2 -0
  9. package/dist/components/common/MCtrlBtn.vue.d.ts +30 -0
  10. package/dist/components/common/MOption.vue.d.ts +10 -0
  11. package/dist/components/dialog/MDialog.vue.d.ts +57 -0
  12. package/dist/components/dialog/MDialogHeader.vue.d.ts +9 -0
  13. package/dist/components/form/MForm.vue.d.ts +13 -0
  14. package/dist/components/table/MTable.vue.d.ts +65 -0
  15. package/dist/components/table/MTableButtons.vue.d.ts +17 -0
  16. package/dist/components/table/MTableHeader.vue.d.ts +17 -0
  17. package/dist/components/table/data/DCell.vue.d.ts +18 -0
  18. package/dist/components/table/data/DForm.vue.d.ts +16 -0
  19. package/dist/components/table/data/DTable.vue.d.ts +78 -0
  20. package/dist/components/table/data/DTableController.vue.d.ts +19 -0
  21. package/dist/components/table/data/DTablePopController.vue.d.ts +13 -0
  22. package/dist/components/table/data/useDTable.d.ts +77 -0
  23. package/dist/components/table/data/useDTableCell.d.ts +6 -0
  24. package/dist/components/table/useMTable.d.ts +25 -0
  25. package/dist/hooks/authorize.d.ts +13 -0
  26. package/dist/hooks/channel.d.ts +13 -0
  27. package/dist/hooks/cookies.d.ts +6 -0
  28. package/dist/hooks/request.d.ts +5 -0
  29. package/dist/hooks/socket.d.ts +7 -0
  30. package/dist/index.d.ts +154 -0
  31. package/dist/index.js +1252 -1250
  32. package/dist/index.umd.cjs +19 -19
  33. package/dist/tools/dao.d.ts +27 -0
  34. package/dist/tools/feedback.d.ts +4 -0
  35. package/dist/tools/query.d.ts +20 -0
  36. package/dist/types/dialog/dialog.types.d.ts +41 -0
  37. package/dist/types/table/m.table.types.d.ts +55 -0
  38. package/package.json +3 -3
  39. package/dist/types.d.ts +0 -731
@@ -0,0 +1,7 @@
1
+ import { MorghulisSockets } from '../types/tool/channel.types';
2
+ import { Ref } from 'vue';
3
+ export declare function useMorghulisSockets(): {
4
+ open: () => void;
5
+ status: Ref<string, string>;
6
+ };
7
+ export declare function loadMorghulisSockets(baseURL: string): MorghulisSockets;
@@ -0,0 +1,154 @@
1
+ import type { App } from 'vue';
2
+ import type { ElDialog, ElButton, ElText, ElDivider, ElSpace } from 'element-plus';
3
+
4
+ // 导入Vue组件实例类型
5
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, EmitsOptions } from 'vue';
6
+
7
+ // 直接在类型定义文件中定义MorDialogProps,避免相对路径引用
8
+ export interface MorDialogProps {
9
+ modelValue?: boolean,
10
+ title?: string,
11
+ subTitle?: string,
12
+ width?: string | number,
13
+ fullscreen?: boolean,
14
+ top?: string,
15
+ modal?: boolean,
16
+ modalClass?: string,
17
+ headerClass?: string,
18
+ bodyClass?: string,
19
+ footerClass?: string,
20
+ appendToBody?: boolean,
21
+ appendTo?: string,
22
+ lockScroll?: boolean,
23
+ openDelay?: number,
24
+ closeDelay?: number,
25
+ closeOnClickModal?: boolean,
26
+ closeOnPressEscape?: boolean,
27
+ showClose?: boolean,
28
+ beforeClose?: (done: () => void) => void,
29
+ draggable?: boolean,
30
+ overFlow?: boolean,
31
+ center?: boolean,
32
+ alignCenter?: boolean,
33
+ destroyOnClose?: boolean,
34
+ closeIcon?: string,
35
+ zIndex?: number,
36
+ headerAriaLevel?: string,
37
+ confirm?: (data: any, done: () => void) => void,
38
+ cancel?: (data: any, done: () => void) => void,
39
+ confirmButtonText?: string,
40
+ cancelButtonText?: string,
41
+ data?: any
42
+ }
43
+
44
+ // 定义MorDialogConfig接口
45
+ export interface MorDialogConfig {
46
+ title?: string,
47
+ subTitle?: string
48
+ }
49
+
50
+ // 定义MorOption接口
51
+ export interface MorOption {
52
+ baseURL?: string,
53
+ minioURL?: string,
54
+ [key: string]: any
55
+ }
56
+
57
+ // 定义useMorghulisAuthorize函数的返回类型
58
+ export interface MorghulisAuthorize {
59
+ $client: string;
60
+ user: () => any;
61
+ check: (uid?: any) => boolean;
62
+ login: (uid: any) => void;
63
+ logout: () => void;
64
+ bearer: () => string | null;
65
+ }
66
+
67
+ // 创建库的入口函数
68
+ export declare function createMorghulis(options?: MorOption): {
69
+ install: (Vue: App) => void;
70
+ };
71
+
72
+ // 导出MDialog组件
73
+ export declare const MDialog: DefineComponent<
74
+ MorDialogProps,
75
+ {},
76
+ {},
77
+ {},
78
+ {},
79
+ ComponentOptionsMixin,
80
+ ComponentOptionsMixin,
81
+ {
82
+ 'update:modelValue': (value: boolean) => true;
83
+ 'close': () => true;
84
+ 'update:title': (value: string) => true;
85
+ 'update:subTitle': (value: string) => true;
86
+ },
87
+ string,
88
+ VNodeProps & AllowedComponentProps & ComponentCustomProps,
89
+ Readonly<MorDialogProps> & {
90
+ onClose?: () => any;
91
+ 'onUpdate:modelValue'?: (value: boolean) => any;
92
+ 'onUpdate:title'?: (value: string) => any;
93
+ 'onUpdate:subTitle'?: (value: string) => any;
94
+ },
95
+ {
96
+ title: string;
97
+ width: string | number;
98
+ fullscreen: boolean;
99
+ top: string;
100
+ modal: boolean;
101
+ modalClass: string;
102
+ headerClass: string;
103
+ bodyClass: string;
104
+ footerClass: string;
105
+ appendToBody: boolean;
106
+ appendTo: string;
107
+ lockScroll: boolean;
108
+ openDelay: number;
109
+ closeDelay: number;
110
+ closeOnClickModal: boolean;
111
+ closeOnPressEscape: boolean;
112
+ showClose: boolean;
113
+ draggable: boolean;
114
+ overFlow: boolean;
115
+ center: boolean;
116
+ alignCenter: boolean;
117
+ destroyOnClose: boolean;
118
+ closeIcon: string;
119
+ confirmButtonText: string;
120
+ cancelButtonText: string;
121
+ }
122
+ > & {
123
+ open: (data?: any, config?: MorDialogConfig) => void;
124
+ close: () => void;
125
+ };
126
+
127
+ // 导出MCell组件
128
+ export declare const MCell: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
129
+
130
+ // 导出数据表格相关组件
131
+ export declare const DTable: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
132
+ export declare const DForm: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
133
+ export declare const DCell: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
134
+ export declare const DController: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
135
+
136
+ // 声明useMorghulisAuthorize函数
137
+ export declare function useMorghulisAuthorize(): MorghulisAuthorize;
138
+
139
+ // 声明全局组件类型
140
+ declare module '@vue/runtime-core' {
141
+ export interface GlobalComponents {
142
+ // Morghulis组件
143
+ MDialog: typeof MDialog;
144
+ MCell: typeof MCell;
145
+
146
+ // Element Plus组件
147
+ ElButton: typeof ElButton;
148
+ ElDialog: typeof ElDialog;
149
+ ElText: typeof ElText;
150
+ ElDivider: typeof ElDivider;
151
+ ElSpace: typeof ElSpace;
152
+ // 可以根据需要添加更多Element Plus组件
153
+ }
154
+ }