@vunk/plus 1.2.2 → 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 +2 -2
- package/components/agent-chat-provider/index.d.ts +7 -0
- package/components/agent-chat-provider/index.mjs +789 -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.mjs +2 -2
- package/components/avatar/src/ctx.d.ts +4 -4
- package/components/avatar/src/index.vue.d.ts +66 -125
- package/components/broadcasting-markdown/index.css +3 -0
- package/components/broadcasting-markdown/index.d.ts +5 -0
- package/components/broadcasting-markdown/index.mjs +637 -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.css +18 -0
- package/components/bubble-list/index.d.ts +5 -0
- package/components/bubble-list/index.mjs +386 -0
- 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.css +18 -0
- package/components/bubble-templates/index.d.ts +4 -0
- package/components/bubble-templates/index.mjs +258 -0
- 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.css +47 -0
- package/components/chat-independent/index.d.ts +4 -0
- package/components/chat-independent/index.mjs +184 -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 +1 -0
- package/components/index2.mjs +35980 -0
- package/components/lottie-animation/index.mjs +2 -2
- package/components/lottie-animation/src/index.vue.d.ts +1 -1
- package/components/monaco-editor/index.mjs +2 -2
- package/components/monaco-editor/src/ctx.d.ts +3 -3
- package/components/monaco-editor/src/index.vue.d.ts +3 -3
- package/components/monaco-environment/index.mjs +1 -1
- package/components/recorder-button/index.css +7 -10
- package/components/recorder-button/index.mjs +115 -83
- package/components/recorder-button/src/ctx.d.ts +27 -6
- package/components/recorder-button/src/index.vue.d.ts +196 -202
- package/components/recorder-button/src/types.d.ts +1 -0
- package/components/routes-menu-content/index.mjs +5 -5
- package/components/routes-menu-content/src/ctx.d.ts +1 -1
- package/components/routes-menu-content/src/index.vue.d.ts +223 -101
- package/components/routes-menu-content/src/item/core/ctx.d.ts +1 -1
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +175 -53
- package/components/routes-menu-content/src/item/index.vue.d.ts +221 -99
- package/components/sender/index.css +2 -5
- package/components/sender/index.mjs +32 -13
- package/components/sender/src/SenderHeader.vue.d.ts +31 -45
- package/components/sender/src/ctx.d.ts +23 -3
- package/components/sender/src/index.vue.d.ts +170 -124
- package/components/sender/src/types.d.ts +1 -1
- package/components/speech-button/index.mjs +7 -14
- package/components/speech-button/src/ctx.d.ts +1 -1
- package/components/speech-button/src/index.vue.d.ts +3 -3
- package/components/table-columns/index.d.ts +1 -1
- package/components/table-columns/index.mjs +3 -6
- package/components/table-columns/src/ctx.d.ts +8 -8
- package/components/table-columns/src/el-ctx.d.ts +7 -7
- package/components/table-columns/src/index.vue.d.ts +38 -36
- package/components/tables-v1/index.mjs +3 -3
- package/components/tables-v1/src/ctx.d.ts +66 -68
- package/components/tables-v1/src/el-ctx.d.ts +48 -51
- package/components/tables-v1/src/index.vue.d.ts +1950 -1933
- package/components/tables-v1-checkbox/index.mjs +269 -33
- package/components/tables-v1-checkbox/src/ctx.d.ts +65 -67
- package/components/tables-v1-checkbox/src/index.vue.d.ts +2167 -2159
- package/components/typing-markdown/index.mjs +128 -33
- package/components/typing-markdown/src/core.d.ts +2 -3
- package/components/typing-markdown/src/ctx.d.ts +5 -5
- package/components/typing-markdown/src/index.vue.d.ts +9 -9
- package/components/vditor/index.mjs +5 -9
- package/components/vditor/src/ctx.d.ts +2 -2
- package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -3
- package/components/vditor/src/handle-value.vue.d.ts +3 -3
- package/components/vditor/src/index.vue.d.ts +11 -11
- package/composables/el-breakpoints/index.d.ts +1 -1
- package/composables/recorder/index.mjs +751 -182
- package/icons/_plugin-vue_export-helper.mjs +9 -0
- package/icons/end/index.d.ts +4 -0
- package/icons/end/index.mjs +36 -0
- package/icons/end/src/avatar.d.ts +12 -0
- package/icons/end/src/icon.d.ts +57 -0
- package/icons/keyboard/index.d.ts +4 -0
- package/icons/keyboard/index.mjs +36 -0
- package/icons/keyboard/src/avatar.d.ts +12 -0
- package/icons/keyboard/src/icon.d.ts +57 -0
- package/icons/start/index.d.ts +4 -0
- package/icons/start/index.mjs +36 -0
- package/icons/start/src/avatar.d.ts +12 -0
- package/icons/start/src/icon.d.ts +57 -0
- package/icons/voice/index.d.ts +4 -0
- package/icons/voice/index.mjs +51 -0
- package/icons/voice/src/avatar.d.ts +12 -0
- package/icons/voice/src/icon.d.ts +57 -0
- package/icons/voice/src/index.vue.d.ts +4 -0
- package/index.css +99 -15
- package/package.json +51 -7
- package/fetch/PlusFetch/index.d.ts +0 -14
- package/fetch/PlusFetch/index.mjs +0 -638
- package/fetch/PlusFetch/types.d.ts +0 -54
- package/fetch/index.d.ts +0 -1
- package/fetch/index.mjs +0 -5
|
@@ -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, Parser } from './types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
request: {
|
|
6
|
+
type: PropType<AnyFunc>;
|
|
7
|
+
};
|
|
8
|
+
parser: {
|
|
9
|
+
type: PropType<Parser>;
|
|
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<Parser>;
|
|
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,37 @@
|
|
|
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 { BubbleListItemProps } from 'vue-element-plus-x/types/components/BubbleList/types';
|
|
5
|
+
import type { initAgentChat } from './use';
|
|
6
|
+
export type AgentChatContext = ReturnType<typeof initAgentChat>;
|
|
7
|
+
export type Request = RequestFn<AgentMessage>;
|
|
8
|
+
export type Parser = (message: AgentMessage) => BubbleMessage | BubbleMessage[];
|
|
9
|
+
/**
|
|
10
|
+
* @description useXAgent request onSuccess 发送的数据
|
|
11
|
+
*/
|
|
12
|
+
export type AgentMessage = BubbleMessage & {
|
|
13
|
+
seviceLoading?: boolean;
|
|
14
|
+
seviceEnd?: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @description useXChat parser 解析数据
|
|
18
|
+
*/
|
|
19
|
+
export type BubbleMessage = Partial<BubbleListItemProps> & {
|
|
20
|
+
role: string;
|
|
21
|
+
content: string;
|
|
22
|
+
seviceEnd?: boolean;
|
|
23
|
+
thinkingStatus?: 'start' | 'thinking' | 'end' | 'error';
|
|
24
|
+
thinkingContent?: string;
|
|
25
|
+
meta?: NormalObject;
|
|
26
|
+
};
|
|
27
|
+
export type BubbleItem = BubbleItemBasic & __VkBubbleTemplates.RenderItem;
|
|
28
|
+
export type RoleMedia = RoleMediaBasic & __VkBubbleTemplates.RenderItem;
|
|
29
|
+
export type BubbleItemModule = 'Thinking';
|
|
30
|
+
interface BubbleItemBasic extends BubbleMessage {
|
|
31
|
+
key: string;
|
|
32
|
+
modules?: BubbleItemModule[];
|
|
33
|
+
}
|
|
34
|
+
interface RoleMediaBasic extends Partial<BubbleItemBasic>, Media {
|
|
35
|
+
value: string;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -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
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElAvatar } from 'element-plus';
|
|
2
|
-
import { defineComponent, resolveComponent,
|
|
2
|
+
import { defineComponent, resolveComponent, createBlock, openBlock, normalizeStyle, withCtx, renderSlot } from 'vue';
|
|
3
3
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
5
|
const props = {
|
|
@@ -36,7 +36,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36
36
|
/* FORWARDED */
|
|
37
37
|
}, 8, ["style"]);
|
|
38
38
|
}
|
|
39
|
-
var VkAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]
|
|
39
|
+
var VkAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
40
40
|
|
|
41
41
|
var types = /*#__PURE__*/Object.freeze({
|
|
42
42
|
__proto__: null
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const props: {
|
|
2
|
-
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "
|
|
2
|
+
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number, "", boolean>;
|
|
3
3
|
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
4
4
|
readonly icon: {
|
|
5
|
-
readonly type: import("vue").PropType<unknown
|
|
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
6
|
readonly required: false;
|
|
7
|
-
readonly validator: (val: unknown) => boolean;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
8
|
__epPropKey: true;
|
|
9
9
|
};
|
|
10
10
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
11
11
|
readonly alt: StringConstructor;
|
|
12
12
|
readonly srcSet: StringConstructor;
|
|
13
|
-
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
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
14
|
} & {
|
|
15
15
|
background: never;
|
|
16
16
|
color: never;
|
|
@@ -1,180 +1,121 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "
|
|
2
|
+
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number, "", boolean>;
|
|
3
3
|
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
4
4
|
readonly icon: {
|
|
5
|
-
readonly type: import("vue").PropType<unknown
|
|
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
6
|
readonly required: false;
|
|
7
|
-
readonly validator: (val: unknown) => boolean;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
8
|
__epPropKey: true;
|
|
9
9
|
};
|
|
10
10
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
11
11
|
readonly alt: StringConstructor;
|
|
12
12
|
readonly srcSet: StringConstructor;
|
|
13
|
-
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
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
14
|
} & {
|
|
15
15
|
background: never;
|
|
16
16
|
color: never;
|
|
17
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], "" | "
|
|
18
|
+
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number, "", boolean>;
|
|
19
19
|
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
20
20
|
readonly icon: {
|
|
21
|
-
readonly type: import("vue").PropType<unknown
|
|
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
22
|
readonly required: false;
|
|
23
|
-
readonly validator: (val: unknown) => boolean;
|
|
23
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
24
|
__epPropKey: true;
|
|
25
25
|
};
|
|
26
26
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
27
27
|
readonly alt: StringConstructor;
|
|
28
28
|
readonly srcSet: StringConstructor;
|
|
29
|
-
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
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
30
|
} & {
|
|
31
31
|
background: never;
|
|
32
32
|
color: never;
|
|
33
33
|
}>> & Readonly<{}>, {
|
|
34
|
-
readonly size: import("element-plus").ButtonType<readonly [NumberConstructor, StringConstructor], "" | "
|
|
34
|
+
readonly size: import("element-plus").ButtonType<readonly [NumberConstructor, StringConstructor], "" | "small" | "default" | "large", number>;
|
|
35
35
|
readonly shape: import("element-plus").ButtonType<StringConstructor, "circle" | "square", unknown>;
|
|
36
36
|
readonly src: string;
|
|
37
37
|
readonly fit: any;
|
|
38
38
|
}, {}, {
|
|
39
|
-
ElAvatar: import("element-plus/es/utils").SFCWithInstall<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
readonly icon: {
|
|
43
|
-
readonly type: import("vue").PropType<unknown>;
|
|
44
|
-
readonly required: false;
|
|
45
|
-
readonly validator: (val: unknown) => boolean;
|
|
46
|
-
__epPropKey: true;
|
|
47
|
-
};
|
|
48
|
-
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
49
|
-
readonly alt: StringConstructor;
|
|
50
|
-
readonly srcSet: StringConstructor;
|
|
51
|
-
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any) | (() => any) | ((new (...args: any[]) => any) | (() => any))[], unknown, unknown, "cover", boolean>;
|
|
52
|
-
}, {
|
|
53
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
-
readonly size: import("element-plus/es/utils").EpPropFinalized<readonly [NumberConstructor, StringConstructor], "" | "default" | "small" | "large", number, "", boolean>;
|
|
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>;
|
|
55
42
|
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
56
43
|
readonly icon: {
|
|
57
|
-
readonly type: import("vue").PropType<unknown
|
|
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>>;
|
|
58
45
|
readonly required: false;
|
|
59
|
-
readonly validator: (val: unknown) => boolean;
|
|
46
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
60
47
|
__epPropKey: true;
|
|
61
48
|
};
|
|
62
49
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
63
50
|
readonly alt: StringConstructor;
|
|
64
51
|
readonly srcSet: StringConstructor;
|
|
65
|
-
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
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>;
|
|
66
53
|
}>> & {
|
|
67
|
-
onError?: (evt: Event) => any;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
};
|
|
88
|
-
hasLoadError: import("vue").Ref<boolean, boolean>;
|
|
89
|
-
avatarClass: import("vue").ComputedRef<string[]>;
|
|
90
|
-
sizeStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
91
|
-
fitStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
92
|
-
handleError: (e: Event) => void;
|
|
93
|
-
ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
94
|
-
readonly size: {
|
|
95
|
-
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>>;
|
|
96
|
-
readonly required: false;
|
|
97
|
-
readonly validator: (val: unknown) => boolean;
|
|
98
|
-
__epPropKey: true;
|
|
99
|
-
};
|
|
100
|
-
readonly color: {
|
|
101
|
-
readonly type: import("vue").PropType<string>;
|
|
102
|
-
readonly required: false;
|
|
103
|
-
readonly validator: (val: unknown) => boolean;
|
|
104
|
-
__epPropKey: true;
|
|
105
|
-
};
|
|
106
|
-
}, {
|
|
107
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
108
|
-
readonly size: {
|
|
109
|
-
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>>;
|
|
110
|
-
readonly required: false;
|
|
111
|
-
readonly validator: (val: unknown) => boolean;
|
|
112
|
-
__epPropKey: true;
|
|
113
|
-
};
|
|
114
|
-
readonly color: {
|
|
115
|
-
readonly type: import("vue").PropType<string>;
|
|
116
|
-
readonly required: false;
|
|
117
|
-
readonly validator: (val: unknown) => boolean;
|
|
118
|
-
__epPropKey: true;
|
|
119
|
-
};
|
|
120
|
-
}>> & {
|
|
121
|
-
[x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any);
|
|
122
|
-
}>>;
|
|
123
|
-
ns: {
|
|
124
|
-
namespace: import("vue").ComputedRef<string>;
|
|
125
|
-
b: (blockSuffix?: string) => string;
|
|
126
|
-
e: (element?: string) => string;
|
|
127
|
-
m: (modifier?: string) => string;
|
|
128
|
-
be: (blockSuffix?: string, element?: string) => string;
|
|
129
|
-
em: (element?: string, modifier?: string) => string;
|
|
130
|
-
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
131
|
-
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
|
132
|
-
is: {
|
|
133
|
-
(name: string, state: boolean): string;
|
|
134
|
-
(name: string): string;
|
|
135
|
-
};
|
|
136
|
-
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
137
|
-
cssVarName: (name: string) => string;
|
|
138
|
-
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
139
|
-
cssVarBlockName: (name: string) => string;
|
|
140
|
-
};
|
|
141
|
-
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
142
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
143
|
-
readonly size: {
|
|
144
|
-
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>>;
|
|
145
|
-
readonly required: false;
|
|
146
|
-
readonly validator: (val: unknown) => boolean;
|
|
147
|
-
__epPropKey: true;
|
|
148
|
-
};
|
|
149
|
-
readonly color: {
|
|
150
|
-
readonly type: import("vue").PropType<string>;
|
|
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>>;
|
|
151
74
|
readonly required: false;
|
|
152
|
-
readonly validator: (val: unknown) => boolean;
|
|
75
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
153
76
|
__epPropKey: true;
|
|
154
77
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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>;
|
|
160
95
|
readonly shape: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "circle" | "square", unknown, "circle", boolean>;
|
|
161
96
|
readonly icon: {
|
|
162
|
-
readonly type: import("vue").PropType<unknown
|
|
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>>;
|
|
163
98
|
readonly required: false;
|
|
164
|
-
readonly validator: (val: unknown) => boolean;
|
|
99
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
165
100
|
__epPropKey: true;
|
|
166
101
|
};
|
|
167
102
|
readonly src: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
168
103
|
readonly alt: StringConstructor;
|
|
169
104
|
readonly srcSet: StringConstructor;
|
|
170
|
-
readonly fit: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) =>
|
|
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>;
|
|
171
106
|
}>> & {
|
|
172
|
-
onError?: (evt: Event) => any;
|
|
173
|
-
}, {
|
|
174
|
-
|
|
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>;
|
|
175
112
|
readonly shape: import("element-plus").ButtonType<StringConstructor, "circle" | "square", unknown>;
|
|
176
113
|
readonly src: string;
|
|
177
114
|
readonly fit: any;
|
|
178
|
-
}, {},
|
|
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
|
+
})>;
|
|
179
120
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
180
121
|
export default _default;
|