@vunk/plus 1.5.0 → 1.5.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/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 +43 -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 +7 -0
- package/components/broadcasting-markdown/src/const.d.ts +13 -0
- package/components/broadcasting-markdown/src/ctx.d.ts +125 -0
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +97 -0
- package/components/broadcasting-markdown/src/index.vue.d.ts +424 -0
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +79 -0
- package/components/broadcasting-markdown/src/speech-error.vue.d.ts +60 -0
- package/components/broadcasting-markdown/src/types.d.ts +25 -0
- package/components/broadcasting-markdown/src/use.d.ts +21 -0
- package/components/bubble-list/index.d.ts +5 -0
- package/components/bubble-list/src/ctx.d.ts +30 -0
- package/components/bubble-list/src/index.vue.d.ts +848 -0
- package/components/bubble-list/src/types.d.ts +4 -0
- package/components/bubble-templates/index.d.ts +4 -0
- package/components/bubble-templates/src/index.vue.d.ts +579 -0
- package/components/bubble-templates/src/types.d.ts +40 -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 +2326 -0
- package/components/chat-independent/src/types.d.ts +13 -0
- package/components/index.d.ts +0 -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/pixi-frame/index.d.ts +10 -0
- package/components/pixi-frame/src/apng.vue.d.ts +187 -0
- package/components/pixi-frame/src/core.vue.d.ts +164 -0
- package/components/pixi-frame/src/ctx.d.ts +64 -0
- package/components/pixi-frame/src/index.vue.d.ts +666 -0
- package/components/pixi-frame/src/provider.vue.d.ts +2 -0
- package/components/pixi-frame/src/types.d.ts +17 -0
- package/components/pixi-frame/src/use.d.ts +16 -0
- package/components/pixi-frame/src/useSprite.d.ts +11 -0
- package/components/pixi-frame/src/video.vue.d.ts +185 -0
- package/components/pixi-frame/src/view.vue.d.ts +29 -0
- package/components/recorder-button/index.d.ts +4 -0
- package/components/recorder-button/src/ctx.d.ts +41 -0
- package/components/recorder-button/src/index.vue.d.ts +300 -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/src/SenderHeader.vue.d.ts +256 -0
- package/components/sender/src/ctx.d.ts +62 -0
- package/components/sender/src/index.vue.d.ts +787 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.d.ts +4 -0
- 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 +288 -0
- package/components/tables-v1/src/el-ctx.d.ts +269 -0
- package/components/tables-v1/src/index.vue.d.ts +3106 -0
- package/components/tables-v1/src/types.d.ts +3 -0
- package/components/tables-v1-checkbox/index.d.ts +5 -0
- package/components/tables-v1-checkbox/src/ctx.d.ts +325 -0
- package/components/tables-v1-checkbox/src/index.vue.d.ts +3898 -0
- package/components/tables-v1-checkbox/src/types.d.ts +1 -0
- package/components/text/index.d.ts +4 -0
- package/components/text/src/ctx.d.ts +320 -0
- package/components/text/src/index.vue.d.ts +2314 -0
- package/components/text/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 +41 -0
- package/components/typing-markdown/src/index.vue.d.ts +75 -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,7 @@
|
|
|
1
|
+
import VkAgentChatProvider from './src/index.vue';
|
|
2
|
+
export * from './src/const';
|
|
3
|
+
export * from './src/const-roles';
|
|
4
|
+
export * as __VkAgentChatProvider from './src/types';
|
|
5
|
+
export { useAgentChat } from './src/use';
|
|
6
|
+
export { VkAgentChatProvider, };
|
|
7
|
+
export default VkAgentChatProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChatAgentInjectKey = "vk_agent_chat_inject_key";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { AnyFunc } from '@vunk/shared';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
import type { AgentChatContext, AgentMessage } from './types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
request: {
|
|
6
|
+
type: PropType<AnyFunc>;
|
|
7
|
+
};
|
|
8
|
+
parser: {
|
|
9
|
+
type: PropType<AnyFunc>;
|
|
10
|
+
};
|
|
11
|
+
}>, import("vue").Slot<any> | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
load: (e: AgentChatContext) => {
|
|
13
|
+
agent: import("vue").ComputedRef<import("ant-design-x-vue").XAgent<AgentMessage>>;
|
|
14
|
+
chat: {
|
|
15
|
+
readonly onRequest: (value: AgentMessage) => void;
|
|
16
|
+
readonly messages: import("vue").Ref<import("ant-design-x-vue").MessageInfo<AgentMessage>[], import("ant-design-x-vue").MessageInfo<AgentMessage>[]>;
|
|
17
|
+
readonly parsedMessages: import("vue").ComputedRef<import("ant-design-x-vue").MessageInfo<import("./types").BubbleMessage>[]>;
|
|
18
|
+
readonly setMessages: (updater: import("ant-design-x-vue").MessageInfo<AgentMessage>[] | ((prev: import("ant-design-x-vue").MessageInfo<AgentMessage>[]) => import("ant-design-x-vue").MessageInfo<AgentMessage>[])) => void;
|
|
19
|
+
};
|
|
20
|
+
simplicity: {
|
|
21
|
+
onRequest: (message: string) => void;
|
|
22
|
+
items: import("vue").ComputedRef<import("./types").BubbleItem[]>;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
request: {
|
|
27
|
+
type: PropType<AnyFunc>;
|
|
28
|
+
};
|
|
29
|
+
parser: {
|
|
30
|
+
type: PropType<AnyFunc>;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{
|
|
33
|
+
onLoad?: ((e: {
|
|
34
|
+
agent: import("vue").ComputedRef<import("ant-design-x-vue").XAgent<AgentMessage>>;
|
|
35
|
+
chat: {
|
|
36
|
+
readonly onRequest: (value: AgentMessage) => void;
|
|
37
|
+
readonly messages: import("vue").Ref<import("ant-design-x-vue").MessageInfo<AgentMessage>[], import("ant-design-x-vue").MessageInfo<AgentMessage>[]>;
|
|
38
|
+
readonly parsedMessages: import("vue").ComputedRef<import("ant-design-x-vue").MessageInfo<import("./types").BubbleMessage>[]>;
|
|
39
|
+
readonly setMessages: (updater: import("ant-design-x-vue").MessageInfo<AgentMessage>[] | ((prev: import("ant-design-x-vue").MessageInfo<AgentMessage>[]) => import("ant-design-x-vue").MessageInfo<AgentMessage>[])) => void;
|
|
40
|
+
};
|
|
41
|
+
simplicity: {
|
|
42
|
+
onRequest: (message: string) => void;
|
|
43
|
+
items: import("vue").ComputedRef<import("./types").BubbleItem[]>;
|
|
44
|
+
};
|
|
45
|
+
}) => any) | undefined;
|
|
46
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { __VkBubbleTemplates } from '@vunk/plus/components/bubble-templates';
|
|
2
|
+
import type { Media, NormalObject } from '@vunk/shared';
|
|
3
|
+
import type { RequestFn } from 'ant-design-x-vue';
|
|
4
|
+
import type { MaybeArray } from 'naive-ui/es/_utils';
|
|
5
|
+
import type { BubbleListItemProps } from 'vue-element-plus-x/types/components/BubbleList/types';
|
|
6
|
+
import type { initAgentChat } from './use';
|
|
7
|
+
export type AgentChatContext = ReturnType<typeof initAgentChat>;
|
|
8
|
+
export type Request = RequestFn<AgentMessage>;
|
|
9
|
+
export type Parser = (message: AgentMessage) => MaybeArray<BubbleMessage>;
|
|
10
|
+
/**
|
|
11
|
+
* @description useXAgent request onSuccess 发送的数据
|
|
12
|
+
*/
|
|
13
|
+
export type AgentMessage = BubbleMessage & {
|
|
14
|
+
seviceLoading?: boolean;
|
|
15
|
+
seviceEnd?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @description useXChat parser 解析数据
|
|
19
|
+
*/
|
|
20
|
+
export type BubbleMessage = Partial<BubbleListItemProps> & {
|
|
21
|
+
role: string;
|
|
22
|
+
content: string;
|
|
23
|
+
/**
|
|
24
|
+
* @description 服务端请求是否完成
|
|
25
|
+
*/
|
|
26
|
+
seviceEnd?: boolean;
|
|
27
|
+
thinkingStatus?: 'start' | 'thinking' | 'end' | 'error';
|
|
28
|
+
thinkingContent?: string;
|
|
29
|
+
meta?: NormalObject;
|
|
30
|
+
abortController?: AbortController;
|
|
31
|
+
templateType?: string;
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
};
|
|
34
|
+
export type BubbleItem = BubbleItemBasic & __VkBubbleTemplates.RenderItem;
|
|
35
|
+
export type RoleMedia = RoleMediaBasic & __VkBubbleTemplates.RenderItem;
|
|
36
|
+
export type BubbleItemModule = 'Thinking';
|
|
37
|
+
export interface BubbleItemBasic extends BubbleMessage {
|
|
38
|
+
key: string;
|
|
39
|
+
modules?: BubbleItemModule[];
|
|
40
|
+
}
|
|
41
|
+
export interface RoleMediaBasic extends Partial<BubbleItemBasic>, Media {
|
|
42
|
+
value: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFn } from 'ant-design-x-vue';
|
|
2
|
+
import type { AgentMessage, BubbleItem, BubbleMessage, Parser } from './types';
|
|
3
|
+
export declare function useAgent(request: RequestFn<AgentMessage>): import("vue").ComputedRef<import("ant-design-x-vue").XAgent<AgentMessage>>[];
|
|
4
|
+
export declare function initAgentChat(request: RequestFn<AgentMessage>, parser: Parser): {
|
|
5
|
+
agent: import("vue").ComputedRef<import("ant-design-x-vue").XAgent<AgentMessage>>;
|
|
6
|
+
chat: {
|
|
7
|
+
readonly onRequest: (value: AgentMessage) => void;
|
|
8
|
+
readonly messages: import("vue").Ref<import("ant-design-x-vue").MessageInfo<AgentMessage>[], import("ant-design-x-vue").MessageInfo<AgentMessage>[]>;
|
|
9
|
+
readonly parsedMessages: import("vue").ComputedRef<import("ant-design-x-vue").MessageInfo<BubbleMessage>[]>;
|
|
10
|
+
readonly setMessages: (updater: import("ant-design-x-vue").MessageInfo<AgentMessage>[] | ((prev: import("ant-design-x-vue").MessageInfo<AgentMessage>[]) => import("ant-design-x-vue").MessageInfo<AgentMessage>[])) => void;
|
|
11
|
+
};
|
|
12
|
+
simplicity: {
|
|
13
|
+
onRequest: (message: string) => void;
|
|
14
|
+
items: import("vue").ComputedRef<BubbleItem[]>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function useAgentChat(): {
|
|
18
|
+
agent: import("vue").ComputedRef<import("ant-design-x-vue").XAgent<AgentMessage>>;
|
|
19
|
+
chat: {
|
|
20
|
+
readonly onRequest: (value: AgentMessage) => void;
|
|
21
|
+
readonly messages: import("vue").Ref<import("ant-design-x-vue").MessageInfo<AgentMessage>[], import("ant-design-x-vue").MessageInfo<AgentMessage>[]>;
|
|
22
|
+
readonly parsedMessages: import("vue").ComputedRef<import("ant-design-x-vue").MessageInfo<BubbleMessage>[]>;
|
|
23
|
+
readonly setMessages: (updater: import("ant-design-x-vue").MessageInfo<AgentMessage>[] | ((prev: import("ant-design-x-vue").MessageInfo<AgentMessage>[]) => import("ant-design-x-vue").MessageInfo<AgentMessage>[])) => void;
|
|
24
|
+
};
|
|
25
|
+
simplicity: {
|
|
26
|
+
onRequest: (message: string) => void;
|
|
27
|
+
items: import("vue").ComputedRef<BubbleItem[]>;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number, "", boolean>;
|
|
3
|
+
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
4
|
+
readonly icon: {
|
|
5
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown>>;
|
|
6
|
+
readonly required: false;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
|
+
__epPropKey: true;
|
|
9
|
+
};
|
|
10
|
+
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
11
|
+
readonly alt: StringConstructor;
|
|
12
|
+
readonly srcSet: StringConstructor;
|
|
13
|
+
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => ObjectFitProperty) | ((new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => ObjectFitProperty))[], unknown, unknown, "cover", boolean>;
|
|
14
|
+
} & {
|
|
15
|
+
background: never;
|
|
16
|
+
color: never;
|
|
17
|
+
};
|
|
18
|
+
export declare const emits: {};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number, "", boolean>;
|
|
3
|
+
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
4
|
+
readonly icon: {
|
|
5
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown>>;
|
|
6
|
+
readonly required: false;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
|
+
__epPropKey: true;
|
|
9
|
+
};
|
|
10
|
+
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
11
|
+
readonly alt: StringConstructor;
|
|
12
|
+
readonly srcSet: StringConstructor;
|
|
13
|
+
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => ObjectFitProperty) | ((new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => ObjectFitProperty))[], unknown, unknown, "cover", boolean>;
|
|
14
|
+
} & {
|
|
15
|
+
background: never;
|
|
16
|
+
color: never;
|
|
17
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number, "", boolean>;
|
|
19
|
+
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
20
|
+
readonly icon: {
|
|
21
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown>>;
|
|
22
|
+
readonly required: false;
|
|
23
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
|
+
__epPropKey: true;
|
|
25
|
+
};
|
|
26
|
+
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
27
|
+
readonly alt: StringConstructor;
|
|
28
|
+
readonly srcSet: StringConstructor;
|
|
29
|
+
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => ObjectFitProperty) | ((new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => ObjectFitProperty))[], unknown, unknown, "cover", boolean>;
|
|
30
|
+
} & {
|
|
31
|
+
background: never;
|
|
32
|
+
color: never;
|
|
33
|
+
}>> & Readonly<{}>, {
|
|
34
|
+
readonly size: import("element-plus").ButtonType<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number>;
|
|
35
|
+
readonly shape: import("element-plus").ButtonType<StringConstructor, "circle" | "square", unknown>;
|
|
36
|
+
readonly src: string;
|
|
37
|
+
readonly fit: any;
|
|
38
|
+
}, {}, {
|
|
39
|
+
ElAvatar: import("element-plus/es/utils").SFCWithInstall<{
|
|
40
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number, "", boolean>;
|
|
42
|
+
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
43
|
+
readonly icon: {
|
|
44
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown>>;
|
|
45
|
+
readonly required: false;
|
|
46
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
|
+
__epPropKey: true;
|
|
48
|
+
};
|
|
49
|
+
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
50
|
+
readonly alt: StringConstructor;
|
|
51
|
+
readonly srcSet: StringConstructor;
|
|
52
|
+
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => any) | ((new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => any))[], unknown, unknown, "cover", boolean>;
|
|
53
|
+
}>> & {
|
|
54
|
+
onError?: ((evt: Event) => any) | undefined;
|
|
55
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
56
|
+
error: (evt: Event) => void;
|
|
57
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
|
58
|
+
readonly size: import("element-plus").ButtonType<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number>;
|
|
59
|
+
readonly shape: import("element-plus").ButtonType<StringConstructor, "circle" | "square", unknown>;
|
|
60
|
+
readonly src: string;
|
|
61
|
+
readonly fit: any;
|
|
62
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
63
|
+
P: {};
|
|
64
|
+
B: {};
|
|
65
|
+
D: {};
|
|
66
|
+
C: {};
|
|
67
|
+
M: {};
|
|
68
|
+
Defaults: {};
|
|
69
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
+
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number, "", boolean>;
|
|
71
|
+
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
72
|
+
readonly icon: {
|
|
73
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown>>;
|
|
74
|
+
readonly required: false;
|
|
75
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
76
|
+
__epPropKey: true;
|
|
77
|
+
};
|
|
78
|
+
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
79
|
+
readonly alt: StringConstructor;
|
|
80
|
+
readonly srcSet: StringConstructor;
|
|
81
|
+
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => any) | ((new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => any))[], unknown, unknown, "cover", boolean>;
|
|
82
|
+
}>> & {
|
|
83
|
+
onError?: ((evt: Event) => any) | undefined;
|
|
84
|
+
}, {}, {}, {}, {}, {
|
|
85
|
+
readonly size: import("element-plus").ButtonType<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number>;
|
|
86
|
+
readonly shape: import("element-plus").ButtonType<StringConstructor, "circle" | "square", unknown>;
|
|
87
|
+
readonly src: string;
|
|
88
|
+
readonly fit: any;
|
|
89
|
+
}>;
|
|
90
|
+
__isFragment?: undefined;
|
|
91
|
+
__isTeleport?: undefined;
|
|
92
|
+
__isSuspense?: undefined;
|
|
93
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
94
|
+
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number, "", boolean>;
|
|
95
|
+
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
96
|
+
readonly icon: {
|
|
97
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown>>;
|
|
98
|
+
readonly required: false;
|
|
99
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
100
|
+
__epPropKey: true;
|
|
101
|
+
};
|
|
102
|
+
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
103
|
+
readonly alt: StringConstructor;
|
|
104
|
+
readonly srcSet: StringConstructor;
|
|
105
|
+
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => any) | ((new (...args: any[]) => "initial" | "fill" | "cover" | "contain" | "none" | "scale-down" | "-moz-initial" | "inherit" | "revert" | "unset") | (() => any))[], unknown, unknown, "cover", boolean>;
|
|
106
|
+
}>> & {
|
|
107
|
+
onError?: ((evt: Event) => any) | undefined;
|
|
108
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
109
|
+
error: (evt: Event) => void;
|
|
110
|
+
}, string, {
|
|
111
|
+
readonly size: import("element-plus").ButtonType<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number>;
|
|
112
|
+
readonly shape: import("element-plus").ButtonType<StringConstructor, "circle" | "square", unknown>;
|
|
113
|
+
readonly src: string;
|
|
114
|
+
readonly fit: any;
|
|
115
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
116
|
+
$slots: {
|
|
117
|
+
default?(_: {}): any;
|
|
118
|
+
};
|
|
119
|
+
})>;
|
|
120
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
121
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import VkBroadcastingMarkdown from './src/index.vue';
|
|
2
|
+
export * from './src/const';
|
|
3
|
+
export * as _VkBroadcastingMarkdownCtx from './src/ctx';
|
|
4
|
+
export * as __VkBroadcastingMarkdown from './src/types';
|
|
5
|
+
export { useHowlerParagraph } from './src/use';
|
|
6
|
+
export { VkBroadcastingMarkdown, };
|
|
7
|
+
export default VkBroadcastingMarkdown;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
2
|
+
export declare function defaultRender(mdText: string): string;
|
|
3
|
+
export declare enum ParagraphStatus {
|
|
4
|
+
initial = "initial",
|
|
5
|
+
/**
|
|
6
|
+
* @description 处理中, 通常用于需要对段落进行异步处理
|
|
7
|
+
*/
|
|
8
|
+
processing = "processing",
|
|
9
|
+
pending = "pending",
|
|
10
|
+
fulfilled = "fulfilled",
|
|
11
|
+
rejected = "rejected"
|
|
12
|
+
}
|
|
13
|
+
export declare const Broadcast: typeof TickerStatus;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { SetDataEvent } from '@vunk/core';
|
|
2
|
+
import type { Deferred } from '@vunk/shared/promise';
|
|
3
|
+
import type { PropType } from 'vue';
|
|
4
|
+
import type { Paragraph, ParagraphLoadEvent, TextToSpeech } from './types';
|
|
5
|
+
import { TickerStatus } from '@vunk/shared/enum';
|
|
6
|
+
import { defaultRender } from './const';
|
|
7
|
+
export declare const props: {
|
|
8
|
+
/**
|
|
9
|
+
* @description md文本转纯文本的函数
|
|
10
|
+
*/
|
|
11
|
+
render: {
|
|
12
|
+
type: PropType<(text: string) => string>;
|
|
13
|
+
default: typeof defaultRender;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @description 段落详情
|
|
17
|
+
*/
|
|
18
|
+
data: {
|
|
19
|
+
type: {
|
|
20
|
+
(arrayLength: number): Paragraph[];
|
|
21
|
+
(...items: Paragraph[]): Paragraph[];
|
|
22
|
+
new (arrayLength: number): Paragraph[];
|
|
23
|
+
new (...items: Paragraph[]): Paragraph[];
|
|
24
|
+
isArray(arg: any): arg is any[];
|
|
25
|
+
readonly prototype: any[];
|
|
26
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
27
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
28
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
29
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
30
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
31
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
32
|
+
};
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @description md 文本
|
|
37
|
+
*/
|
|
38
|
+
source: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @description 游标阅读延迟
|
|
44
|
+
*/
|
|
45
|
+
delay: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
default: number;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @description 段落切割符号
|
|
51
|
+
*/
|
|
52
|
+
separators: {
|
|
53
|
+
type: {
|
|
54
|
+
(arrayLength: number): string[];
|
|
55
|
+
(...items: string[]): string[];
|
|
56
|
+
new (arrayLength: number): string[];
|
|
57
|
+
new (...items: string[]): string[];
|
|
58
|
+
isArray(arg: any): arg is any[];
|
|
59
|
+
readonly prototype: any[];
|
|
60
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
61
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
62
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
63
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
64
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
65
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
66
|
+
};
|
|
67
|
+
default: () => string[];
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @description 组件内会根据当前游标是否和 source 长度一致来判断,是否持续阅读, 当一致时,会关闭阅读状态。但若设置为 true,则会持续阅读, 这在动态接收数据时会有用
|
|
71
|
+
*/
|
|
72
|
+
keepRead: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @description 是否使用自定义语音合成
|
|
78
|
+
*/
|
|
79
|
+
textToSpeech: {
|
|
80
|
+
type: PropType<TextToSpeech>;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* @description 段落处理函数
|
|
85
|
+
*/
|
|
86
|
+
processing: {
|
|
87
|
+
type: PropType<(paragraph: Paragraph) => void>;
|
|
88
|
+
default: import("@vunk/shared").AnyFunc;
|
|
89
|
+
};
|
|
90
|
+
status: {
|
|
91
|
+
type: PropType<TickerStatus>;
|
|
92
|
+
default: TickerStatus;
|
|
93
|
+
};
|
|
94
|
+
paragraphMinlength: {
|
|
95
|
+
type: NumberConstructor;
|
|
96
|
+
default: number;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export declare const emits: {
|
|
100
|
+
setData: (e: SetDataEvent) => SetDataEvent;
|
|
101
|
+
interrupt: null;
|
|
102
|
+
'update:broadcasting': (_: boolean) => boolean;
|
|
103
|
+
'update:completed': (_: boolean) => boolean;
|
|
104
|
+
'update:error': (_: boolean) => boolean;
|
|
105
|
+
'update:status': (_: TickerStatus) => boolean;
|
|
106
|
+
paragraphLoad: (_: ParagraphLoadEvent) => boolean;
|
|
107
|
+
};
|
|
108
|
+
export declare const paragraphProps: {
|
|
109
|
+
data: {
|
|
110
|
+
type: PropType<Paragraph>;
|
|
111
|
+
default: () => {};
|
|
112
|
+
};
|
|
113
|
+
deferred: {
|
|
114
|
+
type: PropType<Deferred<any>>;
|
|
115
|
+
required: true;
|
|
116
|
+
};
|
|
117
|
+
render: {
|
|
118
|
+
type: PropType<(text: string) => string>;
|
|
119
|
+
default: typeof defaultRender;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export declare const paragraphEmits: {
|
|
123
|
+
setData: (e: SetDataEvent<keyof Paragraph>) => SetDataEvent<keyof Paragraph>;
|
|
124
|
+
load: (_: ParagraphLoadEvent) => boolean;
|
|
125
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
data: {
|
|
3
|
+
type: import("vue").PropType<import("./types").Paragraph>;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
deferred: {
|
|
7
|
+
type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
render: {
|
|
11
|
+
type: import("vue").PropType<(text: string) => string>;
|
|
12
|
+
default: typeof import("./const").defaultRender;
|
|
13
|
+
};
|
|
14
|
+
}>, (() => null) | (() => JSX.Element), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
setData: (e: import("@vunk/core").SetDataEvent<keyof import("./types").Paragraph>) => import("@vunk/core").SetDataEvent<keyof import("./types").Paragraph>;
|
|
16
|
+
load: (_: import("./types").ParagraphLoadEvent) => boolean;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
data: {
|
|
19
|
+
type: import("vue").PropType<import("./types").Paragraph>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
deferred: {
|
|
23
|
+
type: import("vue").PropType<import("@vunk/shared/promise").Deferred<any>>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
render: {
|
|
27
|
+
type: import("vue").PropType<(text: string) => string>;
|
|
28
|
+
default: typeof import("./const").defaultRender;
|
|
29
|
+
};
|
|
30
|
+
}>> & Readonly<{
|
|
31
|
+
onSetData?: ((e: import("@vunk/core").SetDataEvent<keyof import("./types").Paragraph>) => any) | undefined;
|
|
32
|
+
onLoad?: ((_: import("./types").ParagraphLoadEvent) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
render: (text: string) => string;
|
|
35
|
+
data: import("./types").Paragraph;
|
|
36
|
+
}, {}, {
|
|
37
|
+
SpeechError: import("vue").DefineComponent<{}, {
|
|
38
|
+
readonly CloseBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
39
|
+
readonly ElIcon: import("element-plus/es/utils").SFCWithInstall<{
|
|
40
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
readonly size: {
|
|
42
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
43
|
+
readonly required: false;
|
|
44
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
45
|
+
__epPropKey: true;
|
|
46
|
+
};
|
|
47
|
+
readonly color: {
|
|
48
|
+
readonly type: import("vue").PropType<string>;
|
|
49
|
+
readonly required: false;
|
|
50
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
51
|
+
__epPropKey: true;
|
|
52
|
+
};
|
|
53
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
54
|
+
P: {};
|
|
55
|
+
B: {};
|
|
56
|
+
D: {};
|
|
57
|
+
C: {};
|
|
58
|
+
M: {};
|
|
59
|
+
Defaults: {};
|
|
60
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
+
readonly size: {
|
|
62
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
63
|
+
readonly required: false;
|
|
64
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
65
|
+
__epPropKey: true;
|
|
66
|
+
};
|
|
67
|
+
readonly color: {
|
|
68
|
+
readonly type: import("vue").PropType<string>;
|
|
69
|
+
readonly required: false;
|
|
70
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
|
+
__epPropKey: true;
|
|
72
|
+
};
|
|
73
|
+
}>>, {}, {}, {}, {}, {}>;
|
|
74
|
+
__isFragment?: undefined;
|
|
75
|
+
__isTeleport?: undefined;
|
|
76
|
+
__isSuspense?: undefined;
|
|
77
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
78
|
+
readonly size: {
|
|
79
|
+
readonly type: import("vue").PropType<import("element-plus").ButtonType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
80
|
+
readonly required: false;
|
|
81
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
|
+
__epPropKey: true;
|
|
83
|
+
};
|
|
84
|
+
readonly color: {
|
|
85
|
+
readonly type: import("vue").PropType<string>;
|
|
86
|
+
readonly required: false;
|
|
87
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
|
+
__epPropKey: true;
|
|
89
|
+
};
|
|
90
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
91
|
+
$slots: {
|
|
92
|
+
default?(_: {}): any;
|
|
93
|
+
};
|
|
94
|
+
})>;
|
|
95
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
96
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
97
|
+
export default _default;
|