@vunk/plus 1.3.0 → 1.3.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/components/SendOutlined.mjs +1 -1
- package/components/agent-chat-provider/index.d.ts +7 -0
- package/components/agent-chat-provider/src/api.d.ts +3 -0
- package/components/agent-chat-provider/src/const-roles.d.ts +8 -0
- package/components/agent-chat-provider/src/const.d.ts +1 -0
- package/components/agent-chat-provider/src/index.vue.d.ts +47 -0
- package/components/agent-chat-provider/src/types.d.ts +37 -0
- package/components/agent-chat-provider/src/use.d.ts +29 -0
- package/components/avatar/index.d.ts +4 -0
- package/components/avatar/src/ctx.d.ts +18 -0
- package/components/avatar/src/index.vue.d.ts +121 -0
- package/components/avatar/src/types.d.ts +1 -0
- package/components/broadcasting-markdown/index.d.ts +5 -0
- package/components/broadcasting-markdown/src/const.d.ts +18 -0
- package/components/broadcasting-markdown/src/ctx.d.ts +93 -0
- package/components/broadcasting-markdown/src/custom-speech.vue.d.ts +109 -0
- package/components/broadcasting-markdown/src/index.vue.d.ts +477 -0
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +78 -0
- package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
- package/components/broadcasting-markdown/src/types.d.ts +17 -0
- package/components/broadcasting-markdown/src/use.d.ts +3 -0
- package/components/broadcasting-markdown/src/web-speech.vue.d.ts +102 -0
- package/components/bubble-list/index.d.ts +5 -0
- package/components/bubble-list/index.mjs +1 -1
- package/components/bubble-list/src/ctx.d.ts +30 -0
- package/components/bubble-list/src/index.vue.d.ts +927 -0
- package/components/bubble-list/src/types.d.ts +4 -0
- package/components/bubble-templates/index.d.ts +4 -0
- package/components/bubble-templates/index.mjs +1 -1
- package/components/bubble-templates/src/index.vue.d.ts +631 -0
- package/components/bubble-templates/src/types.d.ts +30 -0
- package/components/chat-independent/index.d.ts +4 -0
- package/components/chat-independent/src/const.d.ts +13 -0
- package/components/chat-independent/src/ctx.d.ts +20 -0
- package/components/chat-independent/src/index.vue.d.ts +2388 -0
- package/components/chat-independent/src/types.d.ts +13 -0
- package/components/index.d.ts +0 -0
- package/components/index.mjs +0 -35979
- package/components/index2.mjs +35980 -0
- package/components/lottie-animation/index.d.ts +4 -0
- package/components/lottie-animation/src/ctx.d.ts +10 -0
- package/components/lottie-animation/src/index.vue.d.ts +21 -0
- package/components/lottie-animation/src/types.d.ts +4 -0
- package/components/monaco-editor/index.d.ts +5 -0
- package/components/monaco-editor/src/ctx.d.ts +23 -0
- package/components/monaco-editor/src/index.vue.d.ts +40 -0
- package/components/monaco-editor/src/types.d.ts +1 -0
- package/components/monaco-environment/index.d.ts +4 -0
- package/components/monaco-environment/src/ctx.d.ts +8 -0
- package/components/monaco-environment/src/index.vue.d.ts +2 -0
- package/components/monaco-environment/src/types.d.ts +1 -0
- package/components/recorder-button/index.d.ts +4 -0
- package/components/recorder-button/src/ctx.d.ts +40 -0
- package/components/recorder-button/src/index.vue.d.ts +303 -0
- package/components/recorder-button/src/speech-to-text.d.ts +1 -0
- package/components/recorder-button/src/types.d.ts +7 -0
- package/components/routes-menu-content/index.d.ts +4 -0
- package/components/routes-menu-content/src/ctx.d.ts +17 -0
- package/components/routes-menu-content/src/index.vue.d.ts +472 -0
- package/components/routes-menu-content/src/item/core/ctx.d.ts +18 -0
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +307 -0
- package/components/routes-menu-content/src/item/ctx.d.ts +14 -0
- package/components/routes-menu-content/src/item/index.vue.d.ts +438 -0
- package/components/routes-menu-content/src/types.d.ts +1 -0
- package/components/sender/index.d.ts +4 -0
- package/components/sender/index.mjs +1 -1
- package/components/sender/src/SenderHeader.vue.d.ts +256 -0
- package/components/sender/src/ctx.d.ts +58 -0
- package/components/sender/src/index.vue.d.ts +778 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.d.ts +4 -0
- package/components/speech-button/index.mjs +1 -1
- package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/ctx.d.ts +10 -0
- package/components/speech-button/src/index.vue.d.ts +22 -0
- package/components/speech-button/src/types.d.ts +1 -0
- package/components/table-columns/index.d.ts +5 -0
- package/components/table-columns/src/ctx.d.ts +66 -0
- package/components/table-columns/src/el-ctx.d.ts +63 -0
- package/components/table-columns/src/index.vue.d.ts +282 -0
- package/components/table-columns/src/types.d.ts +21 -0
- package/components/tables-v1/index.d.ts +5 -0
- package/components/tables-v1/src/ctx.d.ts +281 -0
- package/components/tables-v1/src/el-ctx.d.ts +269 -0
- package/components/tables-v1/src/index.vue.d.ts +3014 -0
- package/components/tables-v1/src/types.d.ts +4 -0
- package/components/tables-v1-checkbox/index.d.ts +5 -0
- package/components/tables-v1-checkbox/src/ctx.d.ts +321 -0
- package/components/tables-v1-checkbox/src/index.vue.d.ts +3796 -0
- package/components/tables-v1-checkbox/src/types.d.ts +1 -0
- package/components/typing-markdown/index.d.ts +4 -0
- package/components/typing-markdown/src/core.d.ts +2 -0
- package/components/typing-markdown/src/ctx.d.ts +33 -0
- package/components/typing-markdown/src/index.vue.d.ts +57 -0
- package/components/typing-markdown/src/types.d.ts +1 -0
- package/components/vditor/index.d.ts +5 -0
- package/components/vditor/src/ctx.d.ts +37 -0
- package/components/vditor/src/handle-fullscreen.vue.d.ts +18 -0
- package/components/vditor/src/handle-value.vue.d.ts +18 -0
- package/components/vditor/src/index.vue.d.ts +144 -0
- package/components/vditor/src/types.d.ts +9 -0
- package/components/vditor/src/use.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Module = 'Attachments';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, createVNode, createTextVNode } from 'vue';
|
|
2
2
|
import { useRecorder } from '@vunk/plus/composables/recorder';
|
|
3
3
|
import { Button } from 'ant-design-vue';
|
|
4
|
-
import { A as AudioMutedOutlined,
|
|
4
|
+
import { A as AudioMutedOutlined, a as AudioOutlined } from '../SendOutlined.mjs';
|
|
5
5
|
|
|
6
6
|
const props = {
|
|
7
7
|
disabled: {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, 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,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, 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,22 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
disabled: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
stop: (_: Blob) => boolean;
|
|
8
|
+
start: null;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{
|
|
15
|
+
onStop?: ((_: Blob) => any) | undefined;
|
|
16
|
+
onStart?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
}, {}, {
|
|
20
|
+
RecordingIcon: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Source } from './types';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
source: {
|
|
5
|
+
type: PropType<Source<any>[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
label: StringConstructor;
|
|
13
|
+
className: StringConstructor;
|
|
14
|
+
labelClassName: StringConstructor;
|
|
15
|
+
property: StringConstructor;
|
|
16
|
+
prop: StringConstructor;
|
|
17
|
+
width: {
|
|
18
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
minWidth: {
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
renderHeader: PropType<(data: {
|
|
26
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
27
|
+
$index: number;
|
|
28
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>>;
|
|
31
|
+
sortable: {
|
|
32
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
sortMethod: PropType<(a: any, b: any) => number>;
|
|
36
|
+
sortBy: PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
37
|
+
resizable: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
columnKey: StringConstructor;
|
|
42
|
+
align: StringConstructor;
|
|
43
|
+
headerAlign: StringConstructor;
|
|
44
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
45
|
+
showOverflowTooltip: BooleanConstructor;
|
|
46
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
47
|
+
formatter: PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>>;
|
|
50
|
+
selectable: PropType<(row: any, index: number) => boolean>;
|
|
51
|
+
reserveSelection: BooleanConstructor;
|
|
52
|
+
filterMethod: PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
53
|
+
filteredValue: PropType<string[]>;
|
|
54
|
+
filters: PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
55
|
+
filterPlacement: StringConstructor;
|
|
56
|
+
filterMultiple: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
index: PropType<number | ((index: number) => number)>;
|
|
61
|
+
sortOrders: {
|
|
62
|
+
type: PropType<("ascending" | "descending" | null)[]>;
|
|
63
|
+
default: () => (string | null)[];
|
|
64
|
+
validator: (val: ("ascending" | "descending" | null)[]) => boolean;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
export declare const tableColumnProps: {
|
|
4
|
+
type: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
label: StringConstructor;
|
|
9
|
+
className: StringConstructor;
|
|
10
|
+
labelClassName: StringConstructor;
|
|
11
|
+
property: StringConstructor;
|
|
12
|
+
prop: StringConstructor;
|
|
13
|
+
width: {
|
|
14
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
minWidth: {
|
|
18
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
renderHeader: PropType<(data: {
|
|
22
|
+
column: TableColumnCtx<any>;
|
|
23
|
+
$index: number;
|
|
24
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}>>;
|
|
27
|
+
sortable: {
|
|
28
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
sortMethod: PropType<(a: any, b: any) => number>;
|
|
32
|
+
sortBy: PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
33
|
+
resizable: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
columnKey: StringConstructor;
|
|
38
|
+
align: StringConstructor;
|
|
39
|
+
headerAlign: StringConstructor;
|
|
40
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
41
|
+
showOverflowTooltip: BooleanConstructor;
|
|
42
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
43
|
+
formatter: PropType<(row: any, column: TableColumnCtx<any>, cellValue: any, index: number) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}>>;
|
|
46
|
+
selectable: PropType<(row: any, index: number) => boolean>;
|
|
47
|
+
reserveSelection: BooleanConstructor;
|
|
48
|
+
filterMethod: PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
49
|
+
filteredValue: PropType<string[]>;
|
|
50
|
+
filters: PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
51
|
+
filterPlacement: StringConstructor;
|
|
52
|
+
filterMultiple: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
index: PropType<number | ((index: number) => number)>;
|
|
57
|
+
sortOrders: {
|
|
58
|
+
type: PropType<("ascending" | "descending" | null)[]>;
|
|
59
|
+
default: () => (string | null)[];
|
|
60
|
+
validator: (val: TableColumnCtx<unknown>['sortOrders']) => boolean;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare const createTableColumnBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"width", keyof T2> | Extract<"align", keyof T2> | Extract<"index", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"sortable", keyof T2> | Extract<"resizable", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"fixed", keyof T2>, KE> | Exclude<Extract<"filters", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"className", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"align", keyof T2>, KE> | Exclude<Extract<"index", keyof T2>, KE> | Exclude<Extract<"renderHeader", keyof T2>, KE> | Exclude<Extract<"sortMethod", keyof T2>, KE> | Exclude<Extract<"sortBy", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"selectable", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"filteredValue", keyof T2>, KE> | Exclude<Extract<"sortOrders", keyof T2>, KE> | Exclude<Extract<"labelClassName", keyof T2>, KE> | Exclude<Extract<"property", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"minWidth", keyof T2>, KE> | Exclude<Extract<"sortable", keyof T2>, KE> | Exclude<Extract<"resizable", keyof T2>, KE> | Exclude<Extract<"columnKey", keyof T2>, KE> | Exclude<Extract<"headerAlign", keyof T2>, KE> | Exclude<Extract<"showOverflowTooltip", keyof T2>, KE> | Exclude<Extract<"reserveSelection", keyof T2>, KE> | Exclude<Extract<"filterPlacement", keyof T2>, KE> | Exclude<Extract<"filterMultiple", keyof T2>, KE> | Exclude<Extract<"showTooltipWhenOverflow", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"width", keyof T2> | Extract<"align", keyof T2> | Extract<"index", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"sortable", keyof T2> | Extract<"resizable", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"fixed", keyof T2> | Extract<"filters", keyof T2> | Extract<"label", keyof T2> | Extract<"className", keyof T2> | Extract<"width", keyof T2> | Extract<"align", keyof T2> | Extract<"index", keyof T2> | Extract<"renderHeader", keyof T2> | Extract<"sortMethod", keyof T2> | Extract<"sortBy", keyof T2> | Extract<"formatter", keyof T2> | Extract<"selectable", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"filteredValue", keyof T2> | Extract<"sortOrders", keyof T2> | Extract<"labelClassName", keyof T2> | Extract<"property", keyof T2> | Extract<"prop", keyof T2> | Extract<"minWidth", keyof T2> | Extract<"sortable", keyof T2> | Extract<"resizable", keyof T2> | Extract<"columnKey", keyof T2> | Extract<"headerAlign", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"reserveSelection", keyof T2> | Extract<"filterPlacement", keyof T2> | Extract<"filterMultiple", keyof T2> | Extract<"showTooltipWhenOverflow", keyof T2>]: T2[k]; }[P]; }>;
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { Source } from './types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
source: {
|
|
5
|
+
type: import("vue").PropType<Source<any>[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
label: StringConstructor;
|
|
13
|
+
className: StringConstructor;
|
|
14
|
+
labelClassName: StringConstructor;
|
|
15
|
+
property: StringConstructor;
|
|
16
|
+
prop: StringConstructor;
|
|
17
|
+
width: {
|
|
18
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
minWidth: {
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
renderHeader: import("vue").PropType<(data: {
|
|
26
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
27
|
+
$index: number;
|
|
28
|
+
}) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>>;
|
|
31
|
+
sortable: {
|
|
32
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
sortMethod: import("vue").PropType<(a: any, b: any) => number>;
|
|
36
|
+
sortBy: import("vue").PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
37
|
+
resizable: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
columnKey: StringConstructor;
|
|
42
|
+
align: StringConstructor;
|
|
43
|
+
headerAlign: StringConstructor;
|
|
44
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
45
|
+
showOverflowTooltip: BooleanConstructor;
|
|
46
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
47
|
+
formatter: import("vue").PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>>;
|
|
50
|
+
selectable: import("vue").PropType<(row: any, index: number) => boolean>;
|
|
51
|
+
reserveSelection: BooleanConstructor;
|
|
52
|
+
filterMethod: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
53
|
+
filteredValue: import("vue").PropType<string[]>;
|
|
54
|
+
filters: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
55
|
+
filterPlacement: StringConstructor;
|
|
56
|
+
filterMultiple: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
index: import("vue").PropType<number | ((index: number) => number)>;
|
|
61
|
+
sortOrders: {
|
|
62
|
+
type: import("vue").PropType<("ascending" | "descending" | null)[]>;
|
|
63
|
+
default: () => (string | null)[];
|
|
64
|
+
validator: (val: ("ascending" | "descending" | null)[]) => boolean;
|
|
65
|
+
};
|
|
66
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
+
source: {
|
|
70
|
+
type: import("vue").PropType<Source<any>[]>;
|
|
71
|
+
default: () => never[];
|
|
72
|
+
};
|
|
73
|
+
type: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
label: StringConstructor;
|
|
78
|
+
className: StringConstructor;
|
|
79
|
+
labelClassName: StringConstructor;
|
|
80
|
+
property: StringConstructor;
|
|
81
|
+
prop: StringConstructor;
|
|
82
|
+
width: {
|
|
83
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
minWidth: {
|
|
87
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
renderHeader: import("vue").PropType<(data: {
|
|
91
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
92
|
+
$index: number;
|
|
93
|
+
}) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
94
|
+
[key: string]: any;
|
|
95
|
+
}>>;
|
|
96
|
+
sortable: {
|
|
97
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
sortMethod: import("vue").PropType<(a: any, b: any) => number>;
|
|
101
|
+
sortBy: import("vue").PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
102
|
+
resizable: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
columnKey: StringConstructor;
|
|
107
|
+
align: StringConstructor;
|
|
108
|
+
headerAlign: StringConstructor;
|
|
109
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
110
|
+
showOverflowTooltip: BooleanConstructor;
|
|
111
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
112
|
+
formatter: import("vue").PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
}>>;
|
|
115
|
+
selectable: import("vue").PropType<(row: any, index: number) => boolean>;
|
|
116
|
+
reserveSelection: BooleanConstructor;
|
|
117
|
+
filterMethod: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
118
|
+
filteredValue: import("vue").PropType<string[]>;
|
|
119
|
+
filters: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
120
|
+
filterPlacement: StringConstructor;
|
|
121
|
+
filterMultiple: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
index: import("vue").PropType<number | ((index: number) => number)>;
|
|
126
|
+
sortOrders: {
|
|
127
|
+
type: import("vue").PropType<("ascending" | "descending" | null)[]>;
|
|
128
|
+
default: () => (string | null)[];
|
|
129
|
+
validator: (val: ("ascending" | "descending" | null)[]) => boolean;
|
|
130
|
+
};
|
|
131
|
+
}>> & Readonly<{}>, {
|
|
132
|
+
type: string;
|
|
133
|
+
source: Source<any>[];
|
|
134
|
+
width: string | number;
|
|
135
|
+
sortOrders: ("ascending" | "descending" | null)[];
|
|
136
|
+
minWidth: string | number;
|
|
137
|
+
sortable: string | boolean;
|
|
138
|
+
resizable: boolean;
|
|
139
|
+
showOverflowTooltip: boolean;
|
|
140
|
+
reserveSelection: boolean;
|
|
141
|
+
filterMultiple: boolean;
|
|
142
|
+
showTooltipWhenOverflow: boolean;
|
|
143
|
+
}, {}, {
|
|
144
|
+
ElTableColumn: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
145
|
+
type: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
label: StringConstructor;
|
|
150
|
+
className: StringConstructor;
|
|
151
|
+
labelClassName: StringConstructor;
|
|
152
|
+
property: StringConstructor;
|
|
153
|
+
prop: StringConstructor;
|
|
154
|
+
width: {
|
|
155
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
minWidth: {
|
|
159
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
renderHeader: import("vue").PropType<(data: {
|
|
163
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
164
|
+
$index: number;
|
|
165
|
+
}) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
166
|
+
[key: string]: any;
|
|
167
|
+
}>>;
|
|
168
|
+
sortable: {
|
|
169
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
sortMethod: import("vue").PropType<(a: any, b: any) => number>;
|
|
173
|
+
sortBy: import("vue").PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
174
|
+
resizable: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
default: boolean;
|
|
177
|
+
};
|
|
178
|
+
columnKey: StringConstructor;
|
|
179
|
+
align: StringConstructor;
|
|
180
|
+
headerAlign: StringConstructor;
|
|
181
|
+
showOverflowTooltip: {
|
|
182
|
+
type: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "placement" | "appendTo" | "offset" | "popperClass" | "showArrow" | "transition" | "effect" | "enterable" | "popperOptions" | "showAfter" | "hideAfter">> | undefined>;
|
|
183
|
+
default: undefined;
|
|
184
|
+
};
|
|
185
|
+
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/table/src/util").TableOverflowTooltipFormatter<any> | undefined>;
|
|
186
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
187
|
+
formatter: import("vue").PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
188
|
+
[key: string]: any;
|
|
189
|
+
}>>;
|
|
190
|
+
selectable: import("vue").PropType<(row: any, index: number) => boolean>;
|
|
191
|
+
reserveSelection: BooleanConstructor;
|
|
192
|
+
filterMethod: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
193
|
+
filteredValue: import("vue").PropType<string[]>;
|
|
194
|
+
filters: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
195
|
+
filterPlacement: StringConstructor;
|
|
196
|
+
filterMultiple: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
filterClassName: StringConstructor;
|
|
201
|
+
index: import("vue").PropType<number | ((index: number) => number)>;
|
|
202
|
+
sortOrders: {
|
|
203
|
+
type: import("vue").PropType<("ascending" | "descending" | null)[]>;
|
|
204
|
+
default: () => (string | null)[];
|
|
205
|
+
validator: (val: ("ascending" | "descending" | null)[]) => boolean;
|
|
206
|
+
};
|
|
207
|
+
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
208
|
+
type: {
|
|
209
|
+
type: StringConstructor;
|
|
210
|
+
default: string;
|
|
211
|
+
};
|
|
212
|
+
label: StringConstructor;
|
|
213
|
+
className: StringConstructor;
|
|
214
|
+
labelClassName: StringConstructor;
|
|
215
|
+
property: StringConstructor;
|
|
216
|
+
prop: StringConstructor;
|
|
217
|
+
width: {
|
|
218
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
219
|
+
default: string;
|
|
220
|
+
};
|
|
221
|
+
minWidth: {
|
|
222
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
renderHeader: import("vue").PropType<(data: {
|
|
226
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
227
|
+
$index: number;
|
|
228
|
+
}) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
229
|
+
[key: string]: any;
|
|
230
|
+
}>>;
|
|
231
|
+
sortable: {
|
|
232
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
sortMethod: import("vue").PropType<(a: any, b: any) => number>;
|
|
236
|
+
sortBy: import("vue").PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
237
|
+
resizable: {
|
|
238
|
+
type: BooleanConstructor;
|
|
239
|
+
default: boolean;
|
|
240
|
+
};
|
|
241
|
+
columnKey: StringConstructor;
|
|
242
|
+
align: StringConstructor;
|
|
243
|
+
headerAlign: StringConstructor;
|
|
244
|
+
showOverflowTooltip: {
|
|
245
|
+
type: import("vue").PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "placement" | "appendTo" | "offset" | "popperClass" | "showArrow" | "transition" | "effect" | "enterable" | "popperOptions" | "showAfter" | "hideAfter">> | undefined>;
|
|
246
|
+
default: undefined;
|
|
247
|
+
};
|
|
248
|
+
tooltipFormatter: import("vue").PropType<import("element-plus/es/components/table/src/util").TableOverflowTooltipFormatter<any> | undefined>;
|
|
249
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
250
|
+
formatter: import("vue").PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
251
|
+
[key: string]: any;
|
|
252
|
+
}>>;
|
|
253
|
+
selectable: import("vue").PropType<(row: any, index: number) => boolean>;
|
|
254
|
+
reserveSelection: BooleanConstructor;
|
|
255
|
+
filterMethod: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
256
|
+
filteredValue: import("vue").PropType<string[]>;
|
|
257
|
+
filters: import("vue").PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
258
|
+
filterPlacement: StringConstructor;
|
|
259
|
+
filterMultiple: {
|
|
260
|
+
type: BooleanConstructor;
|
|
261
|
+
default: boolean;
|
|
262
|
+
};
|
|
263
|
+
filterClassName: StringConstructor;
|
|
264
|
+
index: import("vue").PropType<number | ((index: number) => number)>;
|
|
265
|
+
sortOrders: {
|
|
266
|
+
type: import("vue").PropType<("ascending" | "descending" | null)[]>;
|
|
267
|
+
default: () => (string | null)[];
|
|
268
|
+
validator: (val: ("ascending" | "descending" | null)[]) => boolean;
|
|
269
|
+
};
|
|
270
|
+
}>>, {
|
|
271
|
+
width: string | number;
|
|
272
|
+
minWidth: string | number;
|
|
273
|
+
type: string;
|
|
274
|
+
showOverflowTooltip: boolean | Partial<Pick<import("element-plus").ElTooltipProps, "placement" | "appendTo" | "offset" | "popperClass" | "showArrow" | "transition" | "effect" | "enterable" | "popperOptions" | "showAfter" | "hideAfter">> | undefined;
|
|
275
|
+
sortOrders: ("ascending" | "descending" | null)[];
|
|
276
|
+
sortable: string | boolean;
|
|
277
|
+
resizable: boolean;
|
|
278
|
+
reserveSelection: boolean;
|
|
279
|
+
filterMultiple: boolean;
|
|
280
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
281
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
282
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Func, Keyof, NormalObject, VueComponentPropsType } from '@vunk/core';
|
|
2
|
+
import { ElTableColumn } from 'element-plus';
|
|
3
|
+
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
4
|
+
export type DefaultSlot<R extends NormalObject> = Func<{
|
|
5
|
+
row: R;
|
|
6
|
+
column: TableColumnCtx<R>;
|
|
7
|
+
$index: number;
|
|
8
|
+
}>;
|
|
9
|
+
export interface Source<T extends NormalObject = NormalObject> extends VueComponentPropsType<typeof ElTableColumn> {
|
|
10
|
+
prop?: Keyof<T>;
|
|
11
|
+
slots?: DefaultSlot<T> | {
|
|
12
|
+
default?: DefaultSlot<T>;
|
|
13
|
+
header?: Func<{
|
|
14
|
+
column: TableColumnCtx<T>;
|
|
15
|
+
$index: number;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
children?: Source<T>[];
|
|
19
|
+
hidden?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export {};
|