@robot-admin/naive-ui-components 0.16.0 → 0.17.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 +39 -0
- package/README.md +12 -9
- package/README_EN.md +12 -9
- package/dist/C_ActionBar.css +56 -48
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV2.cjs +1 -1
- package/dist/C_AntV2.js +3 -3
- package/dist/C_Barcode.css +6 -6
- package/dist/C_Barcode2.cjs +1 -1
- package/dist/C_Barcode2.js +1 -1
- package/dist/C_Chat.css +269 -185
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_Code.css +26 -26
- package/dist/C_Code2.cjs +1 -1
- package/dist/C_Code2.js +1 -1
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_FilePreview.css +96 -57
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +295 -277
- package/dist/C_Form.css +295 -277
- package/dist/C_Form.d.cts +2 -1
- package/dist/C_Form.d.ts +2 -1
- package/dist/C_FormModal.css +10 -10
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +67 -68
- package/dist/C_FormSearch.d.cts +2 -1
- package/dist/C_FormSearch.d.ts +2 -1
- package/dist/C_FormSearch2.cjs +1 -1
- package/dist/C_FormSearch2.js +1 -1
- package/dist/C_FullCalendar2.cjs +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_GlobalSearch.css +140 -118
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_ImageCropper.css +12 -10
- package/dist/C_ImageCropper2.cjs +1 -1
- package/dist/C_ImageCropper2.js +1 -1
- package/dist/C_Login.css +79 -79
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Map.css +10 -10
- package/dist/C_Map2.cjs +1 -1
- package/dist/C_Map2.js +1 -1
- package/dist/C_OrgChart.css +28 -4
- package/dist/C_OrgChart2.cjs +1 -1
- package/dist/C_OrgChart2.js +1 -1
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_Signature.css +15 -15
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_SplitPane.cjs +1 -1
- package/dist/C_SplitPane.css +251 -109
- package/dist/C_SplitPane.js +1 -1
- package/dist/C_SplitPane2.cjs +1 -1
- package/dist/C_SplitPane2.js +1 -1
- package/dist/C_Table.base.css +491 -563
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +491 -563
- package/dist/C_Table.d.cts +3 -2
- package/dist/C_Table.d.ts +4 -2
- package/dist/C_Table.js +1 -1
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Transfer.css +93 -84
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.css +72 -125
- package/dist/C_Tree.d.cts +3 -2
- package/dist/C_Tree.d.ts +15 -2
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/C_Upload.css +5 -5
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_VideoPlayer2.cjs +4 -3
- package/dist/C_VideoPlayer2.js +4 -3
- package/dist/C_VtableGantt.css +29 -28
- package/dist/C_VtableGantt2.cjs +1 -1
- package/dist/C_VtableGantt2.js +1 -1
- package/dist/C_WaterFall.css +29 -29
- package/dist/C_WaterFall2.cjs +1 -1
- package/dist/C_WaterFall2.js +1 -1
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.js +1 -1
- package/dist/Custom.cjs +1 -1
- package/dist/Custom.js +1 -1
- package/dist/Dynamic.cjs +1 -1
- package/dist/Dynamic.js +1 -1
- package/dist/Steps.cjs +1 -1
- package/dist/Steps.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.cts +2 -2
- package/dist/constants3.d.ts +2 -2
- package/dist/constants4.d.cts +4 -4
- package/dist/constants4.d.ts +4 -4
- package/dist/constants5.d.cts +3 -7
- package/dist/constants5.d.ts +3 -7
- package/dist/data.d.cts +10 -10
- package/dist/data.d.ts +10 -10
- package/dist/density.cjs +1 -0
- package/dist/density.d.cts +15 -0
- package/dist/density.d.ts +15 -0
- package/dist/density.js +1 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +5 -5
- package/dist/index.vue.d.ts +5 -5
- package/dist/index10.vue.d.cts +5 -5
- package/dist/index10.vue.d.ts +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +5 -5
- package/dist/index12.vue.d.cts +5 -5
- package/dist/index13.vue.d.ts +5 -5
- package/dist/index14.vue.d.cts +5 -5
- package/dist/index14.vue.d.ts +9 -9
- package/dist/index15.vue.d.cts +9 -9
- package/dist/index15.vue.d.ts +3 -3
- package/dist/index16.vue.d.cts +3 -3
- package/dist/index17.vue.d.ts +1 -1
- package/dist/index18.vue.d.cts +1 -1
- package/dist/index18.vue.d.ts +7 -7
- package/dist/index19.vue.d.cts +7 -7
- package/dist/index19.vue.d.ts +5 -5
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +6 -2
- package/dist/index20.vue.d.ts +6 -2
- package/dist/index21.vue.d.cts +2 -2
- package/dist/index21.vue.d.ts +2 -2
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index22.vue.d.ts +2 -2
- package/dist/index23.vue.d.cts +2 -2
- package/dist/index23.vue.d.ts +2 -2
- package/dist/index25.vue.d.cts +5 -5
- package/dist/index25.vue.d.ts +5 -5
- package/dist/index27.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +2 -2
- package/dist/index28.vue.d.cts +7 -3
- package/dist/index28.vue.d.ts +7 -3
- package/dist/index3.vue.d.cts +3 -3
- package/dist/index3.vue.d.ts +3 -3
- package/dist/index4.vue.d.cts +5 -5
- package/dist/index5.vue.d.ts +2 -2
- package/dist/index6.vue.d.cts +2 -2
- package/dist/index6.vue.d.ts +7 -4
- package/dist/index7.vue.d.cts +7 -4
- package/dist/index7.vue.d.ts +2 -2
- package/dist/index8.vue.d.cts +2 -2
- package/dist/index8.vue.d.ts +4 -6
- package/dist/index9.vue.d.cts +4 -6
- package/dist/index9.vue.d.ts +5 -5
- package/dist/mapUtils.d.cts +4 -4
- package/dist/mapUtils.d.ts +4 -4
- package/dist/presets.d.cts +4 -1
- package/dist/presets.d.ts +4 -1
- package/dist/style.css +1763 -1566
- package/dist/useCalendarEvents.d.cts +10 -9
- package/dist/useCalendarEvents.d.ts +10 -9
- package/dist/useCollapsePanel.d.cts +3 -3
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useCropperCore.d.cts +9 -9
- package/dist/useCropperCore.d.ts +9 -9
- package/dist/useDraggableLayout.d.cts +15 -13
- package/dist/useDraggableLayout.d.ts +15 -13
- package/dist/useDynamicFormState.d.cts +5 -2
- package/dist/useDynamicFormState.d.ts +5 -2
- package/dist/useEdgeInteraction.d.cts +3 -3
- package/dist/useEdgeInteraction.d.ts +3 -3
- package/dist/useFullscreen.d.cts +4 -0
- package/dist/useFullscreen.d.ts +4 -0
- package/dist/useGlobalSearch.d.cts +9 -4
- package/dist/useGlobalSearch.d.ts +9 -4
- package/dist/useInfiniteScroll.d.cts +4 -1
- package/dist/useInfiniteScroll.d.ts +4 -1
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSearchState.d.cts +8 -6
- package/dist/useSearchState.d.ts +8 -6
- package/dist/useSignatureHistory.d.cts +7 -7
- package/dist/useSignatureHistory.d.ts +7 -7
- package/dist/useSplitResize.d.cts +50 -61
- package/dist/useSplitResize.d.ts +50 -61
- package/dist/useTableQuery.cjs +3 -3
- package/dist/useTableQuery.d.cts +237 -13
- package/dist/useTableQuery.d.ts +237 -13
- package/dist/useTableQuery.js +3 -3
- package/dist/useTimeSelection.d.cts +2 -2
- package/dist/useTimeSelection.d.ts +2 -2
- package/dist/useWorkflowValidation.d.cts +3 -3
- package/dist/useWorkflowValidation.d.ts +3 -3
- package/dist/verification.d.cts +5 -5
- package/dist/verification.d.ts +5 -5
- package/docs/component-review-20261019.md +55 -0
- package/docs/guides/form-density.en.md +42 -0
- package/docs/guides/form-density.md +59 -0
- package/docs/guides/runtime-performance.md +38 -0
- package/docs/guides/split-pane.en.md +103 -0
- package/docs/guides/split-pane.md +126 -0
- package/docs/guides/table-density.md +87 -0
- package/docs/guides/transfer.md +11 -0
- package/docs/guides/tree.md +157 -0
- package/docs/guides/usage.en.md +2 -0
- package/docs/guides/usage.md +2 -0
- package/docs/runtime-review-20261019.md +41 -0
- package/docs/wl-ui-produce-coverage.md +62 -0
- package/package.json +4 -2
- package/dist/useTreeOperations.d.cts +0 -185
- package/dist/useTreeOperations.d.ts +0 -185
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Ref } from "vue";
|
|
3
2
|
import { CalendarApi, CalendarOptions, EventApi } from "@fullcalendar/core";
|
|
4
3
|
|
|
5
4
|
//#region src/components/C_FullCalendar/types.d.ts
|
|
@@ -22,6 +21,8 @@ interface CalendarEditForm {
|
|
|
22
21
|
color: string;
|
|
23
22
|
}
|
|
24
23
|
interface CalendarProps {
|
|
24
|
+
/** 视图、布局与交互扩展;数据、插件和编辑开关由组件受控属性管理。 */
|
|
25
|
+
config?: Omit<CalendarOptions, 'events' | 'eventSources' | 'plugins' | 'initialView' | 'editable'>;
|
|
25
26
|
events?: CalendarEvent[];
|
|
26
27
|
initialView?: CalendarViewType;
|
|
27
28
|
editable?: boolean;
|
|
@@ -66,9 +67,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
66
67
|
}) => any) | undefined;
|
|
67
68
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
68
69
|
}>, {
|
|
69
|
-
events: CalendarEvent[];
|
|
70
|
-
initialView: CalendarViewType;
|
|
71
70
|
editable: boolean;
|
|
71
|
+
initialView: CalendarViewType;
|
|
72
|
+
events: CalendarEvent[];
|
|
72
73
|
showAddDialog: boolean;
|
|
73
74
|
showEditDialog: boolean;
|
|
74
75
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -105,19 +106,19 @@ type EmitFn = {
|
|
|
105
106
|
*
|
|
106
107
|
*/
|
|
107
108
|
declare function useCalendarEvents(props: CalendarProps, emit: EmitFn): {
|
|
108
|
-
calendarRef: Ref<{
|
|
109
|
+
calendarRef: vue.Ref<{
|
|
109
110
|
getApi: () => CalendarApi;
|
|
110
111
|
} | null, {
|
|
111
112
|
getApi: () => CalendarApi;
|
|
112
113
|
} | {
|
|
113
114
|
getApi: () => CalendarApi;
|
|
114
115
|
} | null>;
|
|
115
|
-
calendarOptions:
|
|
116
|
-
showActionDialog: Ref<boolean, boolean>;
|
|
117
|
-
showEditModal: Ref<boolean, boolean>;
|
|
118
|
-
isEditing: Ref<boolean, boolean>;
|
|
116
|
+
calendarOptions: vue.ComputedRef<CalendarOptions>;
|
|
117
|
+
showActionDialog: vue.Ref<boolean, boolean>;
|
|
118
|
+
showEditModal: vue.Ref<boolean, boolean>;
|
|
119
|
+
isEditing: vue.Ref<boolean, boolean>;
|
|
119
120
|
selectedEvent: vue.ShallowRef<EventApi | null, EventApi | null>;
|
|
120
|
-
editForm: Ref<{
|
|
121
|
+
editForm: vue.Ref<{
|
|
121
122
|
id: string;
|
|
122
123
|
title: string;
|
|
123
124
|
date: number | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { Ref } from "vue";
|
|
3
2
|
import { CalendarApi, CalendarOptions, EventApi } from "@fullcalendar/core";
|
|
4
3
|
|
|
5
4
|
//#region src/components/C_FullCalendar/types.d.ts
|
|
@@ -22,6 +21,8 @@ interface CalendarEditForm {
|
|
|
22
21
|
color: string;
|
|
23
22
|
}
|
|
24
23
|
interface CalendarProps {
|
|
24
|
+
/** 视图、布局与交互扩展;数据、插件和编辑开关由组件受控属性管理。 */
|
|
25
|
+
config?: Omit<CalendarOptions, 'events' | 'eventSources' | 'plugins' | 'initialView' | 'editable'>;
|
|
25
26
|
events?: CalendarEvent[];
|
|
26
27
|
initialView?: CalendarViewType;
|
|
27
28
|
editable?: boolean;
|
|
@@ -66,9 +67,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
66
67
|
}) => any) | undefined;
|
|
67
68
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
68
69
|
}>, {
|
|
69
|
-
events: CalendarEvent[];
|
|
70
|
-
initialView: CalendarViewType;
|
|
71
70
|
editable: boolean;
|
|
71
|
+
initialView: CalendarViewType;
|
|
72
|
+
events: CalendarEvent[];
|
|
72
73
|
showAddDialog: boolean;
|
|
73
74
|
showEditDialog: boolean;
|
|
74
75
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -105,19 +106,19 @@ type EmitFn = {
|
|
|
105
106
|
*
|
|
106
107
|
*/
|
|
107
108
|
declare function useCalendarEvents(props: CalendarProps, emit: EmitFn): {
|
|
108
|
-
calendarRef: Ref<{
|
|
109
|
+
calendarRef: vue.Ref<{
|
|
109
110
|
getApi: () => CalendarApi;
|
|
110
111
|
} | null, {
|
|
111
112
|
getApi: () => CalendarApi;
|
|
112
113
|
} | {
|
|
113
114
|
getApi: () => CalendarApi;
|
|
114
115
|
} | null>;
|
|
115
|
-
calendarOptions:
|
|
116
|
-
showActionDialog: Ref<boolean, boolean>;
|
|
117
|
-
showEditModal: Ref<boolean, boolean>;
|
|
118
|
-
isEditing: Ref<boolean, boolean>;
|
|
116
|
+
calendarOptions: vue.ComputedRef<CalendarOptions>;
|
|
117
|
+
showActionDialog: vue.Ref<boolean, boolean>;
|
|
118
|
+
showEditModal: vue.Ref<boolean, boolean>;
|
|
119
|
+
isEditing: vue.Ref<boolean, boolean>;
|
|
119
120
|
selectedEvent: vue.ShallowRef<EventApi | null, EventApi | null>;
|
|
120
|
-
editForm: Ref<{
|
|
121
|
+
editForm: vue.Ref<{
|
|
121
122
|
id: string;
|
|
122
123
|
title: string;
|
|
123
124
|
date: number | null;
|
|
@@ -71,19 +71,19 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
71
71
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
|
|
72
72
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
73
73
|
change: (activeKeys: string[]) => any;
|
|
74
|
-
"update:activeKeys": (keys: string[]) => any;
|
|
75
74
|
expand: (key: string) => any;
|
|
76
75
|
collapse: (key: string) => any;
|
|
76
|
+
"update:activeKeys": (keys: string[]) => any;
|
|
77
77
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
78
78
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
79
|
-
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
80
79
|
onExpand?: ((key: string) => any) | undefined;
|
|
81
80
|
onCollapse?: ((key: string) => any) | undefined;
|
|
81
|
+
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
|
+
accordion: boolean;
|
|
83
84
|
bordered: boolean;
|
|
84
85
|
activeKeys: string[];
|
|
85
86
|
defaultActiveKeys: string[];
|
|
86
|
-
accordion: boolean;
|
|
87
87
|
variant: CollapsePanelVariant;
|
|
88
88
|
expandIconPosition: ExpandIconPosition;
|
|
89
89
|
persistKey: string;
|
|
@@ -71,19 +71,19 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
71
71
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
|
|
72
72
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
73
73
|
change: (activeKeys: string[]) => any;
|
|
74
|
-
"update:activeKeys": (keys: string[]) => any;
|
|
75
74
|
expand: (key: string) => any;
|
|
76
75
|
collapse: (key: string) => any;
|
|
76
|
+
"update:activeKeys": (keys: string[]) => any;
|
|
77
77
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
78
78
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
79
|
-
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
80
79
|
onExpand?: ((key: string) => any) | undefined;
|
|
81
80
|
onCollapse?: ((key: string) => any) | undefined;
|
|
81
|
+
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
|
+
accordion: boolean;
|
|
83
84
|
bordered: boolean;
|
|
84
85
|
activeKeys: string[];
|
|
85
86
|
defaultActiveKeys: string[];
|
|
86
|
-
accordion: boolean;
|
|
87
87
|
variant: CollapsePanelVariant;
|
|
88
88
|
expandIconPosition: ExpandIconPosition;
|
|
89
89
|
persistKey: string;
|
|
@@ -51,28 +51,28 @@ interface ImageCropperEmits {
|
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
|
-
crop: (result: CropResult) => any;
|
|
55
|
-
ready: () => any;
|
|
56
54
|
error: (error: Error) => any;
|
|
57
|
-
confirm: (result: CropResult) => any;
|
|
58
55
|
cancel: () => any;
|
|
56
|
+
ready: () => any;
|
|
57
|
+
crop: (result: CropResult) => any;
|
|
58
|
+
confirm: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
|
-
onCrop?: ((result: CropResult) => any) | undefined;
|
|
61
|
-
onReady?: (() => any) | undefined;
|
|
62
60
|
onError?: ((error: Error) => any) | undefined;
|
|
63
|
-
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
64
61
|
onCancel?: (() => any) | undefined;
|
|
62
|
+
onReady?: (() => any) | undefined;
|
|
63
|
+
onCrop?: ((result: CropResult) => any) | undefined;
|
|
64
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
disabled: boolean;
|
|
67
66
|
height: string | number;
|
|
68
|
-
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
showToolbar: boolean;
|
|
69
69
|
src: string;
|
|
70
70
|
aspectRatio: number;
|
|
71
71
|
outputFormat: CropOutputFormat;
|
|
72
72
|
outputQuality: number;
|
|
73
73
|
maxOutputWidth: number;
|
|
74
74
|
maxOutputHeight: number;
|
|
75
|
-
|
|
75
|
+
showPreview: boolean;
|
|
76
76
|
circular: boolean;
|
|
77
77
|
modal: boolean;
|
|
78
78
|
modalTitle: string;
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -51,28 +51,28 @@ interface ImageCropperEmits {
|
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
|
-
crop: (result: CropResult) => any;
|
|
55
|
-
ready: () => any;
|
|
56
54
|
error: (error: Error) => any;
|
|
57
|
-
confirm: (result: CropResult) => any;
|
|
58
55
|
cancel: () => any;
|
|
56
|
+
ready: () => any;
|
|
57
|
+
crop: (result: CropResult) => any;
|
|
58
|
+
confirm: (result: CropResult) => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
|
-
onCrop?: ((result: CropResult) => any) | undefined;
|
|
61
|
-
onReady?: (() => any) | undefined;
|
|
62
60
|
onError?: ((error: Error) => any) | undefined;
|
|
63
|
-
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
64
61
|
onCancel?: (() => any) | undefined;
|
|
62
|
+
onReady?: (() => any) | undefined;
|
|
63
|
+
onCrop?: ((result: CropResult) => any) | undefined;
|
|
64
|
+
onConfirm?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
disabled: boolean;
|
|
67
66
|
height: string | number;
|
|
68
|
-
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
showToolbar: boolean;
|
|
69
69
|
src: string;
|
|
70
70
|
aspectRatio: number;
|
|
71
71
|
outputFormat: CropOutputFormat;
|
|
72
72
|
outputQuality: number;
|
|
73
73
|
maxOutputWidth: number;
|
|
74
74
|
maxOutputHeight: number;
|
|
75
|
-
|
|
75
|
+
showPreview: boolean;
|
|
76
76
|
circular: boolean;
|
|
77
77
|
modal: boolean;
|
|
78
78
|
modalTitle: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
+
import { DraggableEvent } from "vue-draggable-plus";
|
|
2
3
|
|
|
3
4
|
//#region src/components/C_Draggable/types.d.ts
|
|
4
5
|
interface DraggableItem {
|
|
@@ -117,30 +118,30 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
117
118
|
"onList-change"?: ((list: DraggableItem[]) => any) | undefined;
|
|
118
119
|
}>, {
|
|
119
120
|
sort: boolean;
|
|
120
|
-
emptyText: string;
|
|
121
|
-
modelValue: DraggableItem[];
|
|
122
121
|
disabled: boolean;
|
|
122
|
+
delay: number;
|
|
123
|
+
modelValue: DraggableItem[];
|
|
124
|
+
gap: string | number;
|
|
125
|
+
justifyContent: JustifyContent;
|
|
126
|
+
animation: number;
|
|
127
|
+
wrapperClass: string;
|
|
128
|
+
itemClass: string;
|
|
123
129
|
layout: LayoutMode;
|
|
130
|
+
direction: "vertical" | "horizontal";
|
|
131
|
+
emptyText: string;
|
|
124
132
|
group: string | GroupOptions;
|
|
125
|
-
animation: number;
|
|
126
|
-
delay: number;
|
|
127
133
|
handle: string;
|
|
128
134
|
showHandle: boolean;
|
|
129
135
|
ghostClass: string;
|
|
130
136
|
chosenClass: string;
|
|
131
137
|
dragClass: string;
|
|
132
|
-
wrapperClass: string;
|
|
133
138
|
listClass: string;
|
|
134
|
-
itemClass: string;
|
|
135
139
|
showEmptyState: boolean;
|
|
136
140
|
swapThreshold: number;
|
|
137
141
|
invertSwap: boolean;
|
|
138
|
-
direction: "vertical" | "horizontal";
|
|
139
142
|
gridColumns: number;
|
|
140
143
|
gridRows: number;
|
|
141
|
-
gap: string | number;
|
|
142
144
|
flexWrap: boolean;
|
|
143
|
-
justifyContent: JustifyContent;
|
|
144
145
|
alignItems: AlignItems;
|
|
145
146
|
customStyles: Record<string, string | number>;
|
|
146
147
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -153,6 +154,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
153
154
|
};
|
|
154
155
|
//#endregion
|
|
155
156
|
//#region src/components/C_Draggable/composables/useDraggableLayout.d.ts
|
|
157
|
+
type LayoutDragEvent = Partial<Pick<DraggableEvent<DraggableItem>, 'data' | 'clonedData' | 'oldIndex' | 'newIndex' | 'oldDraggableIndex' | 'newDraggableIndex' | 'from' | 'to' | 'pullMode'>>;
|
|
156
158
|
type EmitFn = {
|
|
157
159
|
(event: 'update:modelValue', value: DraggableItem[]): void;
|
|
158
160
|
(event: 'drag-start', dragEvent: DragEvent): void;
|
|
@@ -179,10 +181,10 @@ declare function useDraggableLayout(props: DraggableProps, emit: EmitFn): {
|
|
|
179
181
|
getItemClass: () => (string | {
|
|
180
182
|
'is-disabled': boolean | undefined;
|
|
181
183
|
} | undefined)[];
|
|
182
|
-
handleStart: (event:
|
|
183
|
-
handleEnd: (event:
|
|
184
|
-
handleAdd: (event:
|
|
185
|
-
handleRemove: (event:
|
|
184
|
+
handleStart: (event: LayoutDragEvent) => void;
|
|
185
|
+
handleEnd: (event: LayoutDragEvent) => void;
|
|
186
|
+
handleAdd: (event: LayoutDragEvent) => void;
|
|
187
|
+
handleRemove: (event: LayoutDragEvent) => void;
|
|
186
188
|
handleUpdate: () => void;
|
|
187
189
|
addItem: (item: DraggableItem, index?: number) => void;
|
|
188
190
|
removeItem: (index: number) => DraggableItem | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
+
import { DraggableEvent } from "vue-draggable-plus";
|
|
2
3
|
|
|
3
4
|
//#region src/components/C_Draggable/types.d.ts
|
|
4
5
|
interface DraggableItem {
|
|
@@ -117,30 +118,30 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
117
118
|
"onList-change"?: ((list: DraggableItem[]) => any) | undefined;
|
|
118
119
|
}>, {
|
|
119
120
|
sort: boolean;
|
|
120
|
-
emptyText: string;
|
|
121
|
-
modelValue: DraggableItem[];
|
|
122
121
|
disabled: boolean;
|
|
122
|
+
delay: number;
|
|
123
|
+
modelValue: DraggableItem[];
|
|
124
|
+
gap: string | number;
|
|
125
|
+
justifyContent: JustifyContent;
|
|
126
|
+
animation: number;
|
|
127
|
+
wrapperClass: string;
|
|
128
|
+
itemClass: string;
|
|
123
129
|
layout: LayoutMode;
|
|
130
|
+
direction: "vertical" | "horizontal";
|
|
131
|
+
emptyText: string;
|
|
124
132
|
group: string | GroupOptions;
|
|
125
|
-
animation: number;
|
|
126
|
-
delay: number;
|
|
127
133
|
handle: string;
|
|
128
134
|
showHandle: boolean;
|
|
129
135
|
ghostClass: string;
|
|
130
136
|
chosenClass: string;
|
|
131
137
|
dragClass: string;
|
|
132
|
-
wrapperClass: string;
|
|
133
138
|
listClass: string;
|
|
134
|
-
itemClass: string;
|
|
135
139
|
showEmptyState: boolean;
|
|
136
140
|
swapThreshold: number;
|
|
137
141
|
invertSwap: boolean;
|
|
138
|
-
direction: "vertical" | "horizontal";
|
|
139
142
|
gridColumns: number;
|
|
140
143
|
gridRows: number;
|
|
141
|
-
gap: string | number;
|
|
142
144
|
flexWrap: boolean;
|
|
143
|
-
justifyContent: JustifyContent;
|
|
144
145
|
alignItems: AlignItems;
|
|
145
146
|
customStyles: Record<string, string | number>;
|
|
146
147
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -153,6 +154,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
153
154
|
};
|
|
154
155
|
//#endregion
|
|
155
156
|
//#region src/components/C_Draggable/composables/useDraggableLayout.d.ts
|
|
157
|
+
type LayoutDragEvent = Partial<Pick<DraggableEvent<DraggableItem>, 'data' | 'clonedData' | 'oldIndex' | 'newIndex' | 'oldDraggableIndex' | 'newDraggableIndex' | 'from' | 'to' | 'pullMode'>>;
|
|
156
158
|
type EmitFn = {
|
|
157
159
|
(event: 'update:modelValue', value: DraggableItem[]): void;
|
|
158
160
|
(event: 'drag-start', dragEvent: DragEvent): void;
|
|
@@ -179,10 +181,10 @@ declare function useDraggableLayout(props: DraggableProps, emit: EmitFn): {
|
|
|
179
181
|
getItemClass: () => (string | {
|
|
180
182
|
'is-disabled': boolean | undefined;
|
|
181
183
|
} | undefined)[];
|
|
182
|
-
handleStart: (event:
|
|
183
|
-
handleEnd: (event:
|
|
184
|
-
handleAdd: (event:
|
|
185
|
-
handleRemove: (event:
|
|
184
|
+
handleStart: (event: LayoutDragEvent) => void;
|
|
185
|
+
handleEnd: (event: LayoutDragEvent) => void;
|
|
186
|
+
handleAdd: (event: LayoutDragEvent) => void;
|
|
187
|
+
handleRemove: (event: LayoutDragEvent) => void;
|
|
186
188
|
handleUpdate: () => void;
|
|
187
189
|
addItem: (item: DraggableItem, index?: number) => void;
|
|
188
190
|
removeItem: (index: number) => DraggableItem | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.cjs";
|
|
2
|
+
import { t as ComponentDensity } from "./density.cjs";
|
|
2
3
|
import * as vue from "vue";
|
|
3
4
|
import { CSSProperties, Component, ComputedRef, DeepReadonly, InjectionKey, MaybeRefOrGetter, Ref, ShallowRef, Slots, VNode } from "vue";
|
|
4
5
|
import { FormInst, FormItemInst, FormItemRule, FormRules } from "naive-ui";
|
|
@@ -485,6 +486,8 @@ interface FormConfig<T extends object = FormRecord> extends LayoutCallbacks<T> {
|
|
|
485
486
|
labelWidth?: string | number;
|
|
486
487
|
/** 尺寸,默认 'medium' */
|
|
487
488
|
size?: 'small' | 'medium' | 'large';
|
|
489
|
+
/** 与表格、搜索表单一致的密度;显式 size 和布局间距优先。 */
|
|
490
|
+
density?: ComponentDensity;
|
|
488
491
|
/** 禁用整个表单,默认 false */
|
|
489
492
|
disabled?: boolean;
|
|
490
493
|
/** 只读,默认 false */
|
|
@@ -634,8 +637,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
634
637
|
config?: FormConfig<T>; /** 当前表单实例的自定义渲染器,不污染全局注册表 */
|
|
635
638
|
renderers?: Record<string, FormRenderer>;
|
|
636
639
|
} & {
|
|
637
|
-
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
638
640
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
641
|
+
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
639
642
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
640
643
|
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
641
644
|
}> & (typeof globalThis extends {
|
|
@@ -672,7 +675,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
672
675
|
}>) => void;
|
|
673
676
|
attrs: any;
|
|
674
677
|
slots: FormSlots<T>;
|
|
675
|
-
emit: ((evt: "
|
|
678
|
+
emit: ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
|
|
676
679
|
}>) => vue.VNode & {
|
|
677
680
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
678
681
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.js";
|
|
2
|
+
import { t as ComponentDensity } from "./density.js";
|
|
2
3
|
import * as vue from "vue";
|
|
3
4
|
import { CSSProperties, Component, ComputedRef, DeepReadonly, InjectionKey, MaybeRefOrGetter, Ref, ShallowRef, Slots, VNode } from "vue";
|
|
4
5
|
import { FormInst, FormItemInst, FormItemRule, FormRules } from "naive-ui";
|
|
@@ -485,6 +486,8 @@ interface FormConfig<T extends object = FormRecord> extends LayoutCallbacks<T> {
|
|
|
485
486
|
labelWidth?: string | number;
|
|
486
487
|
/** 尺寸,默认 'medium' */
|
|
487
488
|
size?: 'small' | 'medium' | 'large';
|
|
489
|
+
/** 与表格、搜索表单一致的密度;显式 size 和布局间距优先。 */
|
|
490
|
+
density?: ComponentDensity;
|
|
488
491
|
/** 禁用整个表单,默认 false */
|
|
489
492
|
disabled?: boolean;
|
|
490
493
|
/** 只读,默认 false */
|
|
@@ -634,8 +637,8 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
634
637
|
config?: FormConfig<T>; /** 当前表单实例的自定义渲染器,不污染全局注册表 */
|
|
635
638
|
renderers?: Record<string, FormRenderer>;
|
|
636
639
|
} & {
|
|
637
|
-
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
638
640
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
641
|
+
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
639
642
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
640
643
|
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
641
644
|
}> & (typeof globalThis extends {
|
|
@@ -672,7 +675,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
672
675
|
}>) => void;
|
|
673
676
|
attrs: any;
|
|
674
677
|
slots: FormSlots<T>;
|
|
675
|
-
emit: ((evt: "
|
|
678
|
+
emit: ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-success", model: T) => void) & ((evt: "validate-error", errors: unknown) => void);
|
|
676
679
|
}>) => vue.VNode & {
|
|
677
680
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
678
681
|
};
|
|
@@ -259,11 +259,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
259
259
|
onReady?: ((graph: Graph) => any) | undefined;
|
|
260
260
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
261
261
|
}>, {
|
|
262
|
-
|
|
263
|
-
showToolbar: boolean;
|
|
262
|
+
theme: "light" | "dark";
|
|
264
263
|
width: string | number;
|
|
264
|
+
height: string | number;
|
|
265
265
|
readonly: boolean;
|
|
266
|
-
|
|
266
|
+
showToolbar: boolean;
|
|
267
267
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
268
268
|
declare const _default: typeof __VLS_export;
|
|
269
269
|
//#endregion
|
|
@@ -259,11 +259,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
259
259
|
onReady?: ((graph: Graph) => any) | undefined;
|
|
260
260
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
261
261
|
}>, {
|
|
262
|
-
|
|
263
|
-
showToolbar: boolean;
|
|
262
|
+
theme: "light" | "dark";
|
|
264
263
|
width: string | number;
|
|
264
|
+
height: string | number;
|
|
265
265
|
readonly: boolean;
|
|
266
|
-
|
|
266
|
+
showToolbar: boolean;
|
|
267
267
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
268
268
|
declare const _default: typeof __VLS_export;
|
|
269
269
|
//#endregion
|
package/dist/useFullscreen.d.cts
CHANGED
|
@@ -7,6 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
url?: string;
|
|
8
8
|
fileName?: string;
|
|
9
9
|
autoPreview?: boolean;
|
|
10
|
+
inline?: boolean;
|
|
10
11
|
};
|
|
11
12
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
13
|
download: (file: string | File) => any;
|
|
@@ -15,6 +16,7 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
15
16
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
16
17
|
onPreview?: ((file: string | File) => any) | undefined;
|
|
17
18
|
}>, {
|
|
19
|
+
inline: boolean;
|
|
18
20
|
fileName: string;
|
|
19
21
|
autoPreview: boolean;
|
|
20
22
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -77,6 +79,8 @@ interface FilePreviewProps {
|
|
|
77
79
|
url?: string;
|
|
78
80
|
fileName?: string;
|
|
79
81
|
autoPreview?: boolean;
|
|
82
|
+
/** 在容器中直接阅读文档,默认保留原有弹窗模式。 */
|
|
83
|
+
inline?: boolean;
|
|
80
84
|
}
|
|
81
85
|
/** 文件加载结果 — PDF */
|
|
82
86
|
interface PdfLoadResult {
|
package/dist/useFullscreen.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
url?: string;
|
|
8
8
|
fileName?: string;
|
|
9
9
|
autoPreview?: boolean;
|
|
10
|
+
inline?: boolean;
|
|
10
11
|
};
|
|
11
12
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
13
|
download: (file: string | File) => any;
|
|
@@ -15,6 +16,7 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
15
16
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
16
17
|
onPreview?: ((file: string | File) => any) | undefined;
|
|
17
18
|
}>, {
|
|
19
|
+
inline: boolean;
|
|
18
20
|
fileName: string;
|
|
19
21
|
autoPreview: boolean;
|
|
20
22
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -77,6 +79,8 @@ interface FilePreviewProps {
|
|
|
77
79
|
url?: string;
|
|
78
80
|
fileName?: string;
|
|
79
81
|
autoPreview?: boolean;
|
|
82
|
+
/** 在容器中直接阅读文档,默认保留原有弹窗模式。 */
|
|
83
|
+
inline?: boolean;
|
|
80
84
|
}
|
|
81
85
|
/** 文件加载结果 — PDF */
|
|
82
86
|
interface PdfLoadResult {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
+
import { MaybeRefOrGetter } from "vue";
|
|
2
3
|
|
|
3
4
|
//#region src/components/C_GlobalSearch/types.d.ts
|
|
4
5
|
type SearchIcon = string | object | ((...args: unknown[]) => unknown);
|
|
@@ -64,7 +65,7 @@ declare const _default: typeof __VLS_export;
|
|
|
64
65
|
* 已解耦:不依赖任何项目级 store / router,
|
|
65
66
|
* 所有外部数据通过 options 注入。
|
|
66
67
|
*/
|
|
67
|
-
declare function useGlobalSearch(options: GlobalSearchOptions): {
|
|
68
|
+
declare function useGlobalSearch(options: MaybeRefOrGetter<GlobalSearchOptions>): {
|
|
68
69
|
showDialog: vue.Ref<boolean, boolean>;
|
|
69
70
|
searchValue: vue.Ref<string, string>;
|
|
70
71
|
selectedIndex: vue.Ref<number, number>;
|
|
@@ -102,9 +103,13 @@ declare function useGlobalSearch(options: GlobalSearchOptions): {
|
|
|
102
103
|
closeDialog: () => void;
|
|
103
104
|
selectHistoryItem: (historyItem: HistoryItem) => void;
|
|
104
105
|
selectItem: (item: SearchMenuItem) => void;
|
|
105
|
-
handleEnter: () => void;
|
|
106
|
-
focusNext: () => void;
|
|
107
|
-
focusPrev: () => void;
|
|
106
|
+
handleEnter: (event?: KeyboardEvent) => void;
|
|
107
|
+
focusNext: (event?: KeyboardEvent) => void;
|
|
108
|
+
focusPrev: (event?: KeyboardEvent) => void;
|
|
109
|
+
handleInputKeydown: (event: KeyboardEvent) => void;
|
|
110
|
+
handleDialogKeydown: (event: KeyboardEvent) => void;
|
|
111
|
+
handleCompositionStart: () => void;
|
|
112
|
+
handleCompositionEnd: () => void;
|
|
108
113
|
};
|
|
109
114
|
//#endregion
|
|
110
115
|
export { SearchMenuItem as a, HistoryItem as i, _default as n, GlobalSearchOptions as r, useGlobalSearch as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
+
import { MaybeRefOrGetter } from "vue";
|
|
2
3
|
|
|
3
4
|
//#region src/components/C_GlobalSearch/types.d.ts
|
|
4
5
|
type SearchIcon = string | object | ((...args: unknown[]) => unknown);
|
|
@@ -64,7 +65,7 @@ declare const _default: typeof __VLS_export;
|
|
|
64
65
|
* 已解耦:不依赖任何项目级 store / router,
|
|
65
66
|
* 所有外部数据通过 options 注入。
|
|
66
67
|
*/
|
|
67
|
-
declare function useGlobalSearch(options: GlobalSearchOptions): {
|
|
68
|
+
declare function useGlobalSearch(options: MaybeRefOrGetter<GlobalSearchOptions>): {
|
|
68
69
|
showDialog: vue.Ref<boolean, boolean>;
|
|
69
70
|
searchValue: vue.Ref<string, string>;
|
|
70
71
|
selectedIndex: vue.Ref<number, number>;
|
|
@@ -102,9 +103,13 @@ declare function useGlobalSearch(options: GlobalSearchOptions): {
|
|
|
102
103
|
closeDialog: () => void;
|
|
103
104
|
selectHistoryItem: (historyItem: HistoryItem) => void;
|
|
104
105
|
selectItem: (item: SearchMenuItem) => void;
|
|
105
|
-
handleEnter: () => void;
|
|
106
|
-
focusNext: () => void;
|
|
107
|
-
focusPrev: () => void;
|
|
106
|
+
handleEnter: (event?: KeyboardEvent) => void;
|
|
107
|
+
focusNext: (event?: KeyboardEvent) => void;
|
|
108
|
+
focusPrev: (event?: KeyboardEvent) => void;
|
|
109
|
+
handleInputKeydown: (event: KeyboardEvent) => void;
|
|
110
|
+
handleDialogKeydown: (event: KeyboardEvent) => void;
|
|
111
|
+
handleCompositionStart: () => void;
|
|
112
|
+
handleCompositionEnd: () => void;
|
|
108
113
|
};
|
|
109
114
|
//#endregion
|
|
110
115
|
export { SearchMenuItem as a, HistoryItem as i, _default as n, GlobalSearchOptions as r, useGlobalSearch as t };
|
|
@@ -129,7 +129,9 @@ declare function useResponsiveColumns(containerRef: Ref<HTMLElement | undefined>
|
|
|
129
129
|
/**
|
|
130
130
|
*
|
|
131
131
|
*/
|
|
132
|
-
declare function useWaterFallLayout(items: Ref<WaterFallItem[]>, columns: Readonly<Ref<number>>, containerWidth: Readonly<Ref<number>>, gap: Ref<number
|
|
132
|
+
declare function useWaterFallLayout(items: Ref<WaterFallItem[]>, columns: Readonly<Ref<number>>, containerWidth: Readonly<Ref<number>>, gap: Ref<number>, options?: {
|
|
133
|
+
batchImageLoads?: boolean;
|
|
134
|
+
}): {
|
|
133
135
|
layoutItems: Readonly<Ref<readonly {
|
|
134
136
|
readonly item: {
|
|
135
137
|
readonly [x: string]: any;
|
|
@@ -163,6 +165,7 @@ declare function useWaterFallLayout(items: Ref<WaterFallItem[]>, columns: Readon
|
|
|
163
165
|
}[]>>;
|
|
164
166
|
containerHeight: Readonly<Ref<number, number>>;
|
|
165
167
|
cacheImageHeight: (id: string | number, realHeight: number, basisWidth?: number, src?: string) => void;
|
|
168
|
+
cacheItemExtraHeight: (id: string | number, extraHeight: number) => void;
|
|
166
169
|
relayout: () => void;
|
|
167
170
|
};
|
|
168
171
|
//#endregion
|
|
@@ -129,7 +129,9 @@ declare function useResponsiveColumns(containerRef: Ref<HTMLElement | undefined>
|
|
|
129
129
|
/**
|
|
130
130
|
*
|
|
131
131
|
*/
|
|
132
|
-
declare function useWaterFallLayout(items: Ref<WaterFallItem[]>, columns: Readonly<Ref<number>>, containerWidth: Readonly<Ref<number>>, gap: Ref<number
|
|
132
|
+
declare function useWaterFallLayout(items: Ref<WaterFallItem[]>, columns: Readonly<Ref<number>>, containerWidth: Readonly<Ref<number>>, gap: Ref<number>, options?: {
|
|
133
|
+
batchImageLoads?: boolean;
|
|
134
|
+
}): {
|
|
133
135
|
layoutItems: Readonly<Ref<readonly {
|
|
134
136
|
readonly item: {
|
|
135
137
|
readonly [x: string]: any;
|
|
@@ -163,6 +165,7 @@ declare function useWaterFallLayout(items: Ref<WaterFallItem[]>, columns: Readon
|
|
|
163
165
|
}[]>>;
|
|
164
166
|
containerHeight: Readonly<Ref<number, number>>;
|
|
165
167
|
cacheImageHeight: (id: string | number, realHeight: number, basisWidth?: number, src?: string) => void;
|
|
168
|
+
cacheItemExtraHeight: (id: string | number, extraHeight: number) => void;
|
|
166
169
|
relayout: () => void;
|
|
167
170
|
};
|
|
168
171
|
//#endregion
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -50,15 +50,15 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
50
50
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
51
51
|
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
size: number;
|
|
54
|
-
label: string;
|
|
55
53
|
color: string;
|
|
56
54
|
mode: RenderMode;
|
|
55
|
+
size: number;
|
|
56
|
+
label: string;
|
|
57
|
+
showBorder: boolean;
|
|
57
58
|
bgColor: string;
|
|
58
59
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
59
60
|
margin: number;
|
|
60
61
|
logo: LogoOptions;
|
|
61
|
-
showBorder: boolean;
|
|
62
62
|
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,15 +50,15 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
50
50
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
51
51
|
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
size: number;
|
|
54
|
-
label: string;
|
|
55
53
|
color: string;
|
|
56
54
|
mode: RenderMode;
|
|
55
|
+
size: number;
|
|
56
|
+
label: string;
|
|
57
|
+
showBorder: boolean;
|
|
57
58
|
bgColor: string;
|
|
58
59
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
59
60
|
margin: number;
|
|
60
61
|
logo: LogoOptions;
|
|
61
|
-
showBorder: boolean;
|
|
62
62
|
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|