@apform-ui/core 1.4.2 → 1.7.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/README.md +16 -0
- package/dist/__tests__/composables-utils.spec.d.ts +1 -0
- package/dist/__tests__/core-feedback.spec.d.ts +1 -0
- package/dist/apform-ui.css +1 -1
- package/dist/apform-ui.js +5182 -4339
- package/dist/apform-ui.umd.cjs +64 -64
- package/dist/components/AppDialog/AppDialog.vue.d.ts +4 -5
- package/dist/components/AppDialog/doc.d.ts +3 -0
- package/dist/components/AppIcon/AppIcon.vue.d.ts +1 -2
- package/dist/components/AppIcon/doc.d.ts +3 -0
- package/dist/components/AppPagination/AppPagination.vue.d.ts +1 -2
- package/dist/components/AppPagination/doc.d.ts +3 -0
- package/dist/components/AppUserPanel/AppUserPanel.vue.d.ts +21 -0
- package/dist/components/AppUserPanel/index.d.ts +5 -0
- package/dist/components/AppUserPanel/types.d.ts +10 -0
- package/dist/components/BreadcrumbNav/BreadcrumbNav.vue.d.ts +18 -0
- package/dist/components/BreadcrumbNav/doc.d.ts +3 -0
- package/dist/components/BreadcrumbNav/index.d.ts +2 -0
- package/dist/components/CardGridSkeleton/CardGridSkeleton.vue.d.ts +1 -2
- package/dist/components/CardGridSkeleton/doc.d.ts +3 -0
- package/dist/components/CardTable/CardTable.vue.d.ts +2 -3
- package/dist/components/CardTable/doc.d.ts +3 -0
- package/dist/components/Chat/ApprovalCard/ApprovalCard.vue.d.ts +1 -2
- package/dist/components/Chat/ApprovalCard/doc.d.ts +3 -0
- package/dist/components/Chat/AssistantPicker/AssistantPicker.vue.d.ts +1 -2
- package/dist/components/Chat/AssistantPicker/doc.d.ts +3 -0
- package/dist/components/Chat/Composer/Composer.vue.d.ts +2 -3
- package/dist/components/Chat/Composer/doc.d.ts +3 -0
- package/dist/components/Chat/ConversationHeader/ConversationHeader.vue.d.ts +4 -2
- package/dist/components/Chat/ConversationHeader/doc.d.ts +3 -0
- package/dist/components/Chat/MessageBubble/MessageBubble.vue.d.ts +6 -5
- package/dist/components/Chat/MessageBubble/doc.d.ts +3 -0
- package/dist/components/Chat/MessageList/MessageList.vue.d.ts +1 -2
- package/dist/components/Chat/MessageList/doc.d.ts +3 -0
- package/dist/components/Chat/ModelPicker/ModelPicker.vue.d.ts +1 -2
- package/dist/components/Chat/ModelPicker/doc.d.ts +3 -0
- package/dist/components/Chat/ProcessingDrawer/ProcessingDrawer.vue.d.ts +4 -5
- package/dist/components/Chat/ProcessingDrawer/doc.d.ts +3 -0
- package/dist/components/Chat/RunStatusBar/RunStatusBar.vue.d.ts +1 -2
- package/dist/components/Chat/RunStatusBar/doc.d.ts +3 -0
- package/dist/components/Chat/SessionSidebar/SessionSidebar.vue.d.ts +2 -3
- package/dist/components/Chat/SessionSidebar/doc.d.ts +3 -0
- package/dist/components/Chat/message/AttachmentPreviewModal.doc.d.ts +3 -0
- package/dist/components/Chat/message/AttachmentPreviewModal.vue.d.ts +1 -2
- package/dist/components/Chat/message/DocumentSummaryList.doc.d.ts +3 -0
- package/dist/components/Chat/message/DocumentSummaryList.vue.d.ts +2 -2
- package/dist/components/Chat/message/MessageAttachmentList.doc.d.ts +3 -0
- package/dist/components/Chat/message/MessageAttachmentList.vue.d.ts +1 -2
- package/dist/components/Chat/message/MessageParts.doc.d.ts +3 -0
- package/dist/components/Chat/message/MessageParts.vue.d.ts +1 -2
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +1 -2
- package/dist/components/ConfirmDialog/doc.d.ts +3 -0
- package/dist/components/ContentPanel/ContentPanel.vue.d.ts +2 -3
- package/dist/components/ContentPanel/doc.d.ts +3 -0
- package/dist/components/DocumentPreview/DocumentPreviewDrawer.doc.d.ts +3 -0
- package/dist/components/DocumentPreview/DocumentPreviewDrawer.vue.d.ts +6 -7
- package/dist/components/DocumentPreview/DocumentPreviewPanel.doc.d.ts +3 -0
- package/dist/components/DocumentPreview/DocumentPreviewPanel.vue.d.ts +4 -5
- package/dist/components/EmptyState/EmptyState.vue.d.ts +4 -5
- package/dist/components/EmptyState/doc.d.ts +3 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.vue.d.ts +2 -3
- package/dist/components/ErrorBoundary/doc.d.ts +3 -0
- package/dist/components/ExcelPreviewCard/ExcelPreviewCard.vue.d.ts +37 -0
- package/dist/components/ExcelPreviewCard/doc.d.ts +3 -0
- package/dist/components/ExcelPreviewCard/index.d.ts +1 -0
- package/dist/components/FieldRow/FieldRow.vue.d.ts +4 -5
- package/dist/components/FieldRow/doc.d.ts +3 -0
- package/dist/components/FilterBar/FilterBar.vue.d.ts +2 -3
- package/dist/components/FilterBar/doc.d.ts +3 -0
- package/dist/components/FilterTabs/FilterTabs.vue.d.ts +1 -2
- package/dist/components/FilterTabs/doc.d.ts +3 -0
- package/dist/components/FormDialog/FormDialog.vue.d.ts +4 -5
- package/dist/components/FormDialog/doc.d.ts +3 -0
- package/dist/components/HintText/HintText.vue.d.ts +7 -6
- package/dist/components/HintText/doc.d.ts +3 -0
- package/dist/components/JsonCard/JsonCard.vue.d.ts +1 -2
- package/dist/components/JsonCard/doc.d.ts +3 -0
- package/dist/components/JsonDetailDialog/JsonDetailDialog.vue.d.ts +1 -2
- package/dist/components/JsonDetailDialog/doc.d.ts +3 -0
- package/dist/components/LoadingDots/LoadingDots.vue.d.ts +1 -2
- package/dist/components/LoadingDots/doc.d.ts +3 -0
- package/dist/components/PageHeader/PageHeader.vue.d.ts +2 -3
- package/dist/components/PageHeader/doc.d.ts +3 -0
- package/dist/components/PageShell/PageShell.vue.d.ts +2 -3
- package/dist/components/PageShell/doc.d.ts +3 -0
- package/dist/components/PdfPreviewCard/PdfPreviewCard.vue.d.ts +34 -0
- package/dist/components/PdfPreviewCard/doc.d.ts +3 -0
- package/dist/components/PdfPreviewCard/index.d.ts +1 -0
- package/dist/components/SchemaLitePreview/SchemaLitePreview.vue.d.ts +1 -2
- package/dist/components/SchemaLitePreview/doc.d.ts +3 -0
- package/dist/components/SearchForm/SearchForm.vue.d.ts +1 -2
- package/dist/components/SearchForm/doc.d.ts +3 -0
- package/dist/components/SectionToggle/SectionToggle.vue.d.ts +4 -5
- package/dist/components/SectionToggle/doc.d.ts +3 -0
- package/dist/components/Skeleton/Skeleton.vue.d.ts +1 -2
- package/dist/components/Skeleton/doc.d.ts +3 -0
- package/dist/components/SliderCaptcha/SliderCaptcha.vue.d.ts +23 -0
- package/dist/components/SliderCaptcha/index.d.ts +5 -0
- package/dist/components/SliderCaptcha/types.d.ts +14 -0
- package/dist/components/StatusTag/StatusTag.vue.d.ts +1 -2
- package/dist/components/StatusTag/doc.d.ts +3 -0
- package/dist/components/TableRowActions/TableRowActions.vue.d.ts +1 -2
- package/dist/components/TableRowActions/doc.d.ts +3 -0
- package/dist/components/Toast/Toast.vue.d.ts +1 -2
- package/dist/components/Toast/doc.d.ts +3 -0
- package/dist/components/TruncatedTooltipText/TruncatedTooltipText.vue.d.ts +4 -5
- package/dist/components/TruncatedTooltipText/doc.d.ts +3 -0
- package/dist/components/UserAvatar/UserAvatar.vue.d.ts +2 -3
- package/dist/components/UserAvatar/doc.d.ts +3 -0
- package/dist/composables/index.d.ts +7 -0
- package/dist/composables/useChatScroll.d.ts +28 -0
- package/dist/composables/useClipboard.d.ts +20 -0
- package/dist/composables/useConfirm.d.ts +1 -1
- package/dist/docs/index.d.ts +55 -0
- package/dist/docs/types.d.ts +47 -0
- package/dist/index.d.ts +13 -1
- package/dist/types/chat.d.ts +2 -0
- package/dist/utils/optionalPeers.d.ts +38 -0
- package/package.json +15 -3
- package/src/docs/index.ts +153 -0
- package/src/docs/types.ts +51 -0
- package/src/theme/dark.css +3652 -0
- package/styles/element-override.css +179 -5
- package/dist/stories/AppDialog.stories.d.ts +0 -9
- package/dist/stories/AppIcon.stories.d.ts +0 -9
- package/dist/stories/ApprovalCard.stories.d.ts +0 -8
- package/dist/stories/Composer.stories.d.ts +0 -9
- package/dist/stories/MessageBubble.stories.d.ts +0 -10
- package/dist/stories/RunStatusBar.stories.d.ts +0 -8
- package/dist/stories/StatusTag.stories.d.ts +0 -8
- package/dist/stories/useConfirm.stories.d.ts +0 -5
- package/dist/stories/useMessage.stories.d.ts +0 -5
|
@@ -12,19 +12,18 @@ type __VLS_Props = {
|
|
|
12
12
|
/** 操作按钮文案(无 default slot 时显示) */
|
|
13
13
|
actionText?: string;
|
|
14
14
|
};
|
|
15
|
-
declare var
|
|
15
|
+
declare var __VLS_4: {};
|
|
16
16
|
type __VLS_Slots = {} & {
|
|
17
|
-
default?: (props: typeof
|
|
17
|
+
default?: (props: typeof __VLS_4) => any;
|
|
18
18
|
};
|
|
19
|
-
declare const
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
20
|
action: () => any;
|
|
21
21
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
22
|
onAction?: (() => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
24
|
compact: boolean;
|
|
25
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
-
declare const
|
|
27
|
-
declare const _default: typeof __VLS_export;
|
|
26
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
28
27
|
export default _default;
|
|
29
28
|
type __VLS_WithSlots<T, S> = T & {
|
|
30
29
|
new (): {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
export default _default;
|
|
3
|
-
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
2
|
/** 自定义上下文信息,用于错误日志 */
|
|
5
3
|
context: {
|
|
6
4
|
type: StringConstructor;
|
|
@@ -37,3 +35,4 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
37
35
|
}) => void) | undefined;
|
|
38
36
|
context: string;
|
|
39
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 工作表名称列表(props 模式) */
|
|
3
|
+
sheetNames?: string[];
|
|
4
|
+
/** 当前 sheet */
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
/** 表头 */
|
|
7
|
+
headers?: string[];
|
|
8
|
+
/** 数据行 */
|
|
9
|
+
rows?: string[][];
|
|
10
|
+
/** 总行数(含表头) */
|
|
11
|
+
totalRows?: number;
|
|
12
|
+
/** 最大预览行数说明 */
|
|
13
|
+
maxPreviewRows?: number;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
error?: string | null;
|
|
16
|
+
/** 远程 Excel URL(触发 xlsx 解析) */
|
|
17
|
+
src?: string;
|
|
18
|
+
/** 已加载的 ArrayBuffer */
|
|
19
|
+
arrayBuffer?: ArrayBuffer | null;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: string) => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
error: string | null;
|
|
27
|
+
modelValue: string;
|
|
28
|
+
loading: boolean;
|
|
29
|
+
rows: string[][];
|
|
30
|
+
src: string;
|
|
31
|
+
sheetNames: string[];
|
|
32
|
+
headers: string[];
|
|
33
|
+
totalRows: number;
|
|
34
|
+
maxPreviewRows: number;
|
|
35
|
+
arrayBuffer: ArrayBuffer | null;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ExcelPreviewCard } from './ExcelPreviewCard.vue';
|
|
@@ -8,13 +8,12 @@ type __VLS_Props = {
|
|
|
8
8
|
/** 必填标记 */
|
|
9
9
|
required?: boolean;
|
|
10
10
|
};
|
|
11
|
-
declare var
|
|
11
|
+
declare var __VLS_5: {};
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_5) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const
|
|
16
|
-
declare const
|
|
17
|
-
declare const _default: typeof __VLS_export;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
17
|
export default _default;
|
|
19
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
20
19
|
new (): {
|
|
@@ -13,15 +13,14 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
} & {
|
|
14
14
|
actions?: (props: typeof __VLS_3) => any;
|
|
15
15
|
};
|
|
16
|
-
declare const
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
17
|
search: () => any;
|
|
18
18
|
reset: () => any;
|
|
19
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
20
|
onSearch?: (() => any) | undefined;
|
|
21
21
|
onReset?: (() => any) | undefined;
|
|
22
22
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
declare const
|
|
24
|
-
declare const _default: typeof __VLS_export;
|
|
23
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
25
24
|
export default _default;
|
|
26
25
|
type __VLS_WithSlots<T, S> = T & {
|
|
27
26
|
new (): {
|
|
@@ -12,10 +12,9 @@ type __VLS_Props = {
|
|
|
12
12
|
}[];
|
|
13
13
|
modelValue: string;
|
|
14
14
|
};
|
|
15
|
-
declare const
|
|
15
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
16
|
"update:modelValue": (value: string) => any;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
18
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
19
19
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
declare const _default: typeof __VLS_export;
|
|
21
20
|
export default _default;
|
|
@@ -11,13 +11,13 @@ type __VLS_Props = {
|
|
|
11
11
|
cancelText?: string;
|
|
12
12
|
confirmText?: string;
|
|
13
13
|
};
|
|
14
|
-
declare var
|
|
14
|
+
declare var __VLS_17: {
|
|
15
15
|
form: Record<string, unknown>;
|
|
16
16
|
};
|
|
17
17
|
type __VLS_Slots = {} & {
|
|
18
|
-
default?: (props: typeof
|
|
18
|
+
default?: (props: typeof __VLS_17) => any;
|
|
19
19
|
};
|
|
20
|
-
declare const
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
21
|
"update:modelValue": (value: boolean) => any;
|
|
22
22
|
cancel: () => any;
|
|
23
23
|
submit: (data: Record<string, unknown>) => any;
|
|
@@ -34,8 +34,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
34
34
|
labelWidth: string;
|
|
35
35
|
rules: FormRules;
|
|
36
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
|
-
declare const
|
|
38
|
-
declare const _default: typeof __VLS_export;
|
|
37
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
38
|
export default _default;
|
|
40
39
|
type __VLS_WithSlots<T, S> = T & {
|
|
41
40
|
new (): {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
/**
|
|
2
|
+
/** 纯文本提示(有则走 tooltip,兼容 FieldTip) */
|
|
3
|
+
content?: string;
|
|
4
|
+
/** popover 宽度(slot 模式) */
|
|
3
5
|
width?: number | string;
|
|
4
6
|
};
|
|
5
|
-
declare var
|
|
7
|
+
declare var __VLS_19: {};
|
|
6
8
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_19) => any;
|
|
8
10
|
};
|
|
9
|
-
declare const
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
12
|
width: number | string;
|
|
11
13
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
declare const
|
|
13
|
-
declare const _default: typeof __VLS_export;
|
|
14
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
15
|
export default _default;
|
|
15
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
16
17
|
new (): {
|
|
@@ -7,7 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
content?: string;
|
|
8
8
|
type?: 'json' | 'schema' | 'flow';
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
11
|
click: () => any;
|
|
12
12
|
openDetail: () => any;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -16,5 +16,4 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
16
16
|
}>, {
|
|
17
17
|
type: "json" | "schema" | "flow";
|
|
18
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
declare const _default: typeof __VLS_export;
|
|
20
19
|
export default _default;
|
|
@@ -4,10 +4,9 @@ type __VLS_Props = {
|
|
|
4
4
|
data?: unknown;
|
|
5
5
|
content?: string;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (args_0: boolean) => any;
|
|
9
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
10
|
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
11
11
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
declare const _default: typeof __VLS_export;
|
|
13
12
|
export default _default;
|
|
@@ -5,6 +5,5 @@ type __VLS_Props = {
|
|
|
5
5
|
/** 圆点尺寸(px) */
|
|
6
6
|
size?: number;
|
|
7
7
|
};
|
|
8
|
-
declare const
|
|
9
|
-
declare const _default: typeof __VLS_export;
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
9
|
export default _default;
|
|
@@ -17,9 +17,8 @@ type __VLS_Slots = {} & {
|
|
|
17
17
|
} & {
|
|
18
18
|
extra?: (props: typeof __VLS_5) => any;
|
|
19
19
|
};
|
|
20
|
-
declare const
|
|
21
|
-
declare const
|
|
22
|
-
declare const _default: typeof __VLS_export;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
23
22
|
export default _default;
|
|
24
23
|
type __VLS_WithSlots<T, S> = T & {
|
|
25
24
|
new (): {
|
|
@@ -12,11 +12,10 @@ declare var __VLS_1: {};
|
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
13
|
default?: (props: typeof __VLS_1) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
16
|
fill: boolean;
|
|
17
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const
|
|
19
|
-
declare const _default: typeof __VLS_export;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
19
|
export default _default;
|
|
21
20
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
21
|
new (): {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** PDF 可访问 URL */
|
|
3
|
+
url: string;
|
|
4
|
+
/** iframe / canvas title */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** 外部加载态(iframe 模式) */
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
/** 外部错误(iframe 模式) */
|
|
9
|
+
error?: string | null;
|
|
10
|
+
/** 预览区最小高度 */
|
|
11
|
+
minHeight?: string;
|
|
12
|
+
/** 强制禁用 pdfjs,仅用 iframe */
|
|
13
|
+
forceIframe?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare var __VLS_1: {
|
|
16
|
+
url: string;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
default?: (props: typeof __VLS_1) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
|
+
error: string | null;
|
|
23
|
+
title: string;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
minHeight: string;
|
|
26
|
+
forceIframe: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PdfPreviewCard } from './PdfPreviewCard.vue';
|
|
@@ -18,7 +18,7 @@ type __VLS_Props = {
|
|
|
18
18
|
/** 标签宽度 */
|
|
19
19
|
labelWidth?: string;
|
|
20
20
|
};
|
|
21
|
-
declare const
|
|
21
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
22
|
"update:modelValue": (args_0: Record<string, unknown>) => any;
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
24
|
"onUpdate:modelValue"?: ((args_0: Record<string, unknown>) => any) | undefined;
|
|
@@ -26,5 +26,4 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
26
26
|
modelValue: Record<string, unknown>;
|
|
27
27
|
labelWidth: string;
|
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
-
declare const _default: typeof __VLS_export;
|
|
30
29
|
export default _default;
|
|
@@ -18,7 +18,7 @@ type __VLS_Props = {
|
|
|
18
18
|
};
|
|
19
19
|
declare function snapshot(): Record<string, unknown>;
|
|
20
20
|
declare function handleReset(): void;
|
|
21
|
-
declare const
|
|
21
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
22
22
|
getValues: typeof snapshot;
|
|
23
23
|
reset: typeof handleReset;
|
|
24
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -35,5 +35,4 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
|
35
35
|
defaultCollapsed: boolean;
|
|
36
36
|
defaultVisibleCount: number;
|
|
37
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
-
declare const _default: typeof __VLS_export;
|
|
39
38
|
export default _default;
|
|
@@ -3,15 +3,14 @@ type __VLS_Props = {
|
|
|
3
3
|
count?: number;
|
|
4
4
|
defaultOpen?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_5: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_5) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
11
|
defaultOpen: boolean;
|
|
12
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const
|
|
14
|
-
declare const _default: typeof __VLS_export;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
14
|
export default _default;
|
|
16
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
17
16
|
new (): {
|
|
@@ -19,11 +19,10 @@ type __VLS_Props = {
|
|
|
19
19
|
/** 是否开启动画(默认 true) */
|
|
20
20
|
animated?: boolean;
|
|
21
21
|
};
|
|
22
|
-
declare const
|
|
22
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
23
|
count: number;
|
|
24
24
|
variant: "card" | "list" | "table";
|
|
25
25
|
rows: number;
|
|
26
26
|
animated: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
-
declare const _default: typeof __VLS_export;
|
|
29
28
|
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CaptchaPayload, SliderCaptchaValue } from './types';
|
|
2
|
+
export type { CaptchaPayload, SliderCaptchaValue };
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
modelValue?: SliderCaptchaValue;
|
|
5
|
+
/** 拉取验证码(宿主注入) */
|
|
6
|
+
fetchCaptcha: () => Promise<CaptchaPayload>;
|
|
7
|
+
};
|
|
8
|
+
/** 拉取新验证码 */
|
|
9
|
+
declare function refresh(): Promise<void>;
|
|
10
|
+
/** 失败后抖动并刷新 */
|
|
11
|
+
declare function failAndRefresh(): Promise<void>;
|
|
12
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
13
|
+
refresh: typeof refresh;
|
|
14
|
+
failAndRefresh: typeof failAndRefresh;
|
|
15
|
+
getValue: () => SliderCaptchaValue;
|
|
16
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: SliderCaptchaValue) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: SliderCaptchaValue) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
modelValue: SliderCaptchaValue;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SliderCaptcha 相关类型
|
|
3
|
+
*/
|
|
4
|
+
export interface SliderCaptchaValue {
|
|
5
|
+
captchaId: string;
|
|
6
|
+
captchaX: number;
|
|
7
|
+
verified: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface CaptchaPayload {
|
|
10
|
+
captchaId: string;
|
|
11
|
+
backgroundImage: string;
|
|
12
|
+
sliderImage: string;
|
|
13
|
+
sliderY: number;
|
|
14
|
+
}
|
|
@@ -13,9 +13,8 @@ type __VLS_Props = {
|
|
|
13
13
|
/** 尺寸 */
|
|
14
14
|
size?: 'large' | 'default' | 'small';
|
|
15
15
|
};
|
|
16
|
-
declare const
|
|
16
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
17
|
size: "large" | "default" | "small";
|
|
18
18
|
round: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
declare const _default: typeof __VLS_export;
|
|
21
20
|
export default _default;
|
|
@@ -15,9 +15,8 @@ type __VLS_Props = {
|
|
|
15
15
|
/** 折叠时直接展示的按钮数 */
|
|
16
16
|
visibleCount?: number;
|
|
17
17
|
};
|
|
18
|
-
declare const
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
19
|
collapseAt: number;
|
|
20
20
|
visibleCount: number;
|
|
21
21
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const _default: typeof __VLS_export;
|
|
23
22
|
export default _default;
|
|
@@ -5,8 +5,7 @@ export interface ToastItem {
|
|
|
5
5
|
removing?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare function showToast(message: string, type?: ToastItem['type'], duration?: number): void;
|
|
8
|
-
declare const
|
|
8
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
9
9
|
show: typeof showToast;
|
|
10
10
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
11
|
export default _default;
|
|
@@ -4,16 +4,15 @@ type __VLS_Props = {
|
|
|
4
4
|
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
5
5
|
maxWidth?: number;
|
|
6
6
|
};
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_6: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_6) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
12
|
placement: "top" | "bottom" | "left" | "right";
|
|
13
13
|
maxWidth: number;
|
|
14
14
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
declare const
|
|
16
|
-
declare const _default: typeof __VLS_export;
|
|
15
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
16
|
export default _default;
|
|
18
17
|
type __VLS_WithSlots<T, S> = T & {
|
|
19
18
|
new (): {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
export default _default;
|
|
3
|
-
declare const __VLS_export: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
2
|
/** 用户名(取首字母作为 fallback) */
|
|
5
3
|
name?: string;
|
|
6
4
|
/** 头像图片 URL */
|
|
@@ -24,3 +22,4 @@ declare const __VLS_export: import('vue').DefineComponent<{
|
|
|
24
22
|
src: string;
|
|
25
23
|
shape: "circle" | "square";
|
|
26
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @apform-ui/core — Composables 导出
|
|
3
|
+
*/
|
|
1
4
|
export { useToast, provideToast } from './useToast';
|
|
2
5
|
export { useConfirm } from './useConfirm';
|
|
3
6
|
export type { ConfirmOptions } from './useConfirm';
|
|
@@ -7,3 +10,7 @@ export { useDebounceFn } from './useDebounceFn';
|
|
|
7
10
|
export { useClientPagination } from './useClientPagination';
|
|
8
11
|
export { useDataLoading } from './useDataLoading';
|
|
9
12
|
export type { UseDataLoadingOptions, UseDataLoadingReturn } from './useDataLoading';
|
|
13
|
+
export { useChatScroll } from './useChatScroll';
|
|
14
|
+
export type { UseChatScrollOptions, UseChatScrollReturn } from './useChatScroll';
|
|
15
|
+
export { useClipboard } from './useClipboard';
|
|
16
|
+
export type { UseClipboardOptions } from './useClipboard';
|