@robot-admin/naive-ui-components 0.30.1 → 0.31.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 +16 -0
- package/README.md +7 -5
- package/README_EN.md +7 -5
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_Cascade.css +7 -5
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_City.css +48 -37
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_CollapsePanel.css +41 -41
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_Date.css +5 -5
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_Editor.css +18 -18
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +72 -41
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +46 -16
- package/dist/C_Form.css +46 -16
- package/dist/C_FormSearch.css +134 -80
- package/dist/C_FullCalendar2.cjs +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Select.cjs +1 -0
- package/dist/C_Select.css +30 -0
- package/dist/C_Select.d.cts +2 -0
- package/dist/C_Select.d.ts +2 -0
- package/dist/C_Select.js +1 -0
- package/dist/C_Select2.cjs +1 -0
- package/dist/C_Select2.js +1 -0
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +46 -16
- package/dist/C_Table.d.ts +2 -1
- package/dist/C_Table2.cjs +3 -3
- package/dist/C_Table2.js +3 -3
- package/dist/C_TagsView.d.cts +1 -1
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Time.css +4 -4
- package/dist/C_Time.d.cts +5 -5
- package/dist/C_Time.d.ts +5 -5
- package/dist/C_Time2.cjs +1 -1
- package/dist/C_Time2.js +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.css +43 -41
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.d.ts +2 -1
- package/dist/C_Upload.css +58 -58
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/actionIcon.cjs +1 -0
- package/dist/actionIcon.js +1 -0
- 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 +10 -7
- package/dist/constants4.d.ts +10 -7
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data2.d.cts +9 -9
- package/dist/data2.d.ts +9 -9
- package/dist/dateRange.d.cts +6 -4
- package/dist/dateRange.d.ts +6 -4
- package/dist/formField.d.cts +6 -0
- package/dist/formField.d.ts +6 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +17 -16
- package/dist/index.d.ts +18 -16
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.cts +4 -4
- package/dist/index10.vue.d.ts +4 -4
- package/dist/index11.vue.d.cts +4 -4
- package/dist/index12.vue.d.ts +3 -3
- package/dist/index13.vue.d.cts +3 -3
- package/dist/index15.vue.d.ts +2 -2
- package/dist/index16.vue.d.cts +2 -2
- package/dist/index16.vue.d.ts +8 -8
- package/dist/index17.vue.d.cts +8 -8
- package/dist/index17.vue.d.ts +2 -2
- package/dist/index18.vue.d.cts +2 -2
- package/dist/index18.vue.d.ts +1 -1
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +4 -4
- package/dist/index21.vue.d.cts +4 -4
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index22.vue.d.ts +2 -2
- package/dist/index23.vue.d.cts +1 -1
- package/dist/index23.vue.d.ts +1 -1
- package/dist/index25.vue.d.cts +46 -94
- package/dist/index25.vue.d.ts +46 -94
- package/dist/index26.vue.d.cts +95 -37
- package/dist/index26.vue.d.ts +95 -37
- package/dist/index27.vue.d.cts +34 -8
- package/dist/index27.vue.d.ts +34 -8
- package/dist/index28.vue.d.cts +9 -86
- package/dist/index28.vue.d.ts +9 -86
- package/dist/index29.vue.d.cts +85 -99
- package/dist/index29.vue.d.ts +85 -99
- package/dist/index3.vue.d.cts +5 -5
- package/dist/index3.vue.d.ts +5 -5
- package/dist/index30.vue.d.cts +94 -59
- package/dist/index30.vue.d.ts +94 -59
- package/dist/index31.vue.d.cts +79 -0
- package/dist/index31.vue.d.ts +79 -0
- package/dist/index6.vue.d.ts +5 -2
- package/dist/index7.vue.d.cts +5 -2
- package/dist/index7.vue.d.ts +3 -3
- package/dist/index8.vue.d.cts +3 -3
- package/dist/index8.vue.d.ts +7 -4
- package/dist/index9.vue.d.cts +7 -4
- package/dist/index9.vue.d.ts +4 -4
- package/dist/localTime.cjs +1 -0
- package/dist/localTime.js +1 -0
- package/dist/mapUtils.d.cts +2 -2
- package/dist/mapUtils.d.ts +2 -2
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/{options.cjs → selectPresentation.cjs} +1 -1
- package/dist/{options.js → selectPresentation.js} +1 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/style.css +449 -347
- package/dist/temporalField.cjs +1 -0
- package/dist/temporalField.js +1 -0
- package/dist/tree-select.cjs +1 -0
- package/dist/tree-select.js +1 -0
- package/dist/types2.d.ts +4 -0
- package/dist/types3.d.cts +4 -0
- package/dist/useCalendarEvents.d.cts +10 -2
- package/dist/useCalendarEvents.d.ts +10 -2
- package/dist/useCollapsePanel.d.cts +10 -6
- package/dist/useCollapsePanel.d.ts +10 -6
- package/dist/useCropperCore.d.cts +4 -4
- package/dist/useCropperCore.d.ts +4 -4
- package/dist/useDynamicFormState.d.cts +2 -2
- package/dist/useDynamicFormState.d.ts +2 -2
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFormConfig.d.cts +4 -2
- package/dist/useFormConfig.d.ts +4 -2
- package/dist/useFullscreen.d.cts +9 -3
- package/dist/useFullscreen.d.ts +9 -3
- package/dist/useGlobalSearch.d.cts +2 -16
- package/dist/useGlobalSearch.d.ts +2 -16
- 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 +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +12 -12
- package/dist/useSplitResize.d.ts +12 -12
- package/dist/useTableQuery.d.cts +8 -8
- package/dist/useTableQuery.d.ts +8 -8
- package/dist/useTimeSelection.d.cts +36 -17
- package/dist/useTimeSelection.d.ts +36 -17
- package/dist/useWorkflowValidation.d.cts +36 -36
- package/dist/useWorkflowValidation.d.ts +36 -36
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/docs/components.en.md +5 -2
- package/docs/components.md +5 -2
- package/docs/guides/data-workflows.md +43 -0
- package/docs/guides/search-workflows.md +3 -3
- package/docs/guides/usage.en.md +8 -0
- package/docs/guides/usage.md +14 -0
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){return e.mode===`formatted`?{formattedValue:e.value,"onUpdate:formattedValue":t}:{value:e.value,"onUpdate:value":t}}function t(e,t=typeof e==`string`?`formatted`:`timestamp`){return t===`formatted`?{mode:t,value:typeof e==`string`?e:null}:{mode:t,value:typeof e==`number`&&Number.isFinite(e)?e:null}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){return e.mode===`formatted`?{formattedValue:e.value,"onUpdate:formattedValue":t}:{value:e.value,"onUpdate:value":t}}function t(e,t=typeof e==`string`?`formatted`:`timestamp`){return t===`formatted`?{mode:t,value:typeof e==`string`?e:null}:{mode:t,value:typeof e==`number`&&Number.isFinite(e)?e:null}}export{t as n,e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk.cjs`);let e=require(`naive-ui`);Object.defineProperty(exports,`default`,{enumerable:!0,get:function(){return e.NTreeSelect}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{NTreeSelect as e}from"naive-ui";export{e as default};
|
package/dist/types2.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ interface DateRuntimeProps<M extends DatePickerMode | undefined = DatePickerMode
|
|
|
11
11
|
startPlaceholder?: string;
|
|
12
12
|
endPlaceholder?: string;
|
|
13
13
|
disabled?: boolean;
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
size?: 'small' | 'medium' | 'large';
|
|
16
|
+
clearable?: boolean;
|
|
17
|
+
format?: string;
|
|
14
18
|
disabledBeforeToday?: boolean;
|
|
15
19
|
disabledAfterToday?: boolean;
|
|
16
20
|
valueFormat?: string;
|
package/dist/types3.d.cts
CHANGED
|
@@ -11,6 +11,10 @@ interface DateRuntimeProps<M extends DatePickerMode | undefined = DatePickerMode
|
|
|
11
11
|
startPlaceholder?: string;
|
|
12
12
|
endPlaceholder?: string;
|
|
13
13
|
disabled?: boolean;
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
size?: 'small' | 'medium' | 'large';
|
|
16
|
+
clearable?: boolean;
|
|
17
|
+
format?: string;
|
|
14
18
|
disabledBeforeToday?: boolean;
|
|
15
19
|
disabledAfterToday?: boolean;
|
|
16
20
|
valueFormat?: string;
|
|
@@ -26,7 +26,10 @@ interface CalendarEditForm {
|
|
|
26
26
|
color: string;
|
|
27
27
|
}
|
|
28
28
|
interface CalendarProps {
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* 视图、布局与交互扩展;数据、插件和编辑开关由组件受控属性管理。
|
|
31
|
+
* eventDrop/eventResize 接管写回。保留内置写回时可监听 event-dropped/event-resized。
|
|
32
|
+
*/
|
|
30
33
|
config?: Omit<CalendarOptions, 'events' | 'eventSources' | 'plugins' | 'initialView' | 'editable'>;
|
|
31
34
|
events?: CalendarEvent[];
|
|
32
35
|
initialView?: CalendarViewType;
|
|
@@ -43,6 +46,8 @@ interface CalendarEmits {
|
|
|
43
46
|
title: string;
|
|
44
47
|
}];
|
|
45
48
|
'event-dropped': [event: Partial<CalendarEvent>];
|
|
49
|
+
/** 由内置交互更新结束时间时发出,同时保留 event-updated。 */
|
|
50
|
+
'event-resized': [event: Partial<CalendarEvent>];
|
|
46
51
|
}
|
|
47
52
|
interface CalendarExpose {
|
|
48
53
|
getApi: () => CalendarApi | undefined;
|
|
@@ -62,6 +67,7 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
62
67
|
title: string;
|
|
63
68
|
}) => any;
|
|
64
69
|
"event-dropped": (event: Partial<CalendarEvent>) => any;
|
|
70
|
+
"event-resized": (event: Partial<CalendarEvent>) => any;
|
|
65
71
|
}, string, vue.PublicProps, Readonly<CalendarProps> & Readonly<{
|
|
66
72
|
"onUpdate:events"?: ((events: CalendarEvent[]) => any) | undefined;
|
|
67
73
|
"onEvent-added"?: ((event: CalendarEvent) => any) | undefined;
|
|
@@ -71,10 +77,11 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
71
77
|
title: string;
|
|
72
78
|
}) => any) | undefined;
|
|
73
79
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
80
|
+
"onEvent-resized"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
74
81
|
}>, {
|
|
75
|
-
events: CalendarEvent[];
|
|
76
82
|
initialView: CalendarViewType;
|
|
77
83
|
editable: boolean;
|
|
84
|
+
events: CalendarEvent[];
|
|
78
85
|
showAddDialog: boolean;
|
|
79
86
|
showEditDialog: boolean;
|
|
80
87
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -106,6 +113,7 @@ type EmitFn$1 = {
|
|
|
106
113
|
title: string;
|
|
107
114
|
}): void;
|
|
108
115
|
(event: 'event-dropped', eventData: Partial<CalendarEvent>): void;
|
|
116
|
+
(event: 'event-resized', eventData: Partial<CalendarEvent>): void;
|
|
109
117
|
};
|
|
110
118
|
/**
|
|
111
119
|
*
|
|
@@ -26,7 +26,10 @@ interface CalendarEditForm {
|
|
|
26
26
|
color: string;
|
|
27
27
|
}
|
|
28
28
|
interface CalendarProps {
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* 视图、布局与交互扩展;数据、插件和编辑开关由组件受控属性管理。
|
|
31
|
+
* eventDrop/eventResize 接管写回。保留内置写回时可监听 event-dropped/event-resized。
|
|
32
|
+
*/
|
|
30
33
|
config?: Omit<CalendarOptions, 'events' | 'eventSources' | 'plugins' | 'initialView' | 'editable'>;
|
|
31
34
|
events?: CalendarEvent[];
|
|
32
35
|
initialView?: CalendarViewType;
|
|
@@ -43,6 +46,8 @@ interface CalendarEmits {
|
|
|
43
46
|
title: string;
|
|
44
47
|
}];
|
|
45
48
|
'event-dropped': [event: Partial<CalendarEvent>];
|
|
49
|
+
/** 由内置交互更新结束时间时发出,同时保留 event-updated。 */
|
|
50
|
+
'event-resized': [event: Partial<CalendarEvent>];
|
|
46
51
|
}
|
|
47
52
|
interface CalendarExpose {
|
|
48
53
|
getApi: () => CalendarApi | undefined;
|
|
@@ -62,6 +67,7 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
62
67
|
title: string;
|
|
63
68
|
}) => any;
|
|
64
69
|
"event-dropped": (event: Partial<CalendarEvent>) => any;
|
|
70
|
+
"event-resized": (event: Partial<CalendarEvent>) => any;
|
|
65
71
|
}, string, vue.PublicProps, Readonly<CalendarProps> & Readonly<{
|
|
66
72
|
"onUpdate:events"?: ((events: CalendarEvent[]) => any) | undefined;
|
|
67
73
|
"onEvent-added"?: ((event: CalendarEvent) => any) | undefined;
|
|
@@ -71,10 +77,11 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
71
77
|
title: string;
|
|
72
78
|
}) => any) | undefined;
|
|
73
79
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
80
|
+
"onEvent-resized"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
74
81
|
}>, {
|
|
75
|
-
events: CalendarEvent[];
|
|
76
82
|
initialView: CalendarViewType;
|
|
77
83
|
editable: boolean;
|
|
84
|
+
events: CalendarEvent[];
|
|
78
85
|
showAddDialog: boolean;
|
|
79
86
|
showEditDialog: boolean;
|
|
80
87
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -106,6 +113,7 @@ type EmitFn$1 = {
|
|
|
106
113
|
title: string;
|
|
107
114
|
}): void;
|
|
108
115
|
(event: 'event-dropped', eventData: Partial<CalendarEvent>): void;
|
|
116
|
+
(event: 'event-resized', eventData: Partial<CalendarEvent>): void;
|
|
109
117
|
};
|
|
110
118
|
/**
|
|
111
119
|
*
|
|
@@ -33,7 +33,9 @@ interface CollapsePanelExpose {
|
|
|
33
33
|
scrollToPanel: (key: string) => void;
|
|
34
34
|
}
|
|
35
35
|
interface CollapsePanelEmits {
|
|
36
|
+
/** 受控模式的变更请求。 */
|
|
36
37
|
'update:activeKeys': [keys: string[]];
|
|
38
|
+
/** 以下事件仅在实际面板状态变化后发出。 */
|
|
37
39
|
expand: [key: string];
|
|
38
40
|
collapse: [key: string];
|
|
39
41
|
change: [activeKeys: string[]];
|
|
@@ -71,22 +73,22 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
71
73
|
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
74
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
73
75
|
change: (activeKeys: string[]) => any;
|
|
76
|
+
collapse: (key: string) => any;
|
|
74
77
|
expand: (key: string) => any;
|
|
75
78
|
"update:activeKeys": (keys: string[]) => any;
|
|
76
|
-
collapse: (key: string) => any;
|
|
77
79
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
78
80
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
79
82
|
onExpand?: ((key: string) => any) | undefined;
|
|
80
83
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
81
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
82
84
|
}>, {
|
|
83
|
-
|
|
85
|
+
bordered: boolean;
|
|
84
86
|
activeKeys: string[];
|
|
85
87
|
defaultActiveKeys: string[];
|
|
86
88
|
accordion: boolean;
|
|
87
89
|
variant: CollapsePanelVariant;
|
|
88
90
|
expandIconPosition: ExpandIconPosition;
|
|
89
|
-
|
|
91
|
+
persistKey: string;
|
|
90
92
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
91
93
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
92
94
|
declare const _default: typeof __VLS_export;
|
|
@@ -108,7 +110,9 @@ interface UseCollapsePanelOptions {
|
|
|
108
110
|
accordion: Ref<boolean>;
|
|
109
111
|
/** localStorage 持久化 key */
|
|
110
112
|
persistKey: Ref<string | undefined>;
|
|
111
|
-
/** activeKeys
|
|
113
|
+
/** 请求更新 activeKeys,受控模式由外部确认 */
|
|
114
|
+
onUpdate?: (keys: string[]) => void;
|
|
115
|
+
/** 已生效的 activeKeys 变化回调 */
|
|
112
116
|
onChange?: (keys: string[]) => void;
|
|
113
117
|
/** 单面板展开回调 */
|
|
114
118
|
onExpand?: (key: string) => void;
|
|
@@ -120,7 +124,7 @@ interface UseCollapsePanelOptions {
|
|
|
120
124
|
* 折叠面板展开/折叠核心逻辑
|
|
121
125
|
*/
|
|
122
126
|
declare function useCollapsePanel(options: UseCollapsePanelOptions): {
|
|
123
|
-
currentKeys: vue.
|
|
127
|
+
currentKeys: vue.ComputedRef<string[]>;
|
|
124
128
|
renderedOnce: Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
|
|
125
129
|
isExpanded: (key: string) => boolean;
|
|
126
130
|
shouldRender: (item: CollapsePanelItem) => boolean;
|
|
@@ -33,7 +33,9 @@ interface CollapsePanelExpose {
|
|
|
33
33
|
scrollToPanel: (key: string) => void;
|
|
34
34
|
}
|
|
35
35
|
interface CollapsePanelEmits {
|
|
36
|
+
/** 受控模式的变更请求。 */
|
|
36
37
|
'update:activeKeys': [keys: string[]];
|
|
38
|
+
/** 以下事件仅在实际面板状态变化后发出。 */
|
|
37
39
|
expand: [key: string];
|
|
38
40
|
collapse: [key: string];
|
|
39
41
|
change: [activeKeys: string[]];
|
|
@@ -71,22 +73,22 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
71
73
|
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
74
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
73
75
|
change: (activeKeys: string[]) => any;
|
|
76
|
+
collapse: (key: string) => any;
|
|
74
77
|
expand: (key: string) => any;
|
|
75
78
|
"update:activeKeys": (keys: string[]) => any;
|
|
76
|
-
collapse: (key: string) => any;
|
|
77
79
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
78
80
|
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
81
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
79
82
|
onExpand?: ((key: string) => any) | undefined;
|
|
80
83
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
81
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
82
84
|
}>, {
|
|
83
|
-
|
|
85
|
+
bordered: boolean;
|
|
84
86
|
activeKeys: string[];
|
|
85
87
|
defaultActiveKeys: string[];
|
|
86
88
|
accordion: boolean;
|
|
87
89
|
variant: CollapsePanelVariant;
|
|
88
90
|
expandIconPosition: ExpandIconPosition;
|
|
89
|
-
|
|
91
|
+
persistKey: string;
|
|
90
92
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
91
93
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
92
94
|
declare const _default: typeof __VLS_export;
|
|
@@ -108,7 +110,9 @@ interface UseCollapsePanelOptions {
|
|
|
108
110
|
accordion: Ref<boolean>;
|
|
109
111
|
/** localStorage 持久化 key */
|
|
110
112
|
persistKey: Ref<string | undefined>;
|
|
111
|
-
/** activeKeys
|
|
113
|
+
/** 请求更新 activeKeys,受控模式由外部确认 */
|
|
114
|
+
onUpdate?: (keys: string[]) => void;
|
|
115
|
+
/** 已生效的 activeKeys 变化回调 */
|
|
112
116
|
onChange?: (keys: string[]) => void;
|
|
113
117
|
/** 单面板展开回调 */
|
|
114
118
|
onExpand?: (key: string) => void;
|
|
@@ -120,7 +124,7 @@ interface UseCollapsePanelOptions {
|
|
|
120
124
|
* 折叠面板展开/折叠核心逻辑
|
|
121
125
|
*/
|
|
122
126
|
declare function useCollapsePanel(options: UseCollapsePanelOptions): {
|
|
123
|
-
currentKeys: vue.
|
|
127
|
+
currentKeys: vue.ComputedRef<string[]>;
|
|
124
128
|
renderedOnce: Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
|
|
125
129
|
isExpanded: (key: string) => boolean;
|
|
126
130
|
shouldRender: (item: CollapsePanelItem) => boolean;
|
|
@@ -63,13 +63,13 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
|
|
|
63
63
|
onCancel?: (() => any) | undefined;
|
|
64
64
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
disabled: boolean;
|
|
67
66
|
height: string | number;
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
src: string;
|
|
70
69
|
showToolbar: boolean;
|
|
70
|
+
modal: boolean;
|
|
71
|
+
showPreview: boolean;
|
|
71
72
|
modalTitle: string;
|
|
72
|
-
src: string;
|
|
73
73
|
aspectRatio: number;
|
|
74
74
|
outputFormat: CropOutputFormat;
|
|
75
75
|
outputQuality: number;
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -63,13 +63,13 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
|
|
|
63
63
|
onCancel?: (() => any) | undefined;
|
|
64
64
|
onCrop?: ((result: CropResult) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
disabled: boolean;
|
|
67
66
|
height: string | number;
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
disabled: boolean;
|
|
68
|
+
src: string;
|
|
70
69
|
showToolbar: boolean;
|
|
70
|
+
modal: boolean;
|
|
71
|
+
showPreview: boolean;
|
|
71
72
|
modalTitle: string;
|
|
72
|
-
src: string;
|
|
73
73
|
aspectRatio: number;
|
|
74
74
|
outputFormat: CropOutputFormat;
|
|
75
75
|
outputQuality: number;
|
|
@@ -13,9 +13,9 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
13
13
|
renderers?: Record<string, FormRenderer>;
|
|
14
14
|
} & {
|
|
15
15
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
16
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
16
17
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
17
18
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
18
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
19
19
|
}> & (typeof globalThis extends {
|
|
20
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
21
21
|
} ? P : {});
|
|
@@ -52,7 +52,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
52
52
|
}>) => void;
|
|
53
53
|
attrs: any;
|
|
54
54
|
slots: FormSlots<T>;
|
|
55
|
-
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "
|
|
55
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void);
|
|
56
56
|
}>) => vue.VNode & {
|
|
57
57
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
58
58
|
};
|
|
@@ -13,9 +13,9 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
13
13
|
renderers?: Record<string, FormRenderer>;
|
|
14
14
|
} & {
|
|
15
15
|
"onUpdate:modelValue"?: ((model: T) => any) | undefined;
|
|
16
|
+
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
16
17
|
onSubmit?: ((payload: SubmitEventPayload<T>) => any) | undefined;
|
|
17
18
|
"onValidate-success"?: ((model: T) => any) | undefined;
|
|
18
|
-
"onValidate-error"?: ((errors: unknown) => any) | undefined;
|
|
19
19
|
}> & (typeof globalThis extends {
|
|
20
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
21
21
|
} ? P : {});
|
|
@@ -52,7 +52,7 @@ declare const __VLS_export: <T extends object = FormRecord>(__VLS_props: NonNull
|
|
|
52
52
|
}>) => void;
|
|
53
53
|
attrs: any;
|
|
54
54
|
slots: FormSlots<T>;
|
|
55
|
-
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "
|
|
55
|
+
emit: ((evt: "update:modelValue", model: T) => void) & ((evt: "validate-error", errors: unknown) => void) & ((evt: "submit", payload: SubmitEventPayload<T>) => void) & ((evt: "validate-success", model: T) => void);
|
|
56
56
|
}>) => vue.VNode & {
|
|
57
57
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
58
58
|
};
|
|
@@ -264,10 +264,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
264
264
|
onReady?: ((graph: Graph) => any) | undefined;
|
|
265
265
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
266
266
|
}>, {
|
|
267
|
-
theme: "light" | "dark";
|
|
268
267
|
width: string | number;
|
|
269
268
|
height: string | number;
|
|
270
269
|
readonly: boolean;
|
|
270
|
+
theme: "light" | "dark";
|
|
271
271
|
showToolbar: boolean;
|
|
272
272
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
273
273
|
declare const _default: typeof __VLS_export;
|
|
@@ -264,10 +264,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
264
264
|
onReady?: ((graph: Graph) => any) | undefined;
|
|
265
265
|
"onData-change"?: ((data: DiagramData) => any) | undefined;
|
|
266
266
|
}>, {
|
|
267
|
-
theme: "light" | "dark";
|
|
268
267
|
width: string | number;
|
|
269
268
|
height: string | number;
|
|
270
269
|
readonly: boolean;
|
|
270
|
+
theme: "light" | "dark";
|
|
271
271
|
showToolbar: boolean;
|
|
272
272
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
273
273
|
declare const _default: typeof __VLS_export;
|
package/dist/useFormConfig.d.cts
CHANGED
|
@@ -47,7 +47,7 @@ type LabelPlacement = 'left' | 'top';
|
|
|
47
47
|
* 支持的表单控件类型
|
|
48
48
|
* @description 所有支持的表单输入控件类型
|
|
49
49
|
*/
|
|
50
|
-
type ComponentType = 'input' | 'textarea' | 'inputNumber' | 'select' | 'checkbox' | 'radio' | 'switch' | 'slider' | 'rate' | 'datePicker' | 'daterange' | 'timePicker' | 'cascader' | 'colorPicker' | 'upload' | 'editor';
|
|
50
|
+
type ComponentType = 'input' | 'textarea' | 'inputNumber' | 'select' | 'checkbox' | 'radio' | 'switch' | 'slider' | 'rate' | 'datePicker' | 'daterange' | 'timePicker' | 'cascader' | 'treeSelect' | 'colorPicker' | 'upload' | 'editor';
|
|
51
51
|
/**
|
|
52
52
|
* 选项项接口
|
|
53
53
|
* @description 用于 select、checkbox、radio 等组件的选项配置
|
|
@@ -288,6 +288,8 @@ interface FormOptionBase<T extends object> {
|
|
|
288
288
|
placeholder?: string;
|
|
289
289
|
rules?: readonly FormValidationRule[];
|
|
290
290
|
attrs?: Record<string, unknown>;
|
|
291
|
+
/** datePicker、daterange、timePicker 的模型值类型。默认保持时间戳。 */
|
|
292
|
+
valueMode?: 'timestamp' | 'formatted';
|
|
291
293
|
/** 外部受控选项状态;仅呈现,不触发或订阅外部数据源。 */
|
|
292
294
|
optionsState?: OptionsState;
|
|
293
295
|
children?: OptionItem[];
|
|
@@ -308,7 +310,7 @@ interface FormOptionBase<T extends object> {
|
|
|
308
310
|
disabled?: boolean | ((formModel: FormModel<T>) => boolean);
|
|
309
311
|
/** 字段级只读(优先级高于全局 config.readonly) */
|
|
310
312
|
readonly?: boolean | ((formModel: FormModel<T>) => boolean);
|
|
311
|
-
/** 异步数据源:select / cascader / checkbox / radio 的远程选项加载 */
|
|
313
|
+
/** 异步数据源:select / cascader / treeSelect / checkbox / radio 的远程选项加载 */
|
|
312
314
|
asyncOptions?: (formModel: FormModel<T>, context?: AsyncOptionsContext) => Promise<readonly OptionItem[]>;
|
|
313
315
|
/** 联动校验规则:根据表单数据动态返回校验规则 */
|
|
314
316
|
rulesWhen?: (formModel: FormModel<T>) => readonly FormValidationRule[];
|
package/dist/useFormConfig.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ type LabelPlacement = 'left' | 'top';
|
|
|
54
54
|
* 支持的表单控件类型
|
|
55
55
|
* @description 所有支持的表单输入控件类型
|
|
56
56
|
*/
|
|
57
|
-
type ComponentType = 'input' | 'textarea' | 'inputNumber' | 'select' | 'checkbox' | 'radio' | 'switch' | 'slider' | 'rate' | 'datePicker' | 'daterange' | 'timePicker' | 'cascader' | 'colorPicker' | 'upload' | 'editor';
|
|
57
|
+
type ComponentType = 'input' | 'textarea' | 'inputNumber' | 'select' | 'checkbox' | 'radio' | 'switch' | 'slider' | 'rate' | 'datePicker' | 'daterange' | 'timePicker' | 'cascader' | 'treeSelect' | 'colorPicker' | 'upload' | 'editor';
|
|
58
58
|
/**
|
|
59
59
|
* 选项项接口
|
|
60
60
|
* @description 用于 select、checkbox、radio 等组件的选项配置
|
|
@@ -295,6 +295,8 @@ interface FormOptionBase<T extends object> {
|
|
|
295
295
|
placeholder?: string;
|
|
296
296
|
rules?: readonly FormValidationRule[];
|
|
297
297
|
attrs?: Record<string, unknown>;
|
|
298
|
+
/** datePicker、daterange、timePicker 的模型值类型。默认保持时间戳。 */
|
|
299
|
+
valueMode?: 'timestamp' | 'formatted';
|
|
298
300
|
/** 外部受控选项状态;仅呈现,不触发或订阅外部数据源。 */
|
|
299
301
|
optionsState?: OptionsState;
|
|
300
302
|
children?: OptionItem[];
|
|
@@ -315,7 +317,7 @@ interface FormOptionBase<T extends object> {
|
|
|
315
317
|
disabled?: boolean | ((formModel: FormModel<T>) => boolean);
|
|
316
318
|
/** 字段级只读(优先级高于全局 config.readonly) */
|
|
317
319
|
readonly?: boolean | ((formModel: FormModel<T>) => boolean);
|
|
318
|
-
/** 异步数据源:select / cascader / checkbox / radio 的远程选项加载 */
|
|
320
|
+
/** 异步数据源:select / cascader / treeSelect / checkbox / radio 的远程选项加载 */
|
|
319
321
|
asyncOptions?: (formModel: FormModel<T>, context?: AsyncOptionsContext) => Promise<readonly OptionItem[]>;
|
|
320
322
|
/** 联动校验规则:根据表单数据动态返回校验规则 */
|
|
321
323
|
rulesWhen?: (formModel: FormModel<T>) => readonly FormValidationRule[];
|
package/dist/useFullscreen.d.cts
CHANGED
|
@@ -74,6 +74,8 @@ interface FilePreviewProps {
|
|
|
74
74
|
url?: string;
|
|
75
75
|
fileName?: string;
|
|
76
76
|
autoPreview?: boolean;
|
|
77
|
+
/** 由外部按钮控制弹窗。传入后仅渲染弹窗,不显示默认文件卡片。 */
|
|
78
|
+
show?: boolean;
|
|
77
79
|
/** 在容器中直接阅读文档,默认保留原有弹窗模式。 */
|
|
78
80
|
inline?: boolean;
|
|
79
81
|
}
|
|
@@ -94,15 +96,18 @@ interface ExcelLoadResult {
|
|
|
94
96
|
//#endregion
|
|
95
97
|
//#region src/components/C_FilePreview/index.vue.d.ts
|
|
96
98
|
declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
97
|
-
preview: (file: string | File) => any;
|
|
98
99
|
download: (file: string | File) => any;
|
|
100
|
+
preview: (file: string | File) => any;
|
|
101
|
+
"update:show": (show: boolean) => any;
|
|
99
102
|
}, string, vue.PublicProps, Readonly<FilePreviewProps> & Readonly<{
|
|
100
|
-
onPreview?: ((file: string | File) => any) | undefined;
|
|
101
103
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
104
|
+
onPreview?: ((file: string | File) => any) | undefined;
|
|
105
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
102
106
|
}>, {
|
|
107
|
+
show: boolean;
|
|
108
|
+
inline: boolean;
|
|
103
109
|
fileName: string;
|
|
104
110
|
autoPreview: boolean;
|
|
105
|
-
inline: boolean;
|
|
106
111
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
107
112
|
declare const _default: typeof __VLS_export;
|
|
108
113
|
//#endregion
|
|
@@ -170,6 +175,7 @@ declare function useFilePreview(options: UseFilePreviewOptions, emit: {
|
|
|
170
175
|
fileType: vue.ComputedRef<FilePreviewType>;
|
|
171
176
|
fileConfig: vue.ComputedRef<FileConfig>;
|
|
172
177
|
loadFile: () => Promise<boolean>;
|
|
178
|
+
loadPreview: () => Promise<void>;
|
|
173
179
|
openPreview: () => Promise<void>;
|
|
174
180
|
downloadFile: () => void;
|
|
175
181
|
clearPreview: () => void;
|
package/dist/useFullscreen.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ interface FilePreviewProps {
|
|
|
74
74
|
url?: string;
|
|
75
75
|
fileName?: string;
|
|
76
76
|
autoPreview?: boolean;
|
|
77
|
+
/** 由外部按钮控制弹窗。传入后仅渲染弹窗,不显示默认文件卡片。 */
|
|
78
|
+
show?: boolean;
|
|
77
79
|
/** 在容器中直接阅读文档,默认保留原有弹窗模式。 */
|
|
78
80
|
inline?: boolean;
|
|
79
81
|
}
|
|
@@ -94,15 +96,18 @@ interface ExcelLoadResult {
|
|
|
94
96
|
//#endregion
|
|
95
97
|
//#region src/components/C_FilePreview/index.vue.d.ts
|
|
96
98
|
declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
97
|
-
preview: (file: string | File) => any;
|
|
98
99
|
download: (file: string | File) => any;
|
|
100
|
+
preview: (file: string | File) => any;
|
|
101
|
+
"update:show": (show: boolean) => any;
|
|
99
102
|
}, string, vue.PublicProps, Readonly<FilePreviewProps> & Readonly<{
|
|
100
|
-
onPreview?: ((file: string | File) => any) | undefined;
|
|
101
103
|
onDownload?: ((file: string | File) => any) | undefined;
|
|
104
|
+
onPreview?: ((file: string | File) => any) | undefined;
|
|
105
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
102
106
|
}>, {
|
|
107
|
+
show: boolean;
|
|
108
|
+
inline: boolean;
|
|
103
109
|
fileName: string;
|
|
104
110
|
autoPreview: boolean;
|
|
105
|
-
inline: boolean;
|
|
106
111
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
107
112
|
declare const _default: typeof __VLS_export;
|
|
108
113
|
//#endregion
|
|
@@ -170,6 +175,7 @@ declare function useFilePreview(options: UseFilePreviewOptions, emit: {
|
|
|
170
175
|
fileType: vue.ComputedRef<FilePreviewType>;
|
|
171
176
|
fileConfig: vue.ComputedRef<FileConfig>;
|
|
172
177
|
loadFile: () => Promise<boolean>;
|
|
178
|
+
loadPreview: () => Promise<void>;
|
|
173
179
|
openPreview: () => Promise<void>;
|
|
174
180
|
downloadFile: () => void;
|
|
175
181
|
clearPreview: () => void;
|
|
@@ -52,8 +52,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
52
52
|
openDialog: () => Promise<void>;
|
|
53
53
|
closeDialog: () => void;
|
|
54
54
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
55
|
-
emptyText: string;
|
|
56
55
|
placeholder: string;
|
|
56
|
+
emptyText: string;
|
|
57
57
|
resultGroupTitle: string;
|
|
58
58
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
59
59
|
declare const _default: typeof __VLS_export;
|
|
@@ -72,21 +72,7 @@ declare function useGlobalSearch(options: MaybeRefOrGetter<GlobalSearchOptions>)
|
|
|
72
72
|
searchInputRef: vue.Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
73
73
|
isDark: vue.ComputedRef<boolean>;
|
|
74
74
|
filteredMenuItems: vue.ComputedRef<SearchMenuItem[]>;
|
|
75
|
-
displayHistory: vue.ComputedRef<
|
|
76
|
-
query: string;
|
|
77
|
-
menuItem: {
|
|
78
|
-
key: string;
|
|
79
|
-
label: string;
|
|
80
|
-
icon?: SearchIcon | undefined;
|
|
81
|
-
children?: {
|
|
82
|
-
key: string;
|
|
83
|
-
label: string;
|
|
84
|
-
icon?: SearchIcon | undefined;
|
|
85
|
-
children?: /*elided*/any[] | undefined;
|
|
86
|
-
}[] | undefined;
|
|
87
|
-
} | null;
|
|
88
|
-
timestamp: number;
|
|
89
|
-
}[]>;
|
|
75
|
+
displayHistory: vue.ComputedRef<HistoryItem[]>;
|
|
90
76
|
hasResults: vue.ComputedRef<boolean>;
|
|
91
77
|
hasContent: vue.ComputedRef<boolean>;
|
|
92
78
|
getItemClasses: (index: number, isHistory: boolean) => (string | false | {
|
|
@@ -52,8 +52,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
52
52
|
openDialog: () => Promise<void>;
|
|
53
53
|
closeDialog: () => void;
|
|
54
54
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
55
|
-
emptyText: string;
|
|
56
55
|
placeholder: string;
|
|
56
|
+
emptyText: string;
|
|
57
57
|
resultGroupTitle: string;
|
|
58
58
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
59
59
|
declare const _default: typeof __VLS_export;
|
|
@@ -72,21 +72,7 @@ declare function useGlobalSearch(options: MaybeRefOrGetter<GlobalSearchOptions>)
|
|
|
72
72
|
searchInputRef: vue.Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
73
73
|
isDark: vue.ComputedRef<boolean>;
|
|
74
74
|
filteredMenuItems: vue.ComputedRef<SearchMenuItem[]>;
|
|
75
|
-
displayHistory: vue.ComputedRef<
|
|
76
|
-
query: string;
|
|
77
|
-
menuItem: {
|
|
78
|
-
key: string;
|
|
79
|
-
label: string;
|
|
80
|
-
icon?: SearchIcon | undefined;
|
|
81
|
-
children?: {
|
|
82
|
-
key: string;
|
|
83
|
-
label: string;
|
|
84
|
-
icon?: SearchIcon | undefined;
|
|
85
|
-
children?: /*elided*/any[] | undefined;
|
|
86
|
-
}[] | undefined;
|
|
87
|
-
} | null;
|
|
88
|
-
timestamp: number;
|
|
89
|
-
}[]>;
|
|
75
|
+
displayHistory: vue.ComputedRef<HistoryItem[]>;
|
|
90
76
|
hasResults: vue.ComputedRef<boolean>;
|
|
91
77
|
hasContent: vue.ComputedRef<boolean>;
|
|
92
78
|
getItemClasses: (index: number, isHistory: boolean) => (string | false | {
|
|
@@ -87,11 +87,11 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
87
87
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
|
-
loading: boolean;
|
|
91
90
|
columns: number;
|
|
91
|
+
loading: boolean;
|
|
92
92
|
gap: number;
|
|
93
|
-
virtualScroll: boolean;
|
|
94
93
|
lazy: boolean;
|
|
94
|
+
virtualScroll: boolean;
|
|
95
95
|
infinite: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
97
97
|
skeletonCount: number;
|
|
@@ -87,11 +87,11 @@ declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {
|
|
|
87
87
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
88
88
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
|
-
loading: boolean;
|
|
91
90
|
columns: number;
|
|
91
|
+
loading: boolean;
|
|
92
92
|
gap: number;
|
|
93
|
-
virtualScroll: boolean;
|
|
94
93
|
lazy: boolean;
|
|
94
|
+
virtualScroll: boolean;
|
|
95
95
|
infinite: boolean;
|
|
96
96
|
skeleton: boolean;
|
|
97
97
|
skeletonCount: number;
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -50,16 +50,16 @@ 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
|
-
color: string;
|
|
55
53
|
label: string;
|
|
56
54
|
mode: RenderMode;
|
|
57
|
-
|
|
55
|
+
size: number;
|
|
58
56
|
margin: number;
|
|
59
57
|
bgColor: string;
|
|
60
|
-
|
|
58
|
+
color: string;
|
|
59
|
+
showBorder: boolean;
|
|
61
60
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
62
61
|
logo: LogoOptions;
|
|
62
|
+
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
//#endregion
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,16 +50,16 @@ 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
|
-
color: string;
|
|
55
53
|
label: string;
|
|
56
54
|
mode: RenderMode;
|
|
57
|
-
|
|
55
|
+
size: number;
|
|
58
56
|
margin: number;
|
|
59
57
|
bgColor: string;
|
|
60
|
-
|
|
58
|
+
color: string;
|
|
59
|
+
showBorder: boolean;
|
|
61
60
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
62
61
|
logo: LogoOptions;
|
|
62
|
+
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
//#endregion
|