@farris/x-ui 0.5.8 → 0.6.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/assets/css/icons.css +1 -1
- package/assets/icon-preview.html +13 -4
- package/bubble/src/bubble.component.d.ts +3 -0
- package/bubble/src/bubble.props.d.ts +5 -0
- package/bubble/src/components/attachment/bubble-attachment.component.d.ts +3 -0
- package/bubble/src/components/attachment/bubble-attachment.props.d.ts +5 -0
- package/bubble/src/components/embedded-content/file/file-embedded-content.component.d.ts +3 -0
- package/bubble/src/components/embedded-content/file/file-embedded-content.props.d.ts +5 -0
- package/bubble/src/composition/use-embedded-content.d.ts +1 -0
- package/confirm-dialog/src/confirm-dialog.component.d.ts +9 -0
- package/confirm-dialog/src/confirm-dialog.props.d.ts +15 -0
- package/confirm-dialog/src/confirm-dialog.service.d.ts +2 -0
- package/farris.x-ui.esm.js +10474 -10189
- package/farris.x-ui.umd.cjs +110 -110
- package/hitl-question/src/hitl-question.component.d.ts +11 -0
- package/index.css +1 -1
- package/package.json +1 -1
|
@@ -60,6 +60,11 @@ export declare const bubbleProps: {
|
|
|
60
60
|
type: PropType<(config: PreviewConfig) => void>;
|
|
61
61
|
default: undefined;
|
|
62
62
|
};
|
|
63
|
+
/** 点击附件下载按钮时触发;传入后由外部接管下载,组件不再执行默认下载逻辑 */
|
|
64
|
+
onDownload: {
|
|
65
|
+
type: PropType<(attachment: Attachment) => void>;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
63
68
|
/** 复合消息:在正文区尾部追加渲染(单气泡内多块) */
|
|
64
69
|
compositeTailRender: {
|
|
65
70
|
type: PropType<() => VNode | null | undefined>;
|
|
@@ -7,6 +7,7 @@ declare const _default: import('../../../../../vue').DefineComponent<{
|
|
|
7
7
|
enableFixedWidth: boolean;
|
|
8
8
|
showDownloadButton: boolean;
|
|
9
9
|
onPreview?: ((attachment: Attachment) => void) | undefined;
|
|
10
|
+
onDownload?: ((attachment: Attachment) => void) | undefined;
|
|
10
11
|
onBatchPreview?: ((attachments: Attachment[]) => void) | undefined;
|
|
11
12
|
}, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('../../../../../vue').ComponentOptionsMixin, import('../../../../../vue').ComponentOptionsMixin, {}, string, import('../../../../../vue').PublicProps, Readonly<{
|
|
12
13
|
attachments: Attachment[];
|
|
@@ -15,10 +16,12 @@ declare const _default: import('../../../../../vue').DefineComponent<{
|
|
|
15
16
|
enableFixedWidth: boolean;
|
|
16
17
|
showDownloadButton: boolean;
|
|
17
18
|
onPreview?: ((attachment: Attachment) => void) | undefined;
|
|
19
|
+
onDownload?: ((attachment: Attachment) => void) | undefined;
|
|
18
20
|
onBatchPreview?: ((attachments: Attachment[]) => void) | undefined;
|
|
19
21
|
}> & Readonly<{}>, {
|
|
20
22
|
attachments: Attachment[];
|
|
21
23
|
onPreview: (attachment: Attachment) => void;
|
|
24
|
+
onDownload: (attachment: Attachment) => void;
|
|
22
25
|
role: "user" | "assistant";
|
|
23
26
|
enableBatchPreview: boolean;
|
|
24
27
|
enableFixedWidth: boolean;
|
|
@@ -33,5 +33,10 @@ export declare const bubbleAttachmentProps: {
|
|
|
33
33
|
type: PropType<(attachments: Attachment[]) => void>;
|
|
34
34
|
default: undefined;
|
|
35
35
|
};
|
|
36
|
+
/** 点击附件下载按钮时触发;传入后由外部接管下载,组件不再执行默认下载逻辑 */
|
|
37
|
+
onDownload: {
|
|
38
|
+
type: PropType<(attachment: Attachment) => void>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
36
41
|
};
|
|
37
42
|
export type BubbleAttachmentProps = ExtractPropTypes<typeof bubbleAttachmentProps>;
|
|
@@ -3,14 +3,17 @@ declare const _default: import('../../../../../../vue').DefineComponent<{
|
|
|
3
3
|
file?: import('../../../../../../../../../..').Attachment | import('../../../../../../../../../..').Attachment[] | undefined;
|
|
4
4
|
onPreviewFile?: ((attachment: import('../../../../../../../../../..').Attachment) => void) | undefined;
|
|
5
5
|
onBatchPreviewFile?: ((attachments: import('../../../../../../../../../..').Attachment[]) => void) | undefined;
|
|
6
|
+
onDownloadFile?: ((attachment: import('../../../../../../../../../..').Attachment) => void) | undefined;
|
|
6
7
|
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../../../../vue').ComponentOptionsMixin, import('../../../../../../vue').ComponentOptionsMixin, {}, string, import('../../../../../../vue').PublicProps, Readonly<{
|
|
7
8
|
customStyle: import('../../../../../../vue').CSSProperties;
|
|
8
9
|
file?: import('../../../../../../../../../..').Attachment | import('../../../../../../../../../..').Attachment[] | undefined;
|
|
9
10
|
onPreviewFile?: ((attachment: import('../../../../../../../../../..').Attachment) => void) | undefined;
|
|
10
11
|
onBatchPreviewFile?: ((attachments: import('../../../../../../../../../..').Attachment[]) => void) | undefined;
|
|
12
|
+
onDownloadFile?: ((attachment: import('../../../../../../../../../..').Attachment) => void) | undefined;
|
|
11
13
|
}> & Readonly<{}>, {
|
|
12
14
|
customStyle: import('../../../../../../vue').CSSProperties;
|
|
13
15
|
onPreviewFile: (attachment: import('../../../../../../../../../..').Attachment) => void;
|
|
14
16
|
onBatchPreviewFile: (attachments: import('../../../../../../../../../..').Attachment[]) => void;
|
|
17
|
+
onDownloadFile: (attachment: import('../../../../../../../../../..').Attachment) => void;
|
|
15
18
|
}, {}, {}, {}, string, import('../../../../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
16
19
|
export default _default;
|
|
@@ -22,5 +22,10 @@ export declare const fileEmbeddedContentProps: {
|
|
|
22
22
|
type: PropType<(attachments: Attachment[]) => void>;
|
|
23
23
|
default: undefined;
|
|
24
24
|
};
|
|
25
|
+
/** 下载文件事件;传入后由外部接管下载,组件不再执行默认下载逻辑 */
|
|
26
|
+
onDownloadFile: {
|
|
27
|
+
type: PropType<(attachment: Attachment) => void>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
25
30
|
};
|
|
26
31
|
export type FileEmbeddedContentProps = ExtractPropTypes<typeof fileEmbeddedContentProps>;
|
|
@@ -4,6 +4,7 @@ import { Attachment, EmbeddedContent } from '../../../../types';
|
|
|
4
4
|
export interface EmbeddedContentRenderContext {
|
|
5
5
|
onPreviewFile?: (attachment: Attachment) => void;
|
|
6
6
|
onBatchPreviewFile?: (attachments: Attachment[]) => void;
|
|
7
|
+
onDownloadFile?: (attachment: Attachment) => void;
|
|
7
8
|
onNavigate?: (url: string) => void;
|
|
8
9
|
}
|
|
9
10
|
export default function useEmbeddedContent(): {
|
|
@@ -10,7 +10,10 @@ declare const _default: import('../../../vue').DefineComponent<{
|
|
|
10
10
|
cancelText: string;
|
|
11
11
|
confirmText: string;
|
|
12
12
|
closeOnMask: boolean;
|
|
13
|
+
showIcon: boolean;
|
|
13
14
|
iconType: import('../../../confirm-dialog.props').ConfirmDialogIconType;
|
|
15
|
+
confirmLoading: boolean;
|
|
16
|
+
autoCloseOnConfirm: boolean;
|
|
14
17
|
}, () => import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
15
18
|
[key: string]: any;
|
|
16
19
|
}> | null, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<{
|
|
@@ -25,7 +28,10 @@ declare const _default: import('../../../vue').DefineComponent<{
|
|
|
25
28
|
cancelText: string;
|
|
26
29
|
confirmText: string;
|
|
27
30
|
closeOnMask: boolean;
|
|
31
|
+
showIcon: boolean;
|
|
28
32
|
iconType: import('../../../confirm-dialog.props').ConfirmDialogIconType;
|
|
33
|
+
confirmLoading: boolean;
|
|
34
|
+
autoCloseOnConfirm: boolean;
|
|
29
35
|
}> & Readonly<{}>, {
|
|
30
36
|
title: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
31
37
|
[key: string]: any;
|
|
@@ -38,6 +44,9 @@ declare const _default: import('../../../vue').DefineComponent<{
|
|
|
38
44
|
cancelText: string;
|
|
39
45
|
confirmText: string;
|
|
40
46
|
closeOnMask: boolean;
|
|
47
|
+
showIcon: boolean;
|
|
41
48
|
iconType: import('../../../confirm-dialog.props').ConfirmDialogIconType;
|
|
49
|
+
confirmLoading: boolean;
|
|
50
|
+
autoCloseOnConfirm: boolean;
|
|
42
51
|
}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
43
52
|
export default _default;
|
|
@@ -31,9 +31,24 @@ export declare const confirmDialogProps: {
|
|
|
31
31
|
type: BooleanConstructor;
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
34
|
+
/** 是否显示头部图标;false 时 header 只剩纯标题,用于表单类弹窗 */
|
|
35
|
+
showIcon: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
34
39
|
iconType: {
|
|
35
40
|
type: PropType<ConfirmDialogIconType>;
|
|
36
41
|
default: string;
|
|
37
42
|
};
|
|
43
|
+
/** confirm 按钮 loading 态:禁用按钮并显示转圈图标,防重复提交 */
|
|
44
|
+
confirmLoading: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
/** 点 confirm 后是否自动关闭弹窗;async 场景设 false,由父组件在异步完成后控制 modelValue */
|
|
49
|
+
autoCloseOnConfirm: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
38
53
|
};
|
|
39
54
|
export type ConfirmDialogProps = ExtractPropTypes<typeof confirmDialogProps>;
|