@vunk/plus 1.3.14 → 1.4.0
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/WebGLRenderer.mjs +0 -1
- package/components/WebGPURenderer.mjs +0 -1
- package/components/agent-chat-provider/index.mjs +1 -5
- package/components/broadcasting-markdown/index.mjs +574 -1
- package/components/browserAll.mjs +0 -1
- package/components/index2.mjs +38 -17
- package/components/pixi-frame/index.mjs +0 -1
- package/components/sender/index.mjs +1 -1
- package/components/webworkerAll.mjs +0 -1
- package/package.json +1 -1
- package/components/agent-chat-provider/index.d.ts +0 -7
- package/components/agent-chat-provider/src/api.d.ts +0 -3
- package/components/agent-chat-provider/src/const-roles.d.ts +0 -8
- package/components/agent-chat-provider/src/const.d.ts +0 -1
- package/components/agent-chat-provider/src/index.vue.d.ts +0 -47
- package/components/agent-chat-provider/src/types.d.ts +0 -43
- package/components/agent-chat-provider/src/use.d.ts +0 -29
- package/components/avatar/index.d.ts +0 -4
- package/components/avatar/src/ctx.d.ts +0 -18
- package/components/avatar/src/index.vue.d.ts +0 -121
- package/components/avatar/src/types.d.ts +0 -1
- package/components/broadcasting-markdown/index.d.ts +0 -7
- package/components/broadcasting-markdown/src/const.d.ts +0 -13
- package/components/broadcasting-markdown/src/ctx.d.ts +0 -115
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +0 -97
- package/components/broadcasting-markdown/src/index.vue.d.ts +0 -383
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +0 -79
- package/components/broadcasting-markdown/src/speech-error.vue.d.ts +0 -60
- package/components/broadcasting-markdown/src/types.d.ts +0 -25
- package/components/broadcasting-markdown/src/use.d.ts +0 -21
- package/components/browser.mjs +0 -575
- package/components/bubble-list/index.d.ts +0 -5
- package/components/bubble-list/src/ctx.d.ts +0 -30
- package/components/bubble-list/src/index.vue.d.ts +0 -867
- package/components/bubble-list/src/types.d.ts +0 -4
- package/components/bubble-templates/index.d.ts +0 -4
- package/components/bubble-templates/src/index.vue.d.ts +0 -539
- package/components/bubble-templates/src/types.d.ts +0 -40
- package/components/chat-independent/index.d.ts +0 -4
- package/components/chat-independent/src/const.d.ts +0 -13
- package/components/chat-independent/src/ctx.d.ts +0 -20
- package/components/chat-independent/src/index.vue.d.ts +0 -2343
- package/components/chat-independent/src/types.d.ts +0 -13
- package/components/index.d.ts +0 -0
- package/components/lottie-animation/index.d.ts +0 -4
- package/components/lottie-animation/src/ctx.d.ts +0 -10
- package/components/lottie-animation/src/index.vue.d.ts +0 -21
- package/components/lottie-animation/src/types.d.ts +0 -4
- package/components/monaco-editor/index.d.ts +0 -5
- package/components/monaco-editor/src/ctx.d.ts +0 -23
- package/components/monaco-editor/src/index.vue.d.ts +0 -40
- package/components/monaco-editor/src/types.d.ts +0 -1
- package/components/monaco-environment/index.d.ts +0 -4
- package/components/monaco-environment/src/ctx.d.ts +0 -8
- package/components/monaco-environment/src/index.vue.d.ts +0 -2
- package/components/monaco-environment/src/types.d.ts +0 -1
- package/components/pixi-frame/index.d.ts +0 -8
- package/components/pixi-frame/src/core.vue.d.ts +0 -127
- package/components/pixi-frame/src/ctx.d.ts +0 -41
- package/components/pixi-frame/src/index.vue.d.ts +0 -222
- package/components/pixi-frame/src/provider.vue.d.ts +0 -2
- package/components/pixi-frame/src/types.d.ts +0 -1
- package/components/pixi-frame/src/use.d.ts +0 -3
- package/components/pixi-frame/src/view.vue.d.ts +0 -25
- package/components/recorder-button/index.d.ts +0 -4
- package/components/recorder-button/src/ctx.d.ts +0 -41
- package/components/recorder-button/src/index.vue.d.ts +0 -300
- package/components/recorder-button/src/speech-to-text.d.ts +0 -1
- package/components/recorder-button/src/types.d.ts +0 -7
- package/components/routes-menu-content/index.d.ts +0 -4
- package/components/routes-menu-content/src/ctx.d.ts +0 -17
- package/components/routes-menu-content/src/index.vue.d.ts +0 -472
- package/components/routes-menu-content/src/item/core/ctx.d.ts +0 -18
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +0 -307
- package/components/routes-menu-content/src/item/ctx.d.ts +0 -14
- package/components/routes-menu-content/src/item/index.vue.d.ts +0 -438
- package/components/routes-menu-content/src/types.d.ts +0 -1
- package/components/sender/index.d.ts +0 -4
- package/components/sender/src/SenderHeader.vue.d.ts +0 -256
- package/components/sender/src/ctx.d.ts +0 -62
- package/components/sender/src/index.vue.d.ts +0 -787
- package/components/sender/src/types.d.ts +0 -1
- package/components/speech-button/index.d.ts +0 -4
- package/components/speech-button/src/LoadingIcon.vue.d.ts +0 -2
- package/components/speech-button/src/RecordingIcon.vue.d.ts +0 -2
- package/components/speech-button/src/ctx.d.ts +0 -10
- package/components/speech-button/src/index.vue.d.ts +0 -22
- package/components/speech-button/src/types.d.ts +0 -1
- package/components/table-columns/index.d.ts +0 -5
- package/components/table-columns/src/ctx.d.ts +0 -66
- package/components/table-columns/src/el-ctx.d.ts +0 -63
- package/components/table-columns/src/index.vue.d.ts +0 -282
- package/components/table-columns/src/types.d.ts +0 -21
- package/components/tables-v1/index.d.ts +0 -5
- package/components/tables-v1/src/ctx.d.ts +0 -281
- package/components/tables-v1/src/el-ctx.d.ts +0 -269
- package/components/tables-v1/src/index.vue.d.ts +0 -3014
- package/components/tables-v1/src/types.d.ts +0 -4
- package/components/tables-v1-checkbox/index.d.ts +0 -5
- package/components/tables-v1-checkbox/src/ctx.d.ts +0 -321
- package/components/tables-v1-checkbox/src/index.vue.d.ts +0 -3796
- package/components/tables-v1-checkbox/src/types.d.ts +0 -1
- package/components/typing-markdown/index.d.ts +0 -4
- package/components/typing-markdown/src/core.d.ts +0 -2
- package/components/typing-markdown/src/ctx.d.ts +0 -33
- package/components/typing-markdown/src/index.vue.d.ts +0 -57
- package/components/typing-markdown/src/types.d.ts +0 -1
- package/components/vditor/index.d.ts +0 -5
- package/components/vditor/src/ctx.d.ts +0 -37
- package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
- package/components/vditor/src/handle-value.vue.d.ts +0 -18
- package/components/vditor/src/index.vue.d.ts +0 -144
- package/components/vditor/src/types.d.ts +0 -9
- package/components/vditor/src/use.d.ts +0 -4
package/components/index2.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { inject, provide, defineComponent, useId, watchEffect, ref, onBeforeUnmount, renderSlot, onMounted, createElementBlock, openBlock, resolveComponent, createBlock, withCtx, createVNode, mergeProps } from 'vue';
|
|
2
2
|
import { TickerStatus } from '@vunk/shared/enum';
|
|
3
|
-
import { sleep } from '@vunk/shared/promise';
|
|
4
|
-
import { c as consola } from './browser.mjs';
|
|
3
|
+
import { Deferred, sleep } from '@vunk/shared/promise';
|
|
5
4
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
|
|
6
5
|
import { _ as _export_sfc } from './_plugin-vue_export-helper.mjs';
|
|
7
6
|
|
|
@@ -21008,6 +21007,9 @@ const props = {
|
|
|
21008
21007
|
type: Boolean,
|
|
21009
21008
|
default: false
|
|
21010
21009
|
},
|
|
21010
|
+
/**
|
|
21011
|
+
* @description v-model:status 控制动画状态
|
|
21012
|
+
*/
|
|
21011
21013
|
status: {
|
|
21012
21014
|
type: String,
|
|
21013
21015
|
default: TickerStatus.pending
|
|
@@ -21025,16 +21027,24 @@ const emits = {
|
|
|
21025
21027
|
|
|
21026
21028
|
const appInjectKey = Symbol("appInjectKey");
|
|
21027
21029
|
function initPixiApp() {
|
|
21028
|
-
const
|
|
21029
|
-
|
|
21030
|
-
|
|
21030
|
+
const application = new Application();
|
|
21031
|
+
const whenDef = new Deferred();
|
|
21032
|
+
const context = {
|
|
21033
|
+
whenDef,
|
|
21034
|
+
when: () => whenDef.promise
|
|
21035
|
+
};
|
|
21036
|
+
provide(appInjectKey, {
|
|
21037
|
+
application,
|
|
21038
|
+
context
|
|
21039
|
+
});
|
|
21040
|
+
return { application, context };
|
|
21031
21041
|
}
|
|
21032
21042
|
function usePixiApp() {
|
|
21033
|
-
const
|
|
21034
|
-
if (!
|
|
21043
|
+
const core = inject(appInjectKey);
|
|
21044
|
+
if (!core) {
|
|
21035
21045
|
throw new Error("Pixi app not provided");
|
|
21036
21046
|
}
|
|
21037
|
-
return
|
|
21047
|
+
return core;
|
|
21038
21048
|
}
|
|
21039
21049
|
|
|
21040
21050
|
var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
@@ -21044,12 +21054,25 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
21044
21054
|
setup(__props, { emit: __emit }) {
|
|
21045
21055
|
const props = __props;
|
|
21046
21056
|
const emit = __emit;
|
|
21047
|
-
const app = usePixiApp();
|
|
21057
|
+
const { application: app, context } = usePixiApp();
|
|
21048
21058
|
const compId = useId();
|
|
21049
21059
|
const getAlias = (key) => `${compId}-${key}`;
|
|
21050
21060
|
const sprite = new Sprite();
|
|
21051
21061
|
app.stage.addChild(sprite);
|
|
21062
|
+
context.when().then((app2) => {
|
|
21063
|
+
if (sprite.texture) {
|
|
21064
|
+
resizeSprite();
|
|
21065
|
+
app2.renderer.on(
|
|
21066
|
+
"resize",
|
|
21067
|
+
() => {
|
|
21068
|
+
resizeSprite();
|
|
21069
|
+
}
|
|
21070
|
+
);
|
|
21071
|
+
}
|
|
21072
|
+
});
|
|
21052
21073
|
function resizeSprite() {
|
|
21074
|
+
if (!app.renderer?.screen)
|
|
21075
|
+
return;
|
|
21053
21076
|
const scaleX = app.screen.width / sprite.texture.width;
|
|
21054
21077
|
const scaleY = app.screen.height / sprite.texture.height;
|
|
21055
21078
|
const scale = Math.min(scaleX, scaleY);
|
|
@@ -21065,9 +21088,6 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
21065
21088
|
if (textureMap.has(alias)) {
|
|
21066
21089
|
continue;
|
|
21067
21090
|
}
|
|
21068
|
-
consola.info(
|
|
21069
|
-
`\u52A0\u8F7D\u7EB9\u7406 ${alias}`
|
|
21070
|
-
);
|
|
21071
21091
|
Assets.add({
|
|
21072
21092
|
alias,
|
|
21073
21093
|
src: url
|
|
@@ -21097,7 +21117,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
21097
21117
|
if (currentTexture) {
|
|
21098
21118
|
const originTexture = sprite.texture;
|
|
21099
21119
|
const originIndex = index.value - 1;
|
|
21100
|
-
if (originTexture && originIndex >= 0) {
|
|
21120
|
+
if (originTexture && originIndex >= 0 && !props.loop) {
|
|
21101
21121
|
Promise.resolve(sleep(500)).then(() => Assets.unload(
|
|
21102
21122
|
getAlias(originIndex)
|
|
21103
21123
|
)).then(() => {
|
|
@@ -21113,9 +21133,10 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
21113
21133
|
}
|
|
21114
21134
|
sprite.texture = currentTexture;
|
|
21115
21135
|
resizeSprite();
|
|
21116
|
-
index.value = index.value + 1;
|
|
21136
|
+
index.value = props.loop ? (index.value + 1) % props.data.length : index.value + 1;
|
|
21117
21137
|
} else {
|
|
21118
|
-
|
|
21138
|
+
if (!props.loop)
|
|
21139
|
+
emit("update:status", TickerStatus.paused);
|
|
21119
21140
|
}
|
|
21120
21141
|
}, 1e3 / props.frameRate);
|
|
21121
21142
|
}
|
|
@@ -21179,14 +21200,14 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
21179
21200
|
},
|
|
21180
21201
|
setup(__props) {
|
|
21181
21202
|
const props = __props;
|
|
21182
|
-
const app = usePixiApp();
|
|
21203
|
+
const { application: app, context } = usePixiApp();
|
|
21183
21204
|
const appRef = ref();
|
|
21184
21205
|
onMounted(async () => {
|
|
21185
21206
|
await app.init({
|
|
21186
21207
|
resizeTo: appRef.value,
|
|
21187
|
-
background: "#1099bb",
|
|
21188
21208
|
...props.defaultOptions
|
|
21189
21209
|
});
|
|
21210
|
+
context.whenDef.resolve(app);
|
|
21190
21211
|
appRef.value.appendChild(app.canvas);
|
|
21191
21212
|
});
|
|
21192
21213
|
return (_ctx, _cache) => {
|
|
@@ -2,6 +2,5 @@ export { aq as VkPixiFrame, ar as VkPixiFrameCore, as as VkPixiFrameProvider, at
|
|
|
2
2
|
export { TickerStatus } from '@vunk/shared/enum';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vunk/shared/promise';
|
|
5
|
-
import '../browser.mjs';
|
|
6
5
|
import '../_commonjsHelpers.mjs';
|
|
7
6
|
import '../_plugin-vue_export-helper.mjs';
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ChatAgentInjectKey = "vk_agent_chat_inject_key";
|
|
@@ -1,47 +0,0 @@
|
|
|
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;
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
/**
|
|
23
|
-
* @description 服务端请求是否完成
|
|
24
|
-
*/
|
|
25
|
-
seviceEnd?: boolean;
|
|
26
|
-
thinkingStatus?: 'start' | 'thinking' | 'end' | 'error';
|
|
27
|
-
thinkingContent?: string;
|
|
28
|
-
meta?: NormalObject;
|
|
29
|
-
abortController?: AbortController;
|
|
30
|
-
templateType?: string;
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
};
|
|
33
|
-
export type BubbleItem = BubbleItemBasic & __VkBubbleTemplates.RenderItem;
|
|
34
|
-
export type RoleMedia = RoleMediaBasic & __VkBubbleTemplates.RenderItem;
|
|
35
|
-
export type BubbleItemModule = 'Thinking';
|
|
36
|
-
interface BubbleItemBasic extends BubbleMessage {
|
|
37
|
-
key: string;
|
|
38
|
-
modules?: BubbleItemModule[];
|
|
39
|
-
}
|
|
40
|
-
export interface RoleMediaBasic extends Partial<BubbleItemBasic>, Media {
|
|
41
|
-
value: string;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
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,18 +0,0 @@
|
|
|
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: {};
|
|
@@ -1,121 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,115 +0,0 @@
|
|
|
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 { defaultRender } from './const';
|
|
6
|
-
export declare const props: {
|
|
7
|
-
/**
|
|
8
|
-
* @description md文本转纯文本的函数
|
|
9
|
-
*/
|
|
10
|
-
render: {
|
|
11
|
-
type: PropType<(text: string) => string>;
|
|
12
|
-
default: typeof defaultRender;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* @description 段落详情
|
|
16
|
-
*/
|
|
17
|
-
data: {
|
|
18
|
-
type: {
|
|
19
|
-
(arrayLength: number): Paragraph[];
|
|
20
|
-
(...items: Paragraph[]): Paragraph[];
|
|
21
|
-
new (arrayLength: number): Paragraph[];
|
|
22
|
-
new (...items: Paragraph[]): Paragraph[];
|
|
23
|
-
isArray(arg: any): arg is any[];
|
|
24
|
-
readonly prototype: any[];
|
|
25
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
26
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
27
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
28
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
29
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
30
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
31
|
-
};
|
|
32
|
-
default: undefined;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* @description md 文本
|
|
36
|
-
*/
|
|
37
|
-
source: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* @description 游标阅读延迟
|
|
43
|
-
*/
|
|
44
|
-
delay: {
|
|
45
|
-
type: NumberConstructor;
|
|
46
|
-
default: number;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* @description 段落切割符号
|
|
50
|
-
*/
|
|
51
|
-
separators: {
|
|
52
|
-
type: {
|
|
53
|
-
(arrayLength: number): string[];
|
|
54
|
-
(...items: string[]): string[];
|
|
55
|
-
new (arrayLength: number): string[];
|
|
56
|
-
new (...items: string[]): string[];
|
|
57
|
-
isArray(arg: any): arg is any[];
|
|
58
|
-
readonly prototype: any[];
|
|
59
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
60
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
61
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
62
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
63
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
64
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
65
|
-
};
|
|
66
|
-
default: () => string[];
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* @description 组件内会根据当前游标是否和 source 长度一致来判断,是否持续阅读, 当一致时,会关闭阅读状态。但若设置为 true,则会持续阅读, 这在动态接收数据时会有用
|
|
70
|
-
*/
|
|
71
|
-
keepRead: {
|
|
72
|
-
type: BooleanConstructor;
|
|
73
|
-
default: boolean;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* @description 是否使用自定义语音合成
|
|
77
|
-
*/
|
|
78
|
-
textToSpeech: {
|
|
79
|
-
type: PropType<TextToSpeech>;
|
|
80
|
-
default: undefined;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* @description 段落处理函数
|
|
84
|
-
*/
|
|
85
|
-
processing: {
|
|
86
|
-
type: PropType<(paragraph: Paragraph) => void>;
|
|
87
|
-
default: import("@vunk/shared").AnyFunc;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
export declare const emits: {
|
|
91
|
-
setData: (e: SetDataEvent) => SetDataEvent;
|
|
92
|
-
interrupt: null;
|
|
93
|
-
'update:broadcasting': (_: boolean) => boolean;
|
|
94
|
-
'update:completed': (_: boolean) => boolean;
|
|
95
|
-
'update:error': (_: boolean) => boolean;
|
|
96
|
-
paragraphLoad: (_: ParagraphLoadEvent) => boolean;
|
|
97
|
-
};
|
|
98
|
-
export declare const paragraphProps: {
|
|
99
|
-
data: {
|
|
100
|
-
type: PropType<Paragraph>;
|
|
101
|
-
default: () => {};
|
|
102
|
-
};
|
|
103
|
-
deferred: {
|
|
104
|
-
type: PropType<Deferred<any>>;
|
|
105
|
-
required: true;
|
|
106
|
-
};
|
|
107
|
-
render: {
|
|
108
|
-
type: PropType<(text: string) => string>;
|
|
109
|
-
default: typeof defaultRender;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
export declare const paragraphEmits: {
|
|
113
|
-
setData: (e: SetDataEvent<keyof Paragraph>) => SetDataEvent<keyof Paragraph>;
|
|
114
|
-
load: (_: ParagraphLoadEvent) => boolean;
|
|
115
|
-
};
|