morghulis 3.0.26 → 3.1.1
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/index.css +1 -1
- package/dist/morghulis.es.js +6465 -5366
- package/dist/morghulis.es.js.map +1 -1
- package/dist/morghulis.umd.js +25 -25
- package/dist/morghulis.umd.js.map +1 -1
- package/dist/types/components/meta/MetaTree.vue.d.ts +5 -0
- package/dist/types/components/meta/copy/CopyMetaFields.vue.d.ts +6 -0
- package/dist/types/components/meta/data/ViewMetaData.vue.d.ts +6 -0
- package/dist/types/components/meta/edit/EditMetaFields.vue.d.ts +6 -0
- package/dist/types/components/meta/edit/EditMetaView.vue.d.ts +12 -0
- package/dist/types/components/table/data/DTable.vue.d.ts +5 -3
- package/dist/types/components/table/data/types.d.ts +1 -0
- package/dist/types/components/table/data/widgets/DCellContent.vue.d.ts +10 -0
- package/dist/types/components/table/data/{controller → widgets}/DTableController.vue.d.ts +13 -7
- package/dist/types/components/table/simple/MTable.vue.d.ts +10 -8
- package/dist/types/components/table/simple/buttons/MTableButtonWrapper.vue.d.ts +5 -1
- package/dist/types/components/table/simple/types.d.ts +3 -1
- package/dist/types/components/table/simple/widgets/MTableHeader.vue.d.ts +1 -2
- package/dist/types/components/table/simple/widgets/MTableIndex.vue.d.ts +2 -2
- package/dist/types/components/table/upload/DTableUpload.vue.d.ts +10 -0
- package/dist/types/components/table/upload/control/DTableUploadActivator.vue.d.ts +2 -0
- package/dist/types/components/table/upload/control/DTableUploadButtons.vue.d.ts +8 -0
- package/dist/types/components/table/upload/control/DTableUploadController.vue.d.ts +15 -0
- package/dist/types/components/table/upload/types.d.ts +5 -0
- package/dist/types/components/table/virtual/VTable.vue.d.ts +17 -1
- package/dist/types/hooks/use-dao/index.d.ts +28 -0
- package/dist/types/hooks/use-dao/tool.d.ts +2 -0
- package/dist/types/hooks/use-mata/types.d.ts +11 -9
- package/dist/types/hooks/use-paster/index.d.ts +4 -0
- package/dist/types/hooks/use-table/data/index.d.ts +5 -0
- package/dist/types/hooks/use-table/simple/index.d.ts +1 -7
- package/package.json +1 -1
@@ -0,0 +1,5 @@
|
|
1
|
+
type __VLS_Props = {
|
2
|
+
entity?: string;
|
3
|
+
};
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
5
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { MetaView } from "../../../hooks/use-mata/types";
|
2
|
+
type __VLS_Props = {
|
3
|
+
view: MetaView;
|
4
|
+
};
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
6
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { MetaView } from "../../../hooks/use-mata/types";
|
2
|
+
type __VLS_Props = {
|
3
|
+
view: MetaView;
|
4
|
+
};
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
6
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { MetaView } from "../../../hooks/use-mata/types";
|
2
|
+
type __VLS_Props = {
|
3
|
+
view: MetaView;
|
4
|
+
};
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
6
|
+
export default _default;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { MetaView } from "../../../hooks/use-mata/types";
|
2
|
+
type __VLS_Props = {
|
3
|
+
view: MetaView;
|
4
|
+
};
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
6
|
+
confirm: (...args: any[]) => void;
|
7
|
+
cancel: (...args: any[]) => void;
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
9
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
10
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
12
|
+
export default _default;
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import { DTableProps } from "./types";
|
2
|
-
declare var
|
2
|
+
declare var __VLS_13: {};
|
3
3
|
type __VLS_Slots = {} & {
|
4
|
-
header?: (props: typeof
|
4
|
+
header?: (props: typeof __VLS_13) => any;
|
5
5
|
};
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<DTableProps, {
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<DTableProps, {
|
7
|
+
load: () => void;
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
7
9
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
8
10
|
export default _default;
|
9
11
|
type __VLS_WithSlots<T, S> = T & {
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { DataItem } from "../../../../hooks/use-query/types";
|
2
|
+
import { MetaField, MetaView } from "../../../../hooks/use-mata/types";
|
3
|
+
type __VLS_Props = {
|
4
|
+
view: MetaView;
|
5
|
+
field: MetaField;
|
6
|
+
row: DataItem;
|
7
|
+
prop: string;
|
8
|
+
};
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
10
|
+
export default _default;
|
@@ -1,24 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import { DataItem } from "../../../../hooks/use-query/types";
|
2
|
+
import { MetaView } from "../../../../hooks/use-mata/types";
|
3
|
+
type __VLS_Props = {
|
4
|
+
is_admin?: boolean;
|
5
|
+
admin: boolean;
|
6
|
+
selection: DataItem[];
|
7
|
+
view: MetaView;
|
8
|
+
};
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
4
10
|
remove: (...args: any[]) => void;
|
5
11
|
open: (...args: any[]) => void;
|
6
12
|
check: (...args: any[]) => void;
|
7
13
|
paste: (...args: any[]) => void;
|
14
|
+
switch: (...args: any[]) => void;
|
8
15
|
uncheck: (...args: any[]) => void;
|
9
16
|
clone: (...args: any[]) => void;
|
10
17
|
upload: (...args: any[]) => void;
|
11
18
|
download: (...args: any[]) => void;
|
12
|
-
}, string, import("vue").PublicProps, Readonly<{
|
13
|
-
selection?: any;
|
14
|
-
}> & Readonly<{
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
15
20
|
onRemove?: ((...args: any[]) => any) | undefined;
|
16
21
|
onOpen?: ((...args: any[]) => any) | undefined;
|
17
22
|
onCheck?: ((...args: any[]) => any) | undefined;
|
18
23
|
onPaste?: ((...args: any[]) => any) | undefined;
|
24
|
+
onSwitch?: ((...args: any[]) => any) | undefined;
|
19
25
|
onUncheck?: ((...args: any[]) => any) | undefined;
|
20
26
|
onClone?: ((...args: any[]) => any) | undefined;
|
21
27
|
onUpload?: ((...args: any[]) => any) | undefined;
|
22
28
|
onDownload?: ((...args: any[]) => any) | undefined;
|
23
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
29
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
24
30
|
export default _default;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { type MTableProps } from "./types";
|
2
2
|
declare function getSelection(): any;
|
3
|
-
declare var __VLS_1: {}, __VLS_3: {},
|
3
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_16: {}, __VLS_40: {
|
4
4
|
field: import("../../../hooks/use-mata/types").MetaField;
|
5
|
-
},
|
5
|
+
}, __VLS_42: {
|
6
6
|
field: import("../../../hooks/use-mata/types").MetaField;
|
7
7
|
row: any;
|
8
8
|
prop: string | number;
|
9
|
-
},
|
9
|
+
}, __VLS_54: {}, __VLS_56: {}, __VLS_61: {
|
10
10
|
type: import("./types").MTablePopperType;
|
11
11
|
data: any;
|
12
12
|
};
|
@@ -15,15 +15,17 @@ type __VLS_Slots = {} & {
|
|
15
15
|
} & {
|
16
16
|
'header-tool'?: (props: typeof __VLS_3) => any;
|
17
17
|
} & {
|
18
|
-
|
18
|
+
empty?: (props: typeof __VLS_16) => any;
|
19
19
|
} & {
|
20
|
-
cell?: (props: typeof __VLS_40) => any;
|
20
|
+
'header-cell'?: (props: typeof __VLS_40) => any;
|
21
21
|
} & {
|
22
|
-
|
22
|
+
cell?: (props: typeof __VLS_42) => any;
|
23
23
|
} & {
|
24
|
-
|
24
|
+
footer?: (props: typeof __VLS_54) => any;
|
25
25
|
} & {
|
26
|
-
|
26
|
+
'footer-tool'?: (props: typeof __VLS_56) => any;
|
27
|
+
} & {
|
28
|
+
pop?: (props: typeof __VLS_61) => any;
|
27
29
|
};
|
28
30
|
declare const __VLS_component: import("vue").DefineComponent<MTableProps, {
|
29
31
|
getSelection: typeof getSelection;
|
@@ -2,5 +2,9 @@ import { MTableButton } from "../types";
|
|
2
2
|
type __VLS_Props = {
|
3
3
|
buttons?: MTableButton[];
|
4
4
|
};
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
6
|
+
click: (...args: any[]) => void;
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
8
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
6
10
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Component } from "vue";
|
1
|
+
import type { Component, Ref } from "vue";
|
2
2
|
import { type CSSProperties, type VNode } from "vue";
|
3
3
|
import { type ElTooltipProps, type Sort, type TreeNode } from "element-plus";
|
4
4
|
import { MetaView } from "../../../hooks/use-mata/types";
|
@@ -119,6 +119,7 @@ export interface TableProps {
|
|
119
119
|
preserveExpandedContent?: boolean;
|
120
120
|
}
|
121
121
|
export type MTableProps = TableProps & {
|
122
|
+
admin?: boolean;
|
122
123
|
loading?: boolean;
|
123
124
|
view: MetaView;
|
124
125
|
orders?: Orders;
|
@@ -155,6 +156,7 @@ export type MTableButton = {
|
|
155
156
|
color?: string | Function;
|
156
157
|
tag?: string | Function;
|
157
158
|
icon?: string | Function;
|
159
|
+
dialog?: Ref;
|
158
160
|
};
|
159
161
|
export type MTableColumn = {
|
160
162
|
label: string;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
-
|
2
|
+
admin?: any;
|
3
3
|
selection?: any;
|
4
4
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
5
5
|
check: (...args: any[]) => void;
|
6
6
|
meta: (...args: any[]) => void;
|
7
7
|
uncheck: (...args: any[]) => void;
|
8
8
|
}, string, import("vue").PublicProps, Readonly<{
|
9
|
-
|
9
|
+
admin?: any;
|
10
10
|
selection?: any;
|
11
11
|
}> & Readonly<{
|
12
12
|
onCheck?: ((...args: any[]) => any) | undefined;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { MetaView } from "../../../hooks/use-mata/types";
|
2
|
+
type __VLS_Props = {
|
3
|
+
view: MetaView;
|
4
|
+
};
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
6
|
+
confirm: (...args: any[]) => void;
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
8
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
10
|
+
export default _default;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
2
|
+
clear: (...args: any[]) => void;
|
3
|
+
confirm: (...args: any[]) => void;
|
4
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
5
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
6
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
7
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
8
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { MetaView } from "../../../../hooks/use-mata/types";
|
2
|
+
import { DataItem } from "../../../../hooks/use-query/types";
|
3
|
+
type __VLS_Props = {
|
4
|
+
view: MetaView;
|
5
|
+
data: DataItem[];
|
6
|
+
useKey: boolean;
|
7
|
+
};
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
9
|
+
view: (...args: any[]) => void;
|
10
|
+
"update:useKey": (...args: any[]) => void;
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
12
|
+
onView?: ((...args: any[]) => any) | undefined;
|
13
|
+
"onUpdate:useKey"?: ((...args: any[]) => any) | undefined;
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -8,5 +8,21 @@ type __VLS_Props = {
|
|
8
8
|
buttons?: MTableButton[];
|
9
9
|
columns?: MTableColumn[];
|
10
10
|
};
|
11
|
-
declare
|
11
|
+
declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
|
12
|
+
type __VLS_Slots = {} & {
|
13
|
+
empty?: (props: typeof __VLS_7) => any;
|
14
|
+
} & {
|
15
|
+
header?: (props: typeof __VLS_9) => any;
|
16
|
+
} & {
|
17
|
+
'header-cell'?: (props: typeof __VLS_11) => any;
|
18
|
+
} & {
|
19
|
+
cell?: (props: typeof __VLS_13) => any;
|
20
|
+
};
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
22
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
12
23
|
export default _default;
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
25
|
+
new (): {
|
26
|
+
$slots: S;
|
27
|
+
};
|
28
|
+
};
|
@@ -2,6 +2,34 @@ import { type Ref } from "vue";
|
|
2
2
|
import { type Meta, MetaView } from "../use-mata/types";
|
3
3
|
import { MorghulisChannelConfig } from "../use-channel/types";
|
4
4
|
import { DataItem, IQuery, Query } from "../use-query/types";
|
5
|
+
export declare function useDao(meta: Meta, auth?: boolean): {
|
6
|
+
meta: Ref<{
|
7
|
+
db: import("../use-mata/types").MetaDatabase;
|
8
|
+
entity: string;
|
9
|
+
code?: string | undefined;
|
10
|
+
}, Meta | {
|
11
|
+
db: import("../use-mata/types").MetaDatabase;
|
12
|
+
entity: string;
|
13
|
+
code?: string | undefined;
|
14
|
+
}>;
|
15
|
+
loading: import("vue").ComputedRef<boolean>;
|
16
|
+
payload: Ref<any, any>;
|
17
|
+
find_many: (query: Query | IQuery) => Promise<{
|
18
|
+
results: DataItem[];
|
19
|
+
total?: number;
|
20
|
+
}>;
|
21
|
+
save_one: (item: DataItem) => Promise<{
|
22
|
+
item: DataItem;
|
23
|
+
}>;
|
24
|
+
delete_one: (id: string | number) => Promise<boolean>;
|
25
|
+
find_one: (id: string | number) => Promise<{
|
26
|
+
item: DataItem;
|
27
|
+
}>;
|
28
|
+
delete_many: (query: Query | IQuery) => Promise<boolean>;
|
29
|
+
update_many: (query: Query | IQuery, template: DataItem) => Promise<boolean>;
|
30
|
+
load_view: () => Promise<MetaView>;
|
31
|
+
save_many: (array: DataItem[]) => void;
|
32
|
+
};
|
5
33
|
/**
|
6
34
|
* http和socket的loading冲突问题
|
7
35
|
*/
|
@@ -5,6 +5,7 @@ export type Meta = {
|
|
5
5
|
code?: string;
|
6
6
|
};
|
7
7
|
export type MetaView = {
|
8
|
+
id?: number;
|
8
9
|
fields?: {
|
9
10
|
[key: string]: MetaField;
|
10
11
|
};
|
@@ -35,30 +36,31 @@ export type NumberField = 'IntegerField' | 'FloatField' | 'BigIntegerField' | 'D
|
|
35
36
|
export type DateField = 'DateField' | 'DateTimeField' | 'TimeField';
|
36
37
|
export type SpecialField = 'JSONField' | 'FileField';
|
37
38
|
export type ReadonlyField = 'UUIDField' | 'BigAutoField' | 'Custom';
|
39
|
+
export type MetaFieldDomain = SimpleField | ManyField | RefField | SpecialField | ReadonlyField | NumberField | DateField;
|
38
40
|
export type MetaField = {
|
39
41
|
prop?: string;
|
40
42
|
label?: string;
|
41
43
|
name?: string;
|
42
|
-
domain?:
|
44
|
+
domain?: MetaFieldDomain;
|
43
45
|
tool?: string;
|
44
46
|
refer?: MetaRefer;
|
45
47
|
format?: MetaFormat;
|
46
48
|
unit?: string | null;
|
49
|
+
align?: 'left' | 'center' | 'right';
|
50
|
+
fixed?: '' | 'left' | 'right';
|
51
|
+
header_color?: string | null;
|
52
|
+
cell_color?: string | null;
|
53
|
+
span?: number;
|
54
|
+
column_width?: number;
|
47
55
|
not_null?: boolean;
|
48
|
-
|
49
|
-
|
56
|
+
allow_sort?: boolean;
|
57
|
+
allow_edit?: boolean;
|
50
58
|
allow_search?: boolean;
|
51
59
|
allow_download?: boolean;
|
52
60
|
allow_upload?: boolean;
|
53
61
|
allow_update?: boolean;
|
54
|
-
column_width?: number;
|
55
|
-
align?: 'left' | 'center' | 'right';
|
56
|
-
fixed?: '' | 'left' | 'right';
|
57
|
-
header_color?: string | null;
|
58
|
-
cell_color?: string | null;
|
59
62
|
edit_on_table?: boolean;
|
60
63
|
hide_on_table?: boolean;
|
61
|
-
span?: number;
|
62
64
|
hide_on_form?: boolean;
|
63
65
|
hide_on_form_edit?: boolean;
|
64
66
|
hide_on_form_insert?: boolean;
|
@@ -3,6 +3,9 @@ import { MetaView } from "../../use-mata/types";
|
|
3
3
|
import { DataItem, Finder, Query, QueryConfig } from "../../use-query/types";
|
4
4
|
import { DTableInfo, DTableProps } from "../../../components/table/data/types";
|
5
5
|
export declare function useDTable(table: Ref, props: DTableProps): {
|
6
|
+
admin: Ref<boolean, boolean>;
|
7
|
+
switch_admin: () => void;
|
8
|
+
reload: () => void;
|
6
9
|
finder: Ref<Finder, Finder>;
|
7
10
|
query: ComputedRef<Query>;
|
8
11
|
config: Ref<{
|
@@ -32,6 +35,7 @@ export declare function useDTable(table: Ref, props: DTableProps): {
|
|
32
35
|
}>;
|
33
36
|
payload: Ref<any, any>;
|
34
37
|
view: Ref<{
|
38
|
+
id?: number | undefined;
|
35
39
|
fields?: {
|
36
40
|
[key: string]: import("../../use-mata/types").MetaField;
|
37
41
|
} | undefined;
|
@@ -55,6 +59,7 @@ export declare function useDTable(table: Ref, props: DTableProps): {
|
|
55
59
|
allow_download?: boolean | undefined;
|
56
60
|
allow_upload?: boolean | undefined;
|
57
61
|
}, MetaView | {
|
62
|
+
id?: number | undefined;
|
58
63
|
fields?: {
|
59
64
|
[key: string]: import("../../use-mata/types").MetaField;
|
60
65
|
} | undefined;
|
@@ -4,13 +4,7 @@ export declare function useMTable(table: Ref, props: MTableProps): {
|
|
4
4
|
handleOrder: (prop: string, dir: 1 | -1) => void;
|
5
5
|
check: (flag: boolean) => void;
|
6
6
|
visible: import("vue").ComputedRef<{
|
7
|
-
popover:
|
8
|
-
meta: boolean;
|
9
|
-
search: boolean;
|
10
|
-
field: boolean;
|
11
|
-
index: boolean;
|
12
|
-
cell: boolean;
|
13
|
-
};
|
7
|
+
popover: boolean;
|
14
8
|
header: boolean;
|
15
9
|
footer: boolean;
|
16
10
|
}>;
|