@apform-ui/core 1.10.17 → 1.10.19
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/dist/apform-ui.css +1 -1
- package/dist/apform-ui.js +2225 -2037
- package/dist/apform-ui.umd.cjs +33 -33
- package/dist/components/Chat/ImageGenerateCard/ImageGenerateCard.vue.d.ts +26 -0
- package/dist/components/Chat/ImageGenerateCard/doc.d.ts +3 -0
- package/dist/components/Chat/ImageGenerateCard/index.d.ts +2 -0
- package/dist/components/Chat/ImageGenerateCard/types.d.ts +24 -0
- package/dist/components/DocumentPreview/DocumentPreviewDrawer.vue.d.ts +4 -0
- package/dist/components/DocumentPreview/DocumentPreviewPanel.vue.d.ts +4 -0
- package/dist/components/DocumentPreview/types.d.ts +4 -0
- package/dist/components/ExcelPreviewCard/ExcelPreviewCard.vue.d.ts +2 -0
- package/dist/components/PdfPreviewCard/PdfPreviewCard.vue.d.ts +2 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/docs/index.ts +3 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 生成图片 URL */
|
|
3
|
+
imageUrl?: string;
|
|
4
|
+
/** 生成 prompt */
|
|
5
|
+
prompt?: string;
|
|
6
|
+
/** 模型名 */
|
|
7
|
+
model?: string;
|
|
8
|
+
/** 尺寸,如 1024x1024 */
|
|
9
|
+
size?: string;
|
|
10
|
+
/** 风格:vivid / natural 等(避免与 Vue 原生 style 属性冲突) */
|
|
11
|
+
imageStyle?: string;
|
|
12
|
+
/** 质量:standard / hd 等 */
|
|
13
|
+
quality?: string;
|
|
14
|
+
/** 生成中 */
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
/** 错误信息 */
|
|
17
|
+
error?: string;
|
|
18
|
+
};
|
|
19
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
download: () => any;
|
|
21
|
+
regenerate: () => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onDownload?: (() => any) | undefined;
|
|
24
|
+
onRegenerate?: (() => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ImageGenerateCard 相关类型
|
|
3
|
+
*/
|
|
4
|
+
/** ImageGenerateCard props */
|
|
5
|
+
export interface ImageGenerateCardProps {
|
|
6
|
+
/** 生成图片 URL */
|
|
7
|
+
imageUrl?: string;
|
|
8
|
+
/** 生成 prompt */
|
|
9
|
+
prompt?: string;
|
|
10
|
+
/** 模型名 */
|
|
11
|
+
model?: string;
|
|
12
|
+
/** 尺寸,如 1024x1024 */
|
|
13
|
+
size?: string;
|
|
14
|
+
/** 风格:vivid / natural 等 */
|
|
15
|
+
imageStyle?: string;
|
|
16
|
+
/** @deprecated 使用 imageStyle */
|
|
17
|
+
style?: string;
|
|
18
|
+
/** 质量:standard / hd 等 */
|
|
19
|
+
quality?: string;
|
|
20
|
+
/** 生成中 */
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
/** 错误信息 */
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
@@ -18,6 +18,10 @@ type __VLS_Props = {
|
|
|
18
18
|
pdfUrl?: string;
|
|
19
19
|
/** Excel 预览 URL */
|
|
20
20
|
excelUrl?: string;
|
|
21
|
+
/** 透传给 PdfPreviewCard 的鉴权 headers */
|
|
22
|
+
pdfHttpHeaders?: Record<string, string>;
|
|
23
|
+
/** 透传给 ExcelPreviewCard 的 fetch headers */
|
|
24
|
+
excelFetchHeaders?: Record<string, string>;
|
|
21
25
|
/** 加载中 */
|
|
22
26
|
loading?: boolean;
|
|
23
27
|
/** 错误信息 */
|
|
@@ -16,6 +16,10 @@ type __VLS_Props = {
|
|
|
16
16
|
pdfUrl?: string;
|
|
17
17
|
/** Excel 预览 URL */
|
|
18
18
|
excelUrl?: string;
|
|
19
|
+
/** 透传给 PdfPreviewCard 的鉴权 headers */
|
|
20
|
+
pdfHttpHeaders?: Record<string, string>;
|
|
21
|
+
/** 透传给 ExcelPreviewCard 的 fetch headers */
|
|
22
|
+
excelFetchHeaders?: Record<string, string>;
|
|
19
23
|
/** 加载中 */
|
|
20
24
|
loading?: boolean;
|
|
21
25
|
/** 错误信息 */
|
|
@@ -26,6 +26,10 @@ export interface DocumentPreviewPanelProps {
|
|
|
26
26
|
pdfUrl?: string;
|
|
27
27
|
/** Excel 预览 URL(提供时用 iframe) */
|
|
28
28
|
excelUrl?: string;
|
|
29
|
+
/** 透传给 PdfPreviewCard 的鉴权 headers */
|
|
30
|
+
pdfHttpHeaders?: Record<string, string>;
|
|
31
|
+
/** 透传给 ExcelPreviewCard 的 fetch headers */
|
|
32
|
+
excelFetchHeaders?: Record<string, string>;
|
|
29
33
|
/** 加载中 */
|
|
30
34
|
loading?: boolean;
|
|
31
35
|
/** 错误信息 */
|
|
@@ -17,6 +17,8 @@ type __VLS_Props = {
|
|
|
17
17
|
src?: string;
|
|
18
18
|
/** 已加载的 ArrayBuffer */
|
|
19
19
|
arrayBuffer?: ArrayBuffer | null;
|
|
20
|
+
/** 远程 src fetch 鉴权 headers(可选) */
|
|
21
|
+
fetchHeaders?: Record<string, string>;
|
|
20
22
|
};
|
|
21
23
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
24
|
"update:modelValue": (value: string) => any;
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc';
|
|
|
39
39
|
export { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc';
|
|
40
40
|
export { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc';
|
|
41
41
|
export { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc';
|
|
42
|
+
export { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc';
|
|
42
43
|
export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc';
|
|
43
44
|
export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc';
|
|
44
45
|
export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc';
|
package/dist/index.d.ts
CHANGED
|
@@ -111,6 +111,8 @@ export type { VariableDiffChange } from './components/Chat/VariableDiffCard';
|
|
|
111
111
|
export { SubWorkflowStatusCard } from './components/Chat/SubWorkflowStatusCard';
|
|
112
112
|
export { PptPreviewCard } from './components/Chat/PptPreviewCard';
|
|
113
113
|
export type { PptSlide, PptMetadata } from './components/Chat/PptPreviewCard';
|
|
114
|
+
export { ImageGenerateCard } from './components/Chat/ImageGenerateCard';
|
|
115
|
+
export type { ImageGenerateCardProps } from './components/Chat/ImageGenerateCard';
|
|
114
116
|
export { SchemaFormPreview } from './components/Chat/SchemaFormPreview';
|
|
115
117
|
export type { SchemaFormPreviewField } from './components/Chat/SchemaFormPreview';
|
|
116
118
|
export { WorkflowRunTimeline } from './components/Chat/WorkflowRunTimeline';
|
package/package.json
CHANGED
package/src/docs/index.ts
CHANGED
|
@@ -39,6 +39,7 @@ export { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
|
|
|
39
39
|
export { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
|
|
40
40
|
export { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
|
|
41
41
|
export { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
|
|
42
|
+
export { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc'
|
|
42
43
|
export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
|
|
43
44
|
export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
|
|
44
45
|
export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
|
|
@@ -126,6 +127,7 @@ import { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
|
|
|
126
127
|
import { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
|
|
127
128
|
import { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
|
|
128
129
|
import { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
|
|
130
|
+
import { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc'
|
|
129
131
|
import { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
|
|
130
132
|
import { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
|
|
131
133
|
import { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
|
|
@@ -214,6 +216,7 @@ export const componentDocs: Record<string, ComponentDoc> = {
|
|
|
214
216
|
VariableDiffCard: VariableDiffCardDoc,
|
|
215
217
|
SubWorkflowStatusCard: SubWorkflowStatusCardDoc,
|
|
216
218
|
PptPreviewCard: PptPreviewCardDoc,
|
|
219
|
+
ImageGenerateCard: ImageGenerateCardDoc,
|
|
217
220
|
SchemaFormPreview: SchemaFormPreviewDoc,
|
|
218
221
|
WorkflowRunTimeline: WorkflowRunTimelineDoc,
|
|
219
222
|
SuggestionCard: SuggestionCardDoc,
|