@robot-admin/naive-ui-components 0.29.3 → 0.30.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/CHANGELOG.md +17 -0
- package/README.md +4 -2
- package/README_EN.md +4 -2
- package/dist/C_ActionBar.css +53 -51
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.css +1 -2
- package/dist/C_AudioPlayer.css +1 -2
- package/dist/C_AvatarGroup.css +1 -2
- package/dist/C_Barcode.css +1 -2
- package/dist/C_Breadcrumb.css +1 -2
- package/dist/C_Captcha.css +1 -2
- package/dist/C_Cascade.css +1 -2
- package/dist/C_Chat.css +1 -2
- package/dist/C_City.css +1 -2
- package/dist/C_Code.css +1 -2
- package/dist/C_CollapsePanel.css +1 -2
- package/dist/C_ContextMenu.css +1 -2
- package/dist/C_Cron.css +1 -2
- package/dist/C_DataPicker.cjs +1 -1
- package/dist/C_DataPicker.css +29 -28
- package/dist/C_DataPicker.d.cts +2 -2
- package/dist/C_DataPicker.d.ts +3 -2
- package/dist/C_DataPicker.js +1 -1
- package/dist/C_Date.css +1 -2
- package/dist/C_Density.css +1 -1
- package/dist/C_Density.d.cts +1 -1
- package/dist/C_Density.d.ts +1 -1
- package/dist/C_Draggable.css +1 -2
- package/dist/C_Editor.css +1 -2
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_ErrorSummary.css +1 -2
- package/dist/C_ErrorSummary.d.cts +1 -1
- package/dist/C_ErrorSummary.d.ts +1 -1
- package/dist/C_FilePreview.css +1 -2
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +1 -2
- package/dist/C_Form.d.cts +2 -1
- package/dist/C_Form.d.ts +2 -1
- package/dist/C_FormModal.css +52 -49
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +2 -1
- package/dist/C_FormSearch.css +67 -68
- package/dist/C_FormulaEditor.css +1 -2
- package/dist/C_FullCalendar.css +1 -2
- package/dist/C_GlobalSearch.css +1 -2
- package/dist/C_Guide.css +1 -2
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Icon.css +1 -2
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_ImageCropper.css +1 -2
- package/dist/C_Language.css +1 -2
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.css +1 -2
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.css +1 -2
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Map.css +1 -2
- package/dist/C_Markdown.css +1 -2
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Menu.css +1 -2
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_NotificationCenter.css +1 -2
- package/dist/C_OrgChart.css +1 -2
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_PageLoading.css +1 -2
- package/dist/C_Progress.css +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_QRCode.css +1 -2
- package/dist/C_SectionNav.css +1 -2
- package/dist/C_SectionNav.d.cts +1 -1
- package/dist/C_SectionNav.d.ts +1 -1
- package/dist/C_Signature.css +1 -2
- package/dist/C_Skeleton.css +1 -2
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_SplitPane.css +1 -2
- package/dist/C_Steps.css +1 -2
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +162 -160
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +161 -158
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +7 -6
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +3 -3
- package/dist/C_Table2.js +3 -3
- package/dist/C_Tabs.css +1 -2
- package/dist/C_TagsView.css +1 -2
- package/dist/C_TagsView.d.cts +1 -1
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_Theme.css +1 -2
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Time.css +1 -2
- package/dist/C_Timeline.css +1 -2
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.css +1 -2
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Tree.css +1 -2
- package/dist/C_Tree.d.ts +6 -5
- package/dist/C_Upload.css +1 -2
- package/dist/C_VideoPlayer.css +1 -2
- package/dist/C_VtableGantt.css +1 -2
- package/dist/C_WaterFall.css +1 -2
- package/dist/C_WorkFlow.css +1 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants2.d.cts +1 -1
- package/dist/constants2.d.ts +1 -1
- package/dist/constants4.d.cts +7 -7
- package/dist/constants4.d.ts +7 -7
- package/dist/constants5.d.cts +4 -4
- package/dist/constants5.d.ts +4 -4
- package/dist/data2.d.cts +7 -7
- package/dist/data2.d.ts +7 -7
- package/dist/dateRange.d.cts +3 -0
- package/dist/dateRange.d.ts +3 -0
- package/dist/formField.cjs +1 -0
- package/dist/formField.d.cts +1181 -0
- package/dist/formField.d.ts +1181 -0
- package/dist/formField.js +1 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/helpers2.cjs +1 -0
- package/dist/helpers2.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +23 -22
- package/dist/index.d.ts +24 -23
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +6 -6
- package/dist/index.vue.d.ts +6 -6
- package/dist/index10.vue.d.cts +3 -3
- package/dist/index10.vue.d.ts +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +13 -1162
- package/dist/index12.vue.d.cts +13 -1162
- package/dist/index12.vue.d.ts +59 -16
- package/dist/index13.vue.d.cts +59 -16
- package/dist/index13.vue.d.ts +17 -57
- package/dist/index14.vue.d.cts +17 -57
- package/dist/index14.vue.d.ts +55 -18
- package/dist/index15.vue.d.cts +55 -18
- package/dist/index15.vue.d.ts +124 -53
- package/dist/index16.vue.d.cts +124 -53
- package/dist/index16.vue.d.ts +51 -123
- package/dist/index17.vue.d.cts +51 -123
- package/dist/index17.vue.d.ts +25 -52
- package/dist/index18.vue.d.cts +25 -52
- package/dist/index18.vue.d.ts +12 -25
- package/dist/index19.vue.d.cts +12 -25
- package/dist/index19.vue.d.ts +129 -13
- package/dist/index20.vue.d.cts +129 -13
- package/dist/index20.vue.d.ts +76 -129
- package/dist/index21.vue.d.cts +76 -129
- package/dist/index21.vue.d.ts +72 -78
- package/dist/index22.vue.d.cts +97 -75
- package/dist/index22.vue.d.ts +96 -68
- package/dist/index23.vue.d.cts +40 -91
- package/dist/index23.vue.d.ts +40 -91
- package/dist/index24.vue.d.cts +23 -49
- package/dist/index24.vue.d.ts +23 -49
- package/dist/index25.vue.d.cts +96 -21
- package/dist/index25.vue.d.ts +96 -21
- package/dist/index26.vue.d.cts +37 -95
- package/dist/index26.vue.d.ts +37 -95
- package/dist/index27.vue.d.cts +8 -34
- package/dist/index27.vue.d.ts +8 -34
- package/dist/index28.vue.d.cts +86 -9
- package/dist/index28.vue.d.ts +86 -9
- package/dist/index29.vue.d.cts +99 -85
- package/dist/index29.vue.d.ts +99 -85
- package/dist/index3.vue.d.cts +4 -4
- package/dist/index3.vue.d.ts +4 -4
- package/dist/index30.vue.d.cts +59 -94
- package/dist/index30.vue.d.ts +59 -94
- package/dist/index7.vue.d.ts +3 -3
- package/dist/index8.vue.d.cts +3 -3
- package/dist/index9.vue.d.ts +3 -3
- package/dist/mapUtils.d.cts +5 -5
- package/dist/mapUtils.d.ts +5 -5
- package/dist/options.cjs +1 -1
- package/dist/options.js +1 -1
- package/dist/presets.d.cts +5 -2
- package/dist/presets.d.ts +5 -2
- package/dist/rolldown-runtime.js +1 -0
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/shared-tokens.css +1 -0
- package/dist/style.css +256 -252
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +4 -4
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useCropperCore.d.cts +10 -10
- package/dist/useCropperCore.d.ts +10 -10
- package/dist/useDynamicFormState.d.cts +3 -65
- package/dist/useDynamicFormState.d.ts +3 -65
- package/dist/useEdgeInteraction.d.cts +3 -3
- package/dist/useEdgeInteraction.d.ts +3 -3
- package/dist/useFormRenderer.d.cts +69 -0
- package/dist/useFormRenderer.d.ts +69 -0
- package/dist/useFullscreen.d.cts +1 -1
- package/dist/useFullscreen.d.ts +1 -1
- package/dist/useGlobalSearch.d.cts +1 -1
- package/dist/useGlobalSearch.d.ts +1 -1
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +4 -4
- package/dist/useQRCode.d.ts +4 -4
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +11 -11
- package/dist/useSplitResize.d.ts +11 -11
- package/dist/useTableQuery.d.cts +8 -7
- package/dist/useTableQuery.d.ts +8 -7
- package/dist/useWorkflowValidation.d.cts +33 -33
- package/dist/useWorkflowValidation.d.ts +33 -33
- package/dist/verification.d.cts +3 -3
- package/dist/verification.d.ts +3 -3
- package/dist/{xlsx.js → xlsx2.js} +1 -1
- package/docs/guides/data-picker.md +22 -3
- package/docs/guides/data-workflows.md +22 -1
- package/docs/guides/runtime-performance.md +10 -0
- package/docs/guides/search-workflows.md +3 -1
- package/docs/guides/usage.en.md +2 -3
- package/docs/guides/usage.md +2 -3
- package/package.json +2 -1
- package/dist/C_DataPicker2.cjs +0 -1
- package/dist/C_DataPicker2.js +0 -1
- package/dist/index31.vue.d.cts +0 -75
- package/dist/index31.vue.d.ts +0 -75
package/dist/index30.vue.d.cts
CHANGED
|
@@ -1,110 +1,75 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
3
|
+
//#region src/components/C_Transfer/types.d.ts
|
|
4
4
|
/**
|
|
5
|
-
* @Description:
|
|
5
|
+
* @Description: 穿梭框组件类型定义
|
|
6
6
|
*/
|
|
7
|
-
/**
|
|
8
|
-
interface
|
|
7
|
+
/** 穿梭框数据项 */
|
|
8
|
+
interface TransferItem<K extends string | number = string | number> {
|
|
9
9
|
/** 唯一标识 */
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
/**
|
|
10
|
+
key: K;
|
|
11
|
+
/** 显示标签 */
|
|
12
|
+
label: string;
|
|
13
|
+
/** 是否禁用 */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** 分组名称 */
|
|
16
|
+
group?: string;
|
|
17
|
+
/** 描述信息(用于详细模式) */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** 图标(Iconify) */
|
|
20
20
|
icon?: string;
|
|
21
|
-
/**
|
|
22
|
-
status?: 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
23
|
-
/** 是否可展开/折叠详情 */
|
|
24
|
-
collapsible?: boolean;
|
|
25
|
-
/** 初始是否展开 */
|
|
26
|
-
defaultExpanded?: boolean;
|
|
27
|
-
/** 附加标签组 */
|
|
28
|
-
tags?: Array<{
|
|
29
|
-
text: string;
|
|
30
|
-
type?: string;
|
|
31
|
-
}>;
|
|
32
|
-
/** 自定义额外数据 */
|
|
21
|
+
/** 额外数据 */
|
|
33
22
|
extra?: Record<string, unknown>;
|
|
34
23
|
}
|
|
35
24
|
/** 组件 Props */
|
|
36
|
-
interface
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
/**
|
|
25
|
+
interface TransferProps<T extends TransferItem = TransferItem> {
|
|
26
|
+
/** 数据源 */
|
|
27
|
+
data: readonly T[];
|
|
28
|
+
/** 右侧已选 key 列表 (v-model) */
|
|
29
|
+
modelValue: readonly NoInfer<T['key']>[];
|
|
30
|
+
/** 左右栏标题 */
|
|
31
|
+
titles?: readonly [string, string];
|
|
32
|
+
/** 是否可搜索 */
|
|
33
|
+
filterable?: boolean;
|
|
34
|
+
/** 搜索占位符 */
|
|
35
|
+
filterPlaceholder?: string;
|
|
36
|
+
/** 自定义筛选函数 */
|
|
37
|
+
filterMethod?: (query: string, item: T) => boolean;
|
|
38
|
+
/** 是否显示全选复选框 */
|
|
39
|
+
showSelectAll?: boolean;
|
|
40
|
+
/** 左侧空状态描述 */
|
|
41
|
+
sourceEmptyText?: string;
|
|
42
|
+
/** 右侧空状态描述 */
|
|
43
|
+
targetEmptyText?: string;
|
|
44
|
+
/** 尺寸 */
|
|
50
45
|
size?: 'small' | 'medium' | 'large';
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
/** 大列表自动使用虚拟滚动;自定义可变行高或需要完整 DOM 时可关闭。默认 true,100 项起启用。 */
|
|
47
|
+
virtualScroll?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** 事件保留数据源的键类型,例如纯数字键仍为 number[]。 */
|
|
50
|
+
interface TransferEmits<T extends TransferItem = TransferItem> {
|
|
51
|
+
'update:modelValue': [value: Array<T['key']>];
|
|
52
|
+
change: [targetKeys: Array<T['key']>, direction: 'left' | 'right', moveKeys: Array<T['key']>];
|
|
55
53
|
}
|
|
56
54
|
/** 默认 Props */
|
|
57
|
-
declare const
|
|
58
|
-
mode: "vertical";
|
|
59
|
-
labelPlacement: "right";
|
|
60
|
-
pending: boolean;
|
|
61
|
-
pendingText: string;
|
|
62
|
-
reverse: boolean;
|
|
63
|
-
size: "medium";
|
|
64
|
-
lineType: "solid";
|
|
65
|
-
showTime: boolean;
|
|
66
|
-
};
|
|
67
|
-
/** 状态 → 颜色映射 */
|
|
68
|
-
declare const STATUS_COLOR_MAP: Record<string, string>;
|
|
55
|
+
declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
|
|
69
56
|
//#endregion
|
|
70
|
-
//#region src/components/
|
|
71
|
-
declare
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
57
|
+
//#region src/components/C_Transfer/index.vue.d.ts
|
|
58
|
+
declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
59
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
|
|
60
|
+
"onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
|
|
61
|
+
onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
|
|
62
|
+
}> & (typeof globalThis extends {
|
|
63
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
64
|
+
} ? P : {});
|
|
65
|
+
expose: (exposed: {}) => void;
|
|
66
|
+
attrs: any;
|
|
67
|
+
slots: {};
|
|
68
|
+
emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void);
|
|
69
|
+
}>) => vue.VNode & {
|
|
70
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
82
71
|
};
|
|
83
|
-
declare const __VLS_base: vue.DefineComponent<TimelineProps, {
|
|
84
|
-
/** 展开全部 */expandAll: () => void; /** 折叠全部 */
|
|
85
|
-
collapseAll: () => void;
|
|
86
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
87
|
-
expand: (item: TimelineItem, expanded: boolean) => any;
|
|
88
|
-
"item-click": (item: TimelineItem, index: number) => any;
|
|
89
|
-
}, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
|
|
90
|
-
onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
|
|
91
|
-
"onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
|
|
92
|
-
}>, {
|
|
93
|
-
reverse: boolean;
|
|
94
|
-
items: TimelineItem[];
|
|
95
|
-
mode: "vertical" | "horizontal";
|
|
96
|
-
labelPlacement: "left" | "right" | "alternate";
|
|
97
|
-
size: "small" | "medium" | "large";
|
|
98
|
-
pending: boolean;
|
|
99
|
-
lineType: "solid" | "dashed" | "dotted";
|
|
100
|
-
showTime: boolean;
|
|
101
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
102
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
103
72
|
declare const _default: typeof __VLS_export;
|
|
104
|
-
type
|
|
105
|
-
new (): {
|
|
106
|
-
$slots: S;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
73
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
109
74
|
//#endregion
|
|
110
|
-
export {
|
|
75
|
+
export { TransferProps as a, TransferItem as i, DEFAULT_TRANSFER_PROPS as n, TransferEmits as r, _default as t };
|
package/dist/index30.vue.d.ts
CHANGED
|
@@ -1,110 +1,75 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
3
|
+
//#region src/components/C_Transfer/types.d.ts
|
|
4
4
|
/**
|
|
5
|
-
* @Description:
|
|
5
|
+
* @Description: 穿梭框组件类型定义
|
|
6
6
|
*/
|
|
7
|
-
/**
|
|
8
|
-
interface
|
|
7
|
+
/** 穿梭框数据项 */
|
|
8
|
+
interface TransferItem<K extends string | number = string | number> {
|
|
9
9
|
/** 唯一标识 */
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
/**
|
|
10
|
+
key: K;
|
|
11
|
+
/** 显示标签 */
|
|
12
|
+
label: string;
|
|
13
|
+
/** 是否禁用 */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** 分组名称 */
|
|
16
|
+
group?: string;
|
|
17
|
+
/** 描述信息(用于详细模式) */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** 图标(Iconify) */
|
|
20
20
|
icon?: string;
|
|
21
|
-
/**
|
|
22
|
-
status?: 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
23
|
-
/** 是否可展开/折叠详情 */
|
|
24
|
-
collapsible?: boolean;
|
|
25
|
-
/** 初始是否展开 */
|
|
26
|
-
defaultExpanded?: boolean;
|
|
27
|
-
/** 附加标签组 */
|
|
28
|
-
tags?: Array<{
|
|
29
|
-
text: string;
|
|
30
|
-
type?: string;
|
|
31
|
-
}>;
|
|
32
|
-
/** 自定义额外数据 */
|
|
21
|
+
/** 额外数据 */
|
|
33
22
|
extra?: Record<string, unknown>;
|
|
34
23
|
}
|
|
35
24
|
/** 组件 Props */
|
|
36
|
-
interface
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
/**
|
|
25
|
+
interface TransferProps<T extends TransferItem = TransferItem> {
|
|
26
|
+
/** 数据源 */
|
|
27
|
+
data: readonly T[];
|
|
28
|
+
/** 右侧已选 key 列表 (v-model) */
|
|
29
|
+
modelValue: readonly NoInfer<T['key']>[];
|
|
30
|
+
/** 左右栏标题 */
|
|
31
|
+
titles?: readonly [string, string];
|
|
32
|
+
/** 是否可搜索 */
|
|
33
|
+
filterable?: boolean;
|
|
34
|
+
/** 搜索占位符 */
|
|
35
|
+
filterPlaceholder?: string;
|
|
36
|
+
/** 自定义筛选函数 */
|
|
37
|
+
filterMethod?: (query: string, item: T) => boolean;
|
|
38
|
+
/** 是否显示全选复选框 */
|
|
39
|
+
showSelectAll?: boolean;
|
|
40
|
+
/** 左侧空状态描述 */
|
|
41
|
+
sourceEmptyText?: string;
|
|
42
|
+
/** 右侧空状态描述 */
|
|
43
|
+
targetEmptyText?: string;
|
|
44
|
+
/** 尺寸 */
|
|
50
45
|
size?: 'small' | 'medium' | 'large';
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
/** 大列表自动使用虚拟滚动;自定义可变行高或需要完整 DOM 时可关闭。默认 true,100 项起启用。 */
|
|
47
|
+
virtualScroll?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** 事件保留数据源的键类型,例如纯数字键仍为 number[]。 */
|
|
50
|
+
interface TransferEmits<T extends TransferItem = TransferItem> {
|
|
51
|
+
'update:modelValue': [value: Array<T['key']>];
|
|
52
|
+
change: [targetKeys: Array<T['key']>, direction: 'left' | 'right', moveKeys: Array<T['key']>];
|
|
55
53
|
}
|
|
56
54
|
/** 默认 Props */
|
|
57
|
-
declare const
|
|
58
|
-
mode: "vertical";
|
|
59
|
-
labelPlacement: "right";
|
|
60
|
-
pending: boolean;
|
|
61
|
-
pendingText: string;
|
|
62
|
-
reverse: boolean;
|
|
63
|
-
size: "medium";
|
|
64
|
-
lineType: "solid";
|
|
65
|
-
showTime: boolean;
|
|
66
|
-
};
|
|
67
|
-
/** 状态 → 颜色映射 */
|
|
68
|
-
declare const STATUS_COLOR_MAP: Record<string, string>;
|
|
55
|
+
declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
|
|
69
56
|
//#endregion
|
|
70
|
-
//#region src/components/
|
|
71
|
-
declare
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
57
|
+
//#region src/components/C_Transfer/index.vue.d.ts
|
|
58
|
+
declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
59
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
|
|
60
|
+
"onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
|
|
61
|
+
onChange?: ((targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => any) | undefined;
|
|
62
|
+
}> & (typeof globalThis extends {
|
|
63
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
64
|
+
} ? P : {});
|
|
65
|
+
expose: (exposed: {}) => void;
|
|
66
|
+
attrs: any;
|
|
67
|
+
slots: {};
|
|
68
|
+
emit: ((evt: "update:modelValue", value: T["key"][]) => void) & ((evt: "change", targetKeys: T["key"][], direction: "right" | "left", moveKeys: T["key"][]) => void);
|
|
69
|
+
}>) => vue.VNode & {
|
|
70
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
82
71
|
};
|
|
83
|
-
declare const __VLS_base: vue.DefineComponent<TimelineProps, {
|
|
84
|
-
/** 展开全部 */expandAll: () => void; /** 折叠全部 */
|
|
85
|
-
collapseAll: () => void;
|
|
86
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
87
|
-
expand: (item: TimelineItem, expanded: boolean) => any;
|
|
88
|
-
"item-click": (item: TimelineItem, index: number) => any;
|
|
89
|
-
}, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
|
|
90
|
-
onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
|
|
91
|
-
"onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
|
|
92
|
-
}>, {
|
|
93
|
-
reverse: boolean;
|
|
94
|
-
items: TimelineItem[];
|
|
95
|
-
mode: "vertical" | "horizontal";
|
|
96
|
-
labelPlacement: "left" | "right" | "alternate";
|
|
97
|
-
size: "small" | "medium" | "large";
|
|
98
|
-
pending: boolean;
|
|
99
|
-
lineType: "solid" | "dashed" | "dotted";
|
|
100
|
-
showTime: boolean;
|
|
101
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
102
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
103
72
|
declare const _default: typeof __VLS_export;
|
|
104
|
-
type
|
|
105
|
-
new (): {
|
|
106
|
-
$slots: S;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
73
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
109
74
|
//#endregion
|
|
110
|
-
export {
|
|
75
|
+
export { TransferProps as a, TransferItem as i, DEFAULT_TRANSFER_PROPS as n, TransferEmits as r, _default as t };
|
package/dist/index7.vue.d.ts
CHANGED
|
@@ -88,25 +88,24 @@ type __VLS_Slots = {} & {
|
|
|
88
88
|
declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
89
89
|
scrollToBottom: () => void;
|
|
90
90
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
91
|
-
"load-more": () => any;
|
|
92
91
|
send: (content: string) => any;
|
|
93
92
|
"select-contact": (id: string) => any;
|
|
93
|
+
"load-more": () => any;
|
|
94
94
|
"image-preview": (url: string) => any;
|
|
95
95
|
"file-click": (msg: ChatMessage) => any;
|
|
96
96
|
"file-upload": () => any;
|
|
97
97
|
"emoji-click": () => any;
|
|
98
98
|
resend: (msg: ChatMessage) => any;
|
|
99
99
|
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
100
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
101
100
|
onSend?: ((content: string) => any) | undefined;
|
|
102
101
|
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
102
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
103
103
|
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
104
104
|
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
105
105
|
"onFile-upload"?: (() => any) | undefined;
|
|
106
106
|
"onEmoji-click"?: (() => any) | undefined;
|
|
107
107
|
onResend?: ((msg: ChatMessage) => any) | undefined;
|
|
108
108
|
}>, {
|
|
109
|
-
virtualScroll: boolean;
|
|
110
109
|
showContacts: boolean;
|
|
111
110
|
showTimestamp: boolean;
|
|
112
111
|
showSendBtn: boolean;
|
|
@@ -116,6 +115,7 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
|
116
115
|
currentContactId: string;
|
|
117
116
|
selfAvatar: string;
|
|
118
117
|
selfName: string;
|
|
118
|
+
virtualScroll: boolean;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
120
120
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
121
121
|
declare const _default: typeof __VLS_export;
|
package/dist/index8.vue.d.cts
CHANGED
|
@@ -88,25 +88,24 @@ type __VLS_Slots = {} & {
|
|
|
88
88
|
declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
89
89
|
scrollToBottom: () => void;
|
|
90
90
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
91
|
-
"load-more": () => any;
|
|
92
91
|
send: (content: string) => any;
|
|
93
92
|
"select-contact": (id: string) => any;
|
|
93
|
+
"load-more": () => any;
|
|
94
94
|
"image-preview": (url: string) => any;
|
|
95
95
|
"file-click": (msg: ChatMessage) => any;
|
|
96
96
|
"file-upload": () => any;
|
|
97
97
|
"emoji-click": () => any;
|
|
98
98
|
resend: (msg: ChatMessage) => any;
|
|
99
99
|
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
100
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
101
100
|
onSend?: ((content: string) => any) | undefined;
|
|
102
101
|
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
102
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
103
103
|
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
104
104
|
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
105
105
|
"onFile-upload"?: (() => any) | undefined;
|
|
106
106
|
"onEmoji-click"?: (() => any) | undefined;
|
|
107
107
|
onResend?: ((msg: ChatMessage) => any) | undefined;
|
|
108
108
|
}>, {
|
|
109
|
-
virtualScroll: boolean;
|
|
110
109
|
showContacts: boolean;
|
|
111
110
|
showTimestamp: boolean;
|
|
112
111
|
showSendBtn: boolean;
|
|
@@ -116,6 +115,7 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
|
116
115
|
currentContactId: string;
|
|
117
116
|
selfAvatar: string;
|
|
118
117
|
selfName: string;
|
|
118
|
+
virtualScroll: boolean;
|
|
119
119
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
120
120
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
121
121
|
declare const _default: typeof __VLS_export;
|
package/dist/index9.vue.d.ts
CHANGED
|
@@ -24,17 +24,17 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
24
24
|
toggleFullscreen: typeof toggleFullscreen;
|
|
25
25
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
26
26
|
click: (event: MouseEvent) => any;
|
|
27
|
-
fullscreen: (isFullscreen: boolean) => any;
|
|
28
27
|
copy: (code: string) => any;
|
|
28
|
+
fullscreen: (isFullscreen: boolean) => any;
|
|
29
29
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
30
30
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
31
|
-
onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
|
|
32
31
|
onCopy?: ((code: string) => any) | undefined;
|
|
32
|
+
onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
trim: boolean;
|
|
35
35
|
code: string;
|
|
36
|
-
showHeader: boolean;
|
|
37
36
|
language: string;
|
|
37
|
+
showHeader: boolean;
|
|
38
38
|
showLineNumbers: boolean;
|
|
39
39
|
wordWrap: boolean;
|
|
40
40
|
showFullscreen: boolean;
|
package/dist/mapUtils.d.cts
CHANGED
|
@@ -83,19 +83,19 @@ interface MapExpose {
|
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region src/components/C_Map/index.vue.d.ts
|
|
85
85
|
declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
86
|
-
ready: (map: MapInstance) => any;
|
|
87
86
|
error: (error: Error) => any;
|
|
87
|
+
ready: (map: MapInstance) => any;
|
|
88
88
|
markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
|
|
89
89
|
}, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
|
|
90
|
-
onReady?: ((map: MapInstance) => any) | undefined;
|
|
91
90
|
onError?: ((error: Error) => any) | undefined;
|
|
91
|
+
onReady?: ((map: MapInstance) => any) | undefined;
|
|
92
92
|
onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
|
|
93
93
|
}>, {
|
|
94
|
-
ariaLabel: string;
|
|
95
|
-
height: string;
|
|
96
|
-
zoom: number;
|
|
97
94
|
center: MapCoordinate;
|
|
95
|
+
zoom: number;
|
|
96
|
+
height: string;
|
|
98
97
|
mapType: MapType;
|
|
98
|
+
ariaLabel: string;
|
|
99
99
|
markers: MapMarker[];
|
|
100
100
|
amapKey: string;
|
|
101
101
|
amapLoadTimeout: number;
|
package/dist/mapUtils.d.ts
CHANGED
|
@@ -83,19 +83,19 @@ interface MapExpose {
|
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region src/components/C_Map/index.vue.d.ts
|
|
85
85
|
declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
86
|
-
ready: (map: MapInstance) => any;
|
|
87
86
|
error: (error: Error) => any;
|
|
87
|
+
ready: (map: MapInstance) => any;
|
|
88
88
|
markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
|
|
89
89
|
}, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
|
|
90
|
-
onReady?: ((map: MapInstance) => any) | undefined;
|
|
91
90
|
onError?: ((error: Error) => any) | undefined;
|
|
91
|
+
onReady?: ((map: MapInstance) => any) | undefined;
|
|
92
92
|
onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
|
|
93
93
|
}>, {
|
|
94
|
-
ariaLabel: string;
|
|
95
|
-
height: string;
|
|
96
|
-
zoom: number;
|
|
97
94
|
center: MapCoordinate;
|
|
95
|
+
zoom: number;
|
|
96
|
+
height: string;
|
|
98
97
|
mapType: MapType;
|
|
98
|
+
ariaLabel: string;
|
|
99
99
|
markers: MapMarker[];
|
|
100
100
|
amapKey: string;
|
|
101
101
|
amapLoadTimeout: number;
|
package/dist/options.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=Symbol(`c-option-value`)
|
|
1
|
+
const e=Symbol(`c-option-value`),t=`__c_option_boolean_`;function n(e,t){return(Array.isArray(t)?t:[t]).some(e=>typeof e==`boolean`)||e?.some(e=>typeof e.value==`boolean`)===!0}function r(t,n){let r=e=>typeof e==`boolean`?e?n:t:typeof e==`string`||typeof e==`number`?e:null,i=(r,i)=>{if(i!==void 0){if(i&&typeof i==`object`&&Object.prototype.hasOwnProperty.call(i,e)){let t=i[e];if(typeof t==`boolean`)return t}return r}return r===t?!1:r===n?!0:r};return{encode:r,fallbackOption:t=>{let n=i(t);return{value:t,label:String(n),[e]:n}},decode:(e,t)=>Array.isArray(e)?e.map((e,n)=>i(e,Array.isArray(t)?t[n]:void 0)):e===null?null:i(e,t)}}function i(n){let i=new Set,a=!1,o=n?.map(n=>{let r=n.value??n.label??n.labelDefault;return typeof r==`string`&&r.startsWith(t)&&i.add(r),typeof r==`boolean`&&(a=!0),{...n,label:n.label??n.labelDefault??``,value:typeof r==`string`||typeof r==`number`?r:void 0,[e]:r}}),s=(e,n)=>{let r=`${t}${e}__`;for(;i.has(r)||n?.has(r);)r+=`_`;return r},c=s(!1),l=s(!0),u=(t,n)=>({falseToken:t,trueToken:n,codec:r(t,n),nativeOptions:a?o?.map(r=>{let i=r[e];return typeof i==`boolean`?{...r,value:i?n:t}:r}):o}),d;return e=>{let t=new Set(Array.isArray(e)?e:[e]),n=t.has(c)?s(!1,t):c,r=t.has(l)?s(!0,t):l;(d?.falseToken!==n||d.trueToken!==r)&&(d=u(n,r));let{encode:i,decode:a,fallbackOption:o}=d.codec;return{options:d.nativeOptions,value:Array.isArray(e)?e.map(i).filter(e=>e!==null):i(e),fallbackOption:o,decode:a}}}function a(e,t){return i(e)(t)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
package/dist/options.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=Symbol(`c-option-value`)
|
|
1
|
+
const e=Symbol(`c-option-value`),t=`__c_option_boolean_`;function n(e,t){return(Array.isArray(t)?t:[t]).some(e=>typeof e==`boolean`)||e?.some(e=>typeof e.value==`boolean`)===!0}function r(t,n){let r=e=>typeof e==`boolean`?e?n:t:typeof e==`string`||typeof e==`number`?e:null,i=(r,i)=>{if(i!==void 0){if(i&&typeof i==`object`&&Object.prototype.hasOwnProperty.call(i,e)){let t=i[e];if(typeof t==`boolean`)return t}return r}return r===t?!1:r===n?!0:r};return{encode:r,fallbackOption:t=>{let n=i(t);return{value:t,label:String(n),[e]:n}},decode:(e,t)=>Array.isArray(e)?e.map((e,n)=>i(e,Array.isArray(t)?t[n]:void 0)):e===null?null:i(e,t)}}function i(n){let i=new Set,a=!1,o=n?.map(n=>{let r=n.value??n.label??n.labelDefault;return typeof r==`string`&&r.startsWith(t)&&i.add(r),typeof r==`boolean`&&(a=!0),{...n,label:n.label??n.labelDefault??``,value:typeof r==`string`||typeof r==`number`?r:void 0,[e]:r}}),s=(e,n)=>{let r=`${t}${e}__`;for(;i.has(r)||n?.has(r);)r+=`_`;return r},c=s(!1),l=s(!0),u=(t,n)=>({falseToken:t,trueToken:n,codec:r(t,n),nativeOptions:a?o?.map(r=>{let i=r[e];return typeof i==`boolean`?{...r,value:i?n:t}:r}):o}),d;return e=>{let t=new Set(Array.isArray(e)?e:[e]),n=t.has(c)?s(!1,t):c,r=t.has(l)?s(!0,t):l;(d?.falseToken!==n||d.trueToken!==r)&&(d=u(n,r));let{encode:i,decode:a,fallbackOption:o}=d.codec;return{options:d.nativeOptions,value:Array.isArray(e)?e.map(i).filter(e=>e!==null):i(e),fallbackOption:o,decode:a}}}function a(e,t){return i(e)(t)}export{a as n,n as r,i as t};
|
package/dist/presets.d.cts
CHANGED
|
@@ -15,10 +15,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
|
|
|
15
15
|
"onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
|
|
16
16
|
"onAction-click"?: ((action: ActionItem) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
+
config: ActionBarConfig;
|
|
18
19
|
actions: ActionItem[];
|
|
19
20
|
leftActions: ActionItem[];
|
|
20
21
|
rightActions: ActionItem[];
|
|
21
|
-
config: ActionBarConfig;
|
|
22
22
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -37,7 +37,10 @@ declare const DEFAULT_ACTION_ICON = "mdi:gesture-tap-button";
|
|
|
37
37
|
*/
|
|
38
38
|
declare const ACTION_BAR_DEFAULT_CONFIG: Readonly<Required<ActionBarConfig>>;
|
|
39
39
|
declare const ACTION_PRESETS: Readonly<Record<string, Pick<ActionItem, 'label' | 'icon' | 'type'>>>;
|
|
40
|
-
declare const resolveActionPreset: (action: ActionItem) => ActionItem
|
|
40
|
+
declare const resolveActionPreset: (action: ActionItem) => ActionItem & {
|
|
41
|
+
label: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
};
|
|
41
44
|
/** 保留动作字面量推导,使用侧无需重复声明 ActionItem[]。 */
|
|
42
45
|
declare const defineActions: <const T extends ActionItem[]>(actions: T) => T;
|
|
43
46
|
//#endregion
|
package/dist/presets.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
|
|
|
15
15
|
"onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
|
|
16
16
|
"onAction-click"?: ((action: ActionItem) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
+
config: ActionBarConfig;
|
|
18
19
|
actions: ActionItem[];
|
|
19
20
|
leftActions: ActionItem[];
|
|
20
21
|
rightActions: ActionItem[];
|
|
21
|
-
config: ActionBarConfig;
|
|
22
22
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -37,7 +37,10 @@ declare const DEFAULT_ACTION_ICON = "mdi:gesture-tap-button";
|
|
|
37
37
|
*/
|
|
38
38
|
declare const ACTION_BAR_DEFAULT_CONFIG: Readonly<Required<ActionBarConfig>>;
|
|
39
39
|
declare const ACTION_PRESETS: Readonly<Record<string, Pick<ActionItem, 'label' | 'icon' | 'type'>>>;
|
|
40
|
-
declare const resolveActionPreset: (action: ActionItem) => ActionItem
|
|
40
|
+
declare const resolveActionPreset: (action: ActionItem) => ActionItem & {
|
|
41
|
+
label: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
};
|
|
41
44
|
/** 保留动作字面量推导,使用侧无需重复声明 ActionItem[]。 */
|
|
42
45
|
declare const defineActions: <const T extends ActionItem[]>(actions: T) => T;
|
|
43
46
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{t};
|