@robot-admin/naive-ui-components 0.41.1 → 0.41.2
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 +9 -0
- package/README.md +44 -5
- package/README_EN.md +44 -5
- package/dist/C_ActionBar.css +54 -54
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.css +10 -10
- package/dist/C_AntV2.cjs +1 -1
- package/dist/C_AntV2.js +1 -1
- package/dist/C_AudioPlayer.css +53 -53
- package/dist/C_AudioPlayer2.cjs +1 -1
- package/dist/C_AudioPlayer2.js +1 -1
- package/dist/C_AutoComplete.css +2 -2
- package/dist/C_AutoComplete2.cjs +1 -1
- package/dist/C_AutoComplete2.js +1 -1
- package/dist/C_AvatarGroup.css +29 -29
- package/dist/C_AvatarGroup2.cjs +1 -1
- package/dist/C_AvatarGroup2.js +1 -1
- package/dist/C_BatchResult.css +10 -10
- package/dist/C_BatchResult2.cjs +1 -1
- package/dist/C_BatchResult2.js +1 -1
- package/dist/C_Breadcrumb.css +40 -40
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +1 -1
- package/dist/C_Captcha.d.cts +2 -2
- package/dist/C_Captcha.d.ts +2 -2
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.css +4 -4
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.css +35 -35
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_Code.css +27 -27
- package/dist/C_Code2.cjs +1 -1
- package/dist/C_Code2.js +2 -2
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_ContextMenu.css +3 -3
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_Cron.css +18 -18
- package/dist/C_Cron2.cjs +1 -1
- package/dist/C_Cron2.js +1 -1
- package/dist/C_DataPicker.css +52 -52
- package/dist/C_DataPicker2.cjs +1 -1
- package/dist/C_DataPicker2.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_Draggable.css +53 -53
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Editor.css +13 -13
- package/dist/C_Editor.d.cts +2 -2
- package/dist/C_Editor.d.ts +2 -2
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +49 -49
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +241 -241
- package/dist/C_Form.css +241 -241
- package/dist/C_Form.d.cts +1 -1
- package/dist/C_Form.d.ts +1 -1
- package/dist/C_FormModal.css +55 -55
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +74 -74
- package/dist/C_FormSearch.d.ts +1 -1
- package/dist/C_FormulaEditor.cjs +1 -1
- package/dist/C_FormulaEditor.css +41 -41
- package/dist/C_FormulaEditor.d.cts +2 -2
- package/dist/C_FormulaEditor.d.ts +2 -2
- package/dist/C_FormulaEditor.js +1 -1
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +13 -13
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_ImageCropper.css +27 -27
- package/dist/C_ImageCropper2.cjs +1 -1
- package/dist/C_ImageCropper2.js +1 -1
- package/dist/C_ImportWizard.css +8 -8
- package/dist/C_ImportWizard2.cjs +1 -1
- package/dist/C_ImportWizard2.js +1 -1
- package/dist/C_Loading.css +18 -18
- package/dist/C_Loading2.cjs +1 -1
- package/dist/C_Loading2.js +1 -1
- package/dist/C_Login.css +94 -94
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Markdown.css +37 -37
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_NotificationCenter.css +24 -24
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_OrgChart.d.cts +2 -8
- package/dist/C_OrgChart.d.ts +2 -8
- package/dist/C_QRCode.css +9 -9
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_RecurrenceEditor.cjs +1 -1
- package/dist/C_RecurrenceEditor.d.cts +2 -2
- package/dist/C_RecurrenceEditor.d.ts +2 -2
- package/dist/C_RecurrenceEditor.js +1 -1
- package/dist/C_RecurrenceEditor2.cjs +1 -1
- package/dist/C_RecurrenceEditor2.js +1 -1
- package/dist/C_ScanInput2.cjs +1 -1
- package/dist/C_ScanInput2.js +1 -1
- package/dist/C_SectionNav.css +8 -8
- package/dist/C_SectionNav2.cjs +1 -1
- package/dist/C_SectionNav2.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_Table.base.css +428 -428
- package/dist/C_Table.css +187 -187
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +1 -1
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_Timeline.css +50 -50
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Tree.css +30 -30
- 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_UserPicker.css +1 -1
- package/dist/C_VideoPlayer2.cjs +1 -1
- package/dist/C_VideoPlayer2.js +1 -1
- package/dist/C_VtableGantt.css +34 -34
- package/dist/C_WorkFlow.css +93 -93
- 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/ColumnSettingsDrawer.cjs +1 -0
- package/dist/ColumnSettingsDrawer.js +1 -0
- 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/component-config.d.ts +1 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +8 -1
- package/dist/constants2.d.ts +8 -1
- package/dist/constants3.d.cts +7 -7
- package/dist/constants3.d.ts +7 -7
- package/dist/constants4.d.cts +4 -4
- package/dist/constants4.d.ts +4 -4
- package/dist/context.d.cts +1 -1
- package/dist/data2.d.cts +7 -7
- package/dist/data2.d.ts +7 -7
- package/dist/editors.d.cts +19 -17
- package/dist/editors.d.ts +19 -17
- package/dist/fieldNode.cjs +1 -0
- package/dist/fieldNode.js +1 -0
- package/dist/fieldRenderers.cjs +1 -1
- package/dist/fieldRenderers.js +1 -1
- package/dist/graphics.cjs +1 -1
- package/dist/graphics.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index11.vue.d.ts +1 -1
- package/dist/index12.vue.d.cts +1 -1
- package/dist/index13.vue.d.ts +3 -3
- package/dist/index14.vue.d.cts +3 -3
- package/dist/index14.vue.d.ts +2 -2
- package/dist/index15.vue.d.cts +2 -2
- package/dist/index17.vue.d.ts +17 -10
- package/dist/index18.vue.d.cts +17 -10
- 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 +2 -2
- package/dist/index21.vue.d.cts +2 -2
- package/dist/index21.vue.d.ts +7 -7
- package/dist/index22.vue.d.cts +7 -7
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +1 -1
- package/dist/index28.vue.d.cts +1 -1
- package/dist/index29.vue.d.cts +2 -2
- package/dist/index29.vue.d.ts +2 -2
- package/dist/index3.vue.d.cts +17 -19
- package/dist/index3.vue.d.ts +17 -19
- package/dist/index34.vue.d.cts +2 -0
- package/dist/index34.vue.d.ts +2 -0
- package/dist/index35.vue.d.cts +4 -4
- package/dist/index35.vue.d.ts +4 -4
- package/dist/index36.vue.d.cts +20 -11
- package/dist/index36.vue.d.ts +20 -11
- package/dist/index37.vue.d.cts +2 -2
- package/dist/index37.vue.d.ts +2 -2
- package/dist/index39.vue.d.cts +1 -1
- package/dist/index39.vue.d.ts +1 -1
- package/dist/index4.vue.d.cts +7 -4
- package/dist/index4.vue.d.ts +7 -4
- package/dist/index41.vue.d.cts +1 -1
- package/dist/index41.vue.d.ts +1 -1
- package/dist/index42.vue.d.cts +2 -2
- package/dist/index42.vue.d.ts +2 -2
- package/dist/index43.vue.d.cts +2 -2
- package/dist/index43.vue.d.ts +2 -2
- package/dist/index5.vue.d.cts +5 -17
- package/dist/index5.vue.d.ts +5 -17
- package/dist/index6.vue.d.cts +2 -2
- package/dist/index6.vue.d.ts +2 -2
- package/dist/index7.vue.d.cts +18 -12
- package/dist/index7.vue.d.ts +18 -12
- package/dist/localSource.d.cts +8 -8
- package/dist/localSource.d.ts +8 -8
- package/dist/locale.cjs +1 -1
- package/dist/locale.js +1 -1
- package/dist/mapUtils.d.cts +1 -1
- package/dist/mapUtils.d.ts +1 -1
- package/dist/persistence.cjs +1 -0
- package/dist/persistence.js +1 -0
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/rule.d.cts +4 -1
- package/dist/rule.d.ts +4 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/source.cjs +1 -1
- package/dist/source.js +1 -1
- package/dist/style.css +1334 -1334
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types10.d.cts +2 -0
- package/dist/types10.d.ts +1 -1
- package/dist/types11.d.cts +1 -1
- package/dist/types3.d.cts +14 -5
- package/dist/types3.d.ts +14 -5
- package/dist/types5.d.ts +12 -10
- package/dist/types6.d.cts +12 -10
- package/dist/types6.d.ts +1 -1
- package/dist/types9.d.ts +2 -0
- package/dist/useCalendarEvents.d.cts +3 -15
- package/dist/useCalendarEvents.d.ts +3 -15
- package/dist/useCollapsePanel.d.cts +4 -3
- package/dist/useCollapsePanel.d.ts +4 -3
- package/dist/useCropperCore.d.cts +8 -19
- package/dist/useCropperCore.d.ts +8 -19
- package/dist/useDynamicFormState.d.cts +3 -3
- package/dist/useDynamicFormState.d.ts +3 -3
- package/dist/useEdgeInteraction.d.cts +3 -12
- package/dist/useEdgeInteraction.d.ts +3 -12
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFormulaEvaluator.cjs +2 -2
- package/dist/useFormulaEvaluator.js +2 -2
- package/dist/useFullscreen.d.cts +23 -5
- package/dist/useFullscreen.d.ts +23 -5
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +5 -18
- package/dist/useQRCode.d.ts +5 -18
- package/dist/useSignatureHistory.d.cts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +4 -4
- package/dist/useSplitResize.d.ts +4 -4
- package/dist/useTimeSelection.d.cts +4 -3
- package/dist/useTimeSelection.d.ts +4 -3
- package/dist/useWorkflowValidation.d.cts +11 -5
- package/dist/useWorkflowValidation.d.ts +11 -5
- package/dist/verification.d.cts +1 -1
- package/dist/verification.d.ts +1 -1
- package/docs/engineering.en.md +1 -0
- package/docs/engineering.md +1 -0
- package/docs/guides/batch-results.md +3 -3
- package/docs/guides/data-picker.md +2 -0
- package/docs/guides/runtime-performance.md +2 -0
- package/docs/guides/scene-components.md +1 -1
- package/package.json +1 -1
package/dist/index36.vue.d.ts
CHANGED
|
@@ -2,27 +2,36 @@ import { n as ComponentLocale } from "./contracts.js";
|
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_SectionNav/types.d.ts
|
|
5
|
-
interface SectionNavItem {
|
|
6
|
-
key:
|
|
5
|
+
interface SectionNavItem<K extends string = string> {
|
|
6
|
+
key: K;
|
|
7
7
|
label: string;
|
|
8
8
|
errorCount?: number;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
}
|
|
11
|
-
interface SectionNavProps {
|
|
12
|
-
items: readonly SectionNavItem[];
|
|
11
|
+
interface SectionNavProps<K extends string = string> {
|
|
12
|
+
items: readonly SectionNavItem<K>[];
|
|
13
|
+
/** Controlled input can still use a broad string. Events infer their key from items. */
|
|
13
14
|
modelValue?: string;
|
|
14
15
|
ariaLabel?: string;
|
|
15
16
|
locale?: ComponentLocale;
|
|
16
17
|
}
|
|
17
18
|
//#endregion
|
|
18
19
|
//#region src/components/C_SectionNav/index.vue.d.ts
|
|
19
|
-
declare const __VLS_export:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
20
|
+
declare const __VLS_export: <K extends string>(__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<{
|
|
21
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<SectionNavProps<K> & {
|
|
22
|
+
onSelect?: ((key: K) => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((key: K) => any) | undefined;
|
|
24
|
+
}> & (typeof globalThis extends {
|
|
25
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
26
|
+
} ? P : {});
|
|
27
|
+
expose: (exposed: {}) => void;
|
|
28
|
+
attrs: any;
|
|
29
|
+
slots: {};
|
|
30
|
+
emit: ((evt: "select", key: K) => void) & ((evt: "update:modelValue", key: K) => void);
|
|
31
|
+
}>) => vue.VNode & {
|
|
32
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
33
|
+
};
|
|
26
34
|
declare const _default: typeof __VLS_export;
|
|
35
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
27
36
|
//#endregion
|
|
28
37
|
export { SectionNavItem as n, SectionNavProps as r, _default as t };
|
package/dist/index37.vue.d.cts
CHANGED
|
@@ -5,8 +5,8 @@ import * as vue from "vue";
|
|
|
5
5
|
declare const __VLS_export: <V extends SelectValue = SelectValue, M extends boolean = false, T extends boolean = false, R extends object = SelectOptionItem<V>, F extends object = Record<string, unknown>>(__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<{
|
|
6
6
|
props: vue.PublicProps & __VLS_PrettifyLocal<SelectProps<V, M, T, R, F> & {
|
|
7
7
|
onSelect?: ((selection: SelectSelection<R, M>) => any) | undefined;
|
|
8
|
-
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
9
8
|
"onUpdate:modelValue"?: ((value: SelectModelValue<V, M, T>) => any) | undefined;
|
|
9
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
12
12
|
} ? P : {});
|
|
@@ -20,7 +20,7 @@ declare const __VLS_export: <V extends SelectValue = SelectValue, M extends bool
|
|
|
20
20
|
} & {
|
|
21
21
|
action?: (props: {}) => any;
|
|
22
22
|
};
|
|
23
|
-
emit: ((evt: "select", selection: SelectSelection<R, M>) => void) & ((evt: "update:
|
|
23
|
+
emit: ((evt: "select", selection: SelectSelection<R, M>) => void) & ((evt: "update:modelValue", value: SelectModelValue<V, M, T>) => void) & ((evt: "update:show", show: boolean) => void);
|
|
24
24
|
}>) => vue.VNode & {
|
|
25
25
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
26
|
};
|
package/dist/index37.vue.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import * as vue from "vue";
|
|
|
5
5
|
declare const __VLS_export: <V extends SelectValue = SelectValue, M extends boolean = false, T extends boolean = false, R extends object = SelectOptionItem<V>, F extends object = Record<string, unknown>>(__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<{
|
|
6
6
|
props: vue.PublicProps & __VLS_PrettifyLocal<SelectProps<V, M, T, R, F> & {
|
|
7
7
|
onSelect?: ((selection: SelectSelection<R, M>) => any) | undefined;
|
|
8
|
-
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
9
8
|
"onUpdate:modelValue"?: ((value: SelectModelValue<V, M, T>) => any) | undefined;
|
|
9
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
12
12
|
} ? P : {});
|
|
@@ -20,7 +20,7 @@ declare const __VLS_export: <V extends SelectValue = SelectValue, M extends bool
|
|
|
20
20
|
} & {
|
|
21
21
|
action?: (props: {}) => any;
|
|
22
22
|
};
|
|
23
|
-
emit: ((evt: "select", selection: SelectSelection<R, M>) => void) & ((evt: "update:
|
|
23
|
+
emit: ((evt: "select", selection: SelectSelection<R, M>) => void) & ((evt: "update:modelValue", value: SelectModelValue<V, M, T>) => void) & ((evt: "update:show", show: boolean) => void);
|
|
24
24
|
}>) => vue.VNode & {
|
|
25
25
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
26
26
|
};
|
package/dist/index39.vue.d.cts
CHANGED
|
@@ -29,9 +29,9 @@ declare const __VLS_export: vue.DefineComponent<StepsProps, {}, {}, {}, {}, vue.
|
|
|
29
29
|
"onUpdate:current"?: ((args_0: number) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
31
|
direction: "horizontal" | "vertical";
|
|
32
|
+
current: number;
|
|
32
33
|
clickable: boolean;
|
|
33
34
|
connected: boolean;
|
|
34
|
-
current: number;
|
|
35
35
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const _default: typeof __VLS_export;
|
|
37
37
|
//#endregion
|
package/dist/index39.vue.d.ts
CHANGED
|
@@ -29,9 +29,9 @@ declare const __VLS_export: vue.DefineComponent<StepsProps, {}, {}, {}, {}, vue.
|
|
|
29
29
|
"onUpdate:current"?: ((args_0: number) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
31
|
direction: "horizontal" | "vertical";
|
|
32
|
+
current: number;
|
|
32
33
|
clickable: boolean;
|
|
33
34
|
connected: boolean;
|
|
34
|
-
current: number;
|
|
35
35
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const _default: typeof __VLS_export;
|
|
37
37
|
//#endregion
|
package/dist/index4.vue.d.cts
CHANGED
|
@@ -2,9 +2,12 @@ import { n as AutoCompleteProps, t as AutoCompleteOptionItem } from "./types4.cj
|
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_AutoComplete/index.vue.d.ts
|
|
5
|
-
declare const __VLS_export: <R extends object =
|
|
6
|
-
props: vue.PublicProps & __VLS_PrettifyLocal<AutoCompleteProps<R, F> & {
|
|
7
|
-
|
|
5
|
+
declare const __VLS_export: <R extends object = never, F extends object = Record<string, unknown>, S extends string | AutoCompleteOptionItem = Extract<R, AutoCompleteOptionItem>>(__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<{
|
|
6
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<(Omit<AutoCompleteProps<R, F>, "options" | "renderLabel"> & {
|
|
7
|
+
options?: readonly S[];
|
|
8
|
+
renderLabel?: (row: NoInfer<R | (S extends string ? AutoCompleteOptionItem : S)>) => vue.VNodeChild;
|
|
9
|
+
}) & {
|
|
10
|
+
onSelect?: ((row: R | (S extends string ? AutoCompleteOptionItem : S)) => any) | undefined;
|
|
8
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
12
|
}> & (typeof globalThis extends {
|
|
10
13
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -21,7 +24,7 @@ declare const __VLS_export: <R extends object = AutoCompleteOptionItem, F extend
|
|
|
21
24
|
} & {
|
|
22
25
|
empty?: (props: {}) => any;
|
|
23
26
|
};
|
|
24
|
-
emit: ((evt: "select", row: R) => void) & ((evt: "update:modelValue", value: string) => void);
|
|
27
|
+
emit: ((evt: "select", row: R | (S extends string ? AutoCompleteOptionItem : S)) => void) & ((evt: "update:modelValue", value: string) => void);
|
|
25
28
|
}>) => vue.VNode & {
|
|
26
29
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
27
30
|
};
|
package/dist/index4.vue.d.ts
CHANGED
|
@@ -2,9 +2,12 @@ import { n as AutoCompleteProps, t as AutoCompleteOptionItem } from "./types4.js
|
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/C_AutoComplete/index.vue.d.ts
|
|
5
|
-
declare const __VLS_export: <R extends object =
|
|
6
|
-
props: vue.PublicProps & __VLS_PrettifyLocal<AutoCompleteProps<R, F> & {
|
|
7
|
-
|
|
5
|
+
declare const __VLS_export: <R extends object = never, F extends object = Record<string, unknown>, S extends string | AutoCompleteOptionItem = Extract<R, AutoCompleteOptionItem>>(__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<{
|
|
6
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<(Omit<AutoCompleteProps<R, F>, "options" | "renderLabel"> & {
|
|
7
|
+
options?: readonly S[];
|
|
8
|
+
renderLabel?: (row: NoInfer<R | (S extends string ? AutoCompleteOptionItem : S)>) => vue.VNodeChild;
|
|
9
|
+
}) & {
|
|
10
|
+
onSelect?: ((row: R | (S extends string ? AutoCompleteOptionItem : S)) => any) | undefined;
|
|
8
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
12
|
}> & (typeof globalThis extends {
|
|
10
13
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -21,7 +24,7 @@ declare const __VLS_export: <R extends object = AutoCompleteOptionItem, F extend
|
|
|
21
24
|
} & {
|
|
22
25
|
empty?: (props: {}) => any;
|
|
23
26
|
};
|
|
24
|
-
emit: ((evt: "select", row: R) => void) & ((evt: "update:modelValue", value: string) => void);
|
|
27
|
+
emit: ((evt: "select", row: R | (S extends string ? AutoCompleteOptionItem : S)) => void) & ((evt: "update:modelValue", value: string) => void);
|
|
25
28
|
}>) => vue.VNode & {
|
|
26
29
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
27
30
|
};
|
package/dist/index41.vue.d.cts
CHANGED
|
@@ -78,10 +78,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
|
|
|
78
78
|
onClose?: ((fallbackPath: string) => any) | undefined;
|
|
79
79
|
onCloseAll?: (() => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
|
-
persistKey: string;
|
|
82
81
|
homePath: string;
|
|
83
82
|
homeTitle: string;
|
|
84
83
|
homeIcon: string;
|
|
84
|
+
persistKey: string;
|
|
85
85
|
contextMenuLabels: ContextMenuLabels;
|
|
86
86
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
87
87
|
declare const _default: typeof __VLS_export;
|
package/dist/index41.vue.d.ts
CHANGED
|
@@ -78,10 +78,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {
|
|
|
78
78
|
onClose?: ((fallbackPath: string) => any) | undefined;
|
|
79
79
|
onCloseAll?: (() => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
|
-
persistKey: string;
|
|
82
81
|
homePath: string;
|
|
83
82
|
homeTitle: string;
|
|
84
83
|
homeIcon: string;
|
|
84
|
+
persistKey: string;
|
|
85
85
|
contextMenuLabels: ContextMenuLabels;
|
|
86
86
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
87
87
|
declare const _default: typeof __VLS_export;
|
package/dist/index42.vue.d.cts
CHANGED
|
@@ -81,7 +81,7 @@ type __VLS_Slots = {} & {
|
|
|
81
81
|
title?: (props: typeof __VLS_8) => any;
|
|
82
82
|
};
|
|
83
83
|
declare const __VLS_base: vue.DefineComponent<TimelineProps, {
|
|
84
|
-
/**
|
|
84
|
+
/** 展开全部可折叠项。批量更新不会发出单条 expand 事件。 */expandAll: () => void; /** 折叠全部可折叠项。批量更新不会发出单条 expand 事件。 */
|
|
85
85
|
collapseAll: () => void;
|
|
86
86
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
87
87
|
expand: (item: TimelineItem, expanded: boolean) => any;
|
|
@@ -93,8 +93,8 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
|
|
|
93
93
|
reverse: boolean;
|
|
94
94
|
size: "small" | "medium" | "large";
|
|
95
95
|
items: TimelineItem[];
|
|
96
|
-
pending: boolean;
|
|
97
96
|
mode: "vertical" | "horizontal";
|
|
97
|
+
pending: boolean;
|
|
98
98
|
labelPlacement: "left" | "right" | "alternate";
|
|
99
99
|
lineType: "solid" | "dashed" | "dotted";
|
|
100
100
|
showTime: boolean;
|
package/dist/index42.vue.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ type __VLS_Slots = {} & {
|
|
|
81
81
|
title?: (props: typeof __VLS_8) => any;
|
|
82
82
|
};
|
|
83
83
|
declare const __VLS_base: vue.DefineComponent<TimelineProps, {
|
|
84
|
-
/**
|
|
84
|
+
/** 展开全部可折叠项。批量更新不会发出单条 expand 事件。 */expandAll: () => void; /** 折叠全部可折叠项。批量更新不会发出单条 expand 事件。 */
|
|
85
85
|
collapseAll: () => void;
|
|
86
86
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
87
87
|
expand: (item: TimelineItem, expanded: boolean) => any;
|
|
@@ -93,8 +93,8 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
|
|
|
93
93
|
reverse: boolean;
|
|
94
94
|
size: "small" | "medium" | "large";
|
|
95
95
|
items: TimelineItem[];
|
|
96
|
-
pending: boolean;
|
|
97
96
|
mode: "vertical" | "horizontal";
|
|
97
|
+
pending: boolean;
|
|
98
98
|
labelPlacement: "left" | "right" | "alternate";
|
|
99
99
|
lineType: "solid" | "dashed" | "dotted";
|
|
100
100
|
showTime: boolean;
|
package/dist/index43.vue.d.cts
CHANGED
|
@@ -71,7 +71,7 @@ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
|
|
|
71
71
|
//#region src/components/C_Transfer/index.vue.d.ts
|
|
72
72
|
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<{
|
|
73
73
|
props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
|
|
74
|
-
onChange?: ((targetKeys: T["key"][], direction: "
|
|
74
|
+
onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
|
|
75
75
|
"onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
|
|
76
76
|
}> & (typeof globalThis extends {
|
|
77
77
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -79,7 +79,7 @@ declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props:
|
|
|
79
79
|
expose: (exposed: {}) => void;
|
|
80
80
|
attrs: any;
|
|
81
81
|
slots: {};
|
|
82
|
-
emit: ((evt: "change", targetKeys: T["key"][], direction: "
|
|
82
|
+
emit: ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void) & ((evt: "update:modelValue", value: T["key"][]) => void);
|
|
83
83
|
}>) => vue.VNode & {
|
|
84
84
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
85
85
|
};
|
package/dist/index43.vue.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ declare const DEFAULT_TRANSFER_PROPS: Partial<TransferProps>;
|
|
|
71
71
|
//#region src/components/C_Transfer/index.vue.d.ts
|
|
72
72
|
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<{
|
|
73
73
|
props: vue.PublicProps & __VLS_PrettifyLocal<TransferProps<T> & {
|
|
74
|
-
onChange?: ((targetKeys: T["key"][], direction: "
|
|
74
|
+
onChange?: ((targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => any) | undefined;
|
|
75
75
|
"onUpdate:modelValue"?: ((value: T["key"][]) => any) | undefined;
|
|
76
76
|
}> & (typeof globalThis extends {
|
|
77
77
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -79,7 +79,7 @@ declare const __VLS_export: <T extends TransferItem = TransferItem>(__VLS_props:
|
|
|
79
79
|
expose: (exposed: {}) => void;
|
|
80
80
|
attrs: any;
|
|
81
81
|
slots: {};
|
|
82
|
-
emit: ((evt: "change", targetKeys: T["key"][], direction: "
|
|
82
|
+
emit: ((evt: "change", targetKeys: T["key"][], direction: "left" | "right", moveKeys: T["key"][]) => void) & ((evt: "update:modelValue", value: T["key"][]) => void);
|
|
83
83
|
}>) => vue.VNode & {
|
|
84
84
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
85
85
|
};
|
package/dist/index5.vue.d.cts
CHANGED
|
@@ -44,7 +44,7 @@ interface AvatarGroupProps {
|
|
|
44
44
|
direction?: 'ltr' | 'rtl';
|
|
45
45
|
}
|
|
46
46
|
/** 默认 Props */
|
|
47
|
-
declare const DEFAULT_AVATAR_GROUP_PROPS:
|
|
47
|
+
declare const DEFAULT_AVATAR_GROUP_PROPS: Omit<Required<AvatarGroupProps>, 'items'>;
|
|
48
48
|
/** 状态颜色映射 */
|
|
49
49
|
declare const STATUS_COLOR_MAP: Record<string, string>;
|
|
50
50
|
/** 从名字中提取首字母 */
|
|
@@ -53,33 +53,21 @@ declare function getInitials(name: string): string;
|
|
|
53
53
|
declare function nameToColor(name: string): string;
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/components/C_AvatarGroup/index.vue.d.ts
|
|
56
|
-
|
|
57
|
-
items: AvatarGroupProps['items'];
|
|
58
|
-
max?: number;
|
|
59
|
-
size?: number;
|
|
60
|
-
overlap?: number;
|
|
61
|
-
shape?: AvatarGroupProps['shape'];
|
|
62
|
-
showStatus?: boolean;
|
|
63
|
-
showTooltip?: boolean;
|
|
64
|
-
clickable?: boolean;
|
|
65
|
-
overflowClickable?: boolean;
|
|
66
|
-
direction?: AvatarGroupProps['direction'];
|
|
67
|
-
};
|
|
68
|
-
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
56
|
+
declare const __VLS_export: vue.DefineComponent<AvatarGroupProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
69
57
|
itemClick: (item: AvatarItem) => any;
|
|
70
58
|
overflowClick: (hiddenItems: AvatarItem[]) => any;
|
|
71
|
-
}, string, vue.PublicProps, Readonly<
|
|
59
|
+
}, string, vue.PublicProps, Readonly<AvatarGroupProps> & Readonly<{
|
|
72
60
|
onItemClick?: ((item: AvatarItem) => any) | undefined;
|
|
73
61
|
onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
|
|
74
62
|
}>, {
|
|
75
63
|
direction: "ltr" | "rtl";
|
|
76
64
|
size: number;
|
|
77
|
-
max: number;
|
|
78
65
|
overlap: number;
|
|
66
|
+
max: number;
|
|
67
|
+
clickable: boolean;
|
|
79
68
|
shape: "circle" | "square";
|
|
80
69
|
showStatus: boolean;
|
|
81
70
|
showTooltip: boolean;
|
|
82
|
-
clickable: boolean;
|
|
83
71
|
overflowClickable: boolean;
|
|
84
72
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
85
73
|
declare const _default: typeof __VLS_export;
|
package/dist/index5.vue.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ interface AvatarGroupProps {
|
|
|
44
44
|
direction?: 'ltr' | 'rtl';
|
|
45
45
|
}
|
|
46
46
|
/** 默认 Props */
|
|
47
|
-
declare const DEFAULT_AVATAR_GROUP_PROPS:
|
|
47
|
+
declare const DEFAULT_AVATAR_GROUP_PROPS: Omit<Required<AvatarGroupProps>, 'items'>;
|
|
48
48
|
/** 状态颜色映射 */
|
|
49
49
|
declare const STATUS_COLOR_MAP: Record<string, string>;
|
|
50
50
|
/** 从名字中提取首字母 */
|
|
@@ -53,33 +53,21 @@ declare function getInitials(name: string): string;
|
|
|
53
53
|
declare function nameToColor(name: string): string;
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/components/C_AvatarGroup/index.vue.d.ts
|
|
56
|
-
|
|
57
|
-
items: AvatarGroupProps['items'];
|
|
58
|
-
max?: number;
|
|
59
|
-
size?: number;
|
|
60
|
-
overlap?: number;
|
|
61
|
-
shape?: AvatarGroupProps['shape'];
|
|
62
|
-
showStatus?: boolean;
|
|
63
|
-
showTooltip?: boolean;
|
|
64
|
-
clickable?: boolean;
|
|
65
|
-
overflowClickable?: boolean;
|
|
66
|
-
direction?: AvatarGroupProps['direction'];
|
|
67
|
-
};
|
|
68
|
-
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
56
|
+
declare const __VLS_export: vue.DefineComponent<AvatarGroupProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
69
57
|
itemClick: (item: AvatarItem) => any;
|
|
70
58
|
overflowClick: (hiddenItems: AvatarItem[]) => any;
|
|
71
|
-
}, string, vue.PublicProps, Readonly<
|
|
59
|
+
}, string, vue.PublicProps, Readonly<AvatarGroupProps> & Readonly<{
|
|
72
60
|
onItemClick?: ((item: AvatarItem) => any) | undefined;
|
|
73
61
|
onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
|
|
74
62
|
}>, {
|
|
75
63
|
direction: "ltr" | "rtl";
|
|
76
64
|
size: number;
|
|
77
|
-
max: number;
|
|
78
65
|
overlap: number;
|
|
66
|
+
max: number;
|
|
67
|
+
clickable: boolean;
|
|
79
68
|
shape: "circle" | "square";
|
|
80
69
|
showStatus: boolean;
|
|
81
70
|
showTooltip: boolean;
|
|
82
|
-
clickable: boolean;
|
|
83
71
|
overflowClickable: boolean;
|
|
84
72
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
85
73
|
declare const _default: typeof __VLS_export;
|
package/dist/index6.vue.d.cts
CHANGED
|
@@ -24,12 +24,12 @@ declare const __VLS_export: vue.DefineComponent<BarcodeProps, {}, {}, {}, {}, vu
|
|
|
24
24
|
onError?: ((error: Error) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
lineColor: string;
|
|
27
|
+
label: string;
|
|
27
28
|
width: number;
|
|
29
|
+
format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
|
|
28
30
|
height: number;
|
|
29
|
-
label: string;
|
|
30
31
|
fontSize: number;
|
|
31
32
|
background: string;
|
|
32
|
-
format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
|
|
33
33
|
showText: boolean;
|
|
34
34
|
textPosition: "bottom" | "top";
|
|
35
35
|
showBorder: boolean;
|
package/dist/index6.vue.d.ts
CHANGED
|
@@ -24,12 +24,12 @@ declare const __VLS_export: vue.DefineComponent<BarcodeProps, {}, {}, {}, {}, vu
|
|
|
24
24
|
onError?: ((error: Error) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
lineColor: string;
|
|
27
|
+
label: string;
|
|
27
28
|
width: number;
|
|
29
|
+
format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
|
|
28
30
|
height: number;
|
|
29
|
-
label: string;
|
|
30
31
|
fontSize: number;
|
|
31
32
|
background: string;
|
|
32
|
-
format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
|
|
33
33
|
showText: boolean;
|
|
34
34
|
textPosition: "bottom" | "top";
|
|
35
35
|
showBorder: boolean;
|
package/dist/index7.vue.d.cts
CHANGED
|
@@ -3,27 +3,33 @@ import { n as BatchOperationResult } from "./batchPatch.cjs";
|
|
|
3
3
|
import * as vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/C_BatchResult/types.d.ts
|
|
6
|
-
interface BatchResultProps {
|
|
7
|
-
results: readonly BatchOperationResult[];
|
|
6
|
+
interface BatchResultProps<K extends string | number = string | number> {
|
|
7
|
+
results: readonly BatchOperationResult<K>[];
|
|
8
8
|
title?: string;
|
|
9
9
|
pageSize?: number;
|
|
10
10
|
/** Hide the retry action when displaying a read-only result. */
|
|
11
11
|
showRetry?: boolean;
|
|
12
12
|
locale?: ComponentLocale;
|
|
13
13
|
}
|
|
14
|
-
interface BatchResultEmits {
|
|
15
|
-
retry: [keys:
|
|
14
|
+
interface BatchResultEmits<K extends string | number = string | number> {
|
|
15
|
+
retry: [keys: K[]];
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/components/C_BatchResult/index.vue.d.ts
|
|
19
|
-
declare const __VLS_export:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
declare const __VLS_export: <K extends string | number>(__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<{
|
|
20
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<BatchResultProps<K> & {
|
|
21
|
+
onRetry?: ((keys: K[]) => any) | undefined;
|
|
22
|
+
}> & (typeof globalThis extends {
|
|
23
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
24
|
+
} ? P : {});
|
|
25
|
+
expose: (exposed: {}) => void;
|
|
26
|
+
attrs: any;
|
|
27
|
+
slots: {};
|
|
28
|
+
emit: (evt: "retry", keys: K[]) => void;
|
|
29
|
+
}>) => vue.VNode & {
|
|
30
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
31
|
+
};
|
|
27
32
|
declare const _default: typeof __VLS_export;
|
|
33
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
28
34
|
//#endregion
|
|
29
35
|
export { BatchResultEmits as n, BatchResultProps as r, _default as t };
|
package/dist/index7.vue.d.ts
CHANGED
|
@@ -3,27 +3,33 @@ import { n as BatchOperationResult } from "./batchPatch.js";
|
|
|
3
3
|
import * as vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/C_BatchResult/types.d.ts
|
|
6
|
-
interface BatchResultProps {
|
|
7
|
-
results: readonly BatchOperationResult[];
|
|
6
|
+
interface BatchResultProps<K extends string | number = string | number> {
|
|
7
|
+
results: readonly BatchOperationResult<K>[];
|
|
8
8
|
title?: string;
|
|
9
9
|
pageSize?: number;
|
|
10
10
|
/** Hide the retry action when displaying a read-only result. */
|
|
11
11
|
showRetry?: boolean;
|
|
12
12
|
locale?: ComponentLocale;
|
|
13
13
|
}
|
|
14
|
-
interface BatchResultEmits {
|
|
15
|
-
retry: [keys:
|
|
14
|
+
interface BatchResultEmits<K extends string | number = string | number> {
|
|
15
|
+
retry: [keys: K[]];
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/components/C_BatchResult/index.vue.d.ts
|
|
19
|
-
declare const __VLS_export:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
declare const __VLS_export: <K extends string | number>(__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<{
|
|
20
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<BatchResultProps<K> & {
|
|
21
|
+
onRetry?: ((keys: K[]) => any) | undefined;
|
|
22
|
+
}> & (typeof globalThis extends {
|
|
23
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
24
|
+
} ? P : {});
|
|
25
|
+
expose: (exposed: {}) => void;
|
|
26
|
+
attrs: any;
|
|
27
|
+
slots: {};
|
|
28
|
+
emit: (evt: "retry", keys: K[]) => void;
|
|
29
|
+
}>) => vue.VNode & {
|
|
30
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
31
|
+
};
|
|
27
32
|
declare const _default: typeof __VLS_export;
|
|
33
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
28
34
|
//#endregion
|
|
29
35
|
export { BatchResultEmits as n, BatchResultProps as r, _default as t };
|
package/dist/localSource.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Zt as FormModel } from "./context.cjs";
|
|
2
2
|
import { c as DataPickerProps, d as DataPickerSelectionContext, m as DataPickerValue, n as DataPickerEmits, p as DataPickerSourceInput } from "./types6.cjs";
|
|
3
3
|
import { r as FormRenderer } from "./useFormRenderer.cjs";
|
|
4
4
|
import { a as SearchFieldContext } from "./types7.cjs";
|
|
5
5
|
import * as vue from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/C_DataPicker/index.vue.d.ts
|
|
8
|
-
declare const __VLS_export: <T extends object, TFilters extends object = Record<string, unknown
|
|
9
|
-
props: vue.PublicProps & __VLS_PrettifyLocal<DataPickerProps<T, TFilters> & {
|
|
8
|
+
declare const __VLS_export: <T extends object, TFilters extends object = Record<string, unknown>, M extends boolean = boolean, V extends DataPickerValue = DataPickerValue>(__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<{
|
|
9
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<DataPickerProps<T, TFilters, M, V> & {
|
|
10
10
|
onSelect?: ((rows: T[]) => any) | undefined;
|
|
11
|
-
"onUpdate:modelValue"?: ((value:
|
|
11
|
+
"onUpdate:modelValue"?: ((value: M extends true ? V[] : V | null) => any) | undefined;
|
|
12
12
|
onCancel?: (() => any) | undefined;
|
|
13
13
|
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -39,7 +39,7 @@ declare const __VLS_export: <T extends object, TFilters extends object = Record<
|
|
|
39
39
|
loading: boolean;
|
|
40
40
|
}): unknown;
|
|
41
41
|
};
|
|
42
|
-
emit: ((evt: "select", rows: T[]) => void) & ((evt: "update:modelValue", value:
|
|
42
|
+
emit: ((evt: "select", rows: T[]) => void) & ((evt: "update:modelValue", value: M extends true ? V[] : V | null) => void) & ((evt: "cancel") => void);
|
|
43
43
|
}>) => vue.VNode & {
|
|
44
44
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
45
45
|
};
|
|
@@ -76,7 +76,7 @@ declare function createDataPickerSearchField<T extends object, TFilters extends
|
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region src/components/C_DataPicker/localSource.d.ts
|
|
78
78
|
/** 本地候选沿用远程选择器的分页和名称回显协议。 */
|
|
79
|
-
interface LocalDataPickerSourceOptions<T extends object> extends Pick<DataPickerSourceInput<T>, 'rowKey' | 'label' | 'value' | 'debounce' | 'minChars'> {
|
|
79
|
+
interface LocalDataPickerSourceOptions<T extends object, V extends DataPickerValue = DataPickerValue> extends Pick<DataPickerSourceInput<T, Record<string, unknown>, V>, 'rowKey' | 'label' | 'value' | 'debounce' | 'minChars'> {
|
|
80
80
|
rows: readonly T[];
|
|
81
81
|
/** 默认按名称搜索,需要匹配编码等字段时返回对应文本。 */
|
|
82
82
|
searchText?: (row: T) => string;
|
|
@@ -84,11 +84,11 @@ interface LocalDataPickerSourceOptions<T extends object> extends Pick<DataPicker
|
|
|
84
84
|
code?: (row: T) => string;
|
|
85
85
|
}
|
|
86
86
|
/** 用已有数组构建可搜索、可分页且支持初值回显的候选源。 */
|
|
87
|
-
declare function createLocalDataPickerSource<T extends object>({
|
|
87
|
+
declare function createLocalDataPickerSource<T extends object, V extends DataPickerValue = DataPickerValue>({
|
|
88
88
|
rows,
|
|
89
89
|
searchText,
|
|
90
90
|
code,
|
|
91
91
|
...identity
|
|
92
|
-
}: LocalDataPickerSourceOptions<T>): DataPickerSourceInput<T>;
|
|
92
|
+
}: LocalDataPickerSourceOptions<T, V>): DataPickerSourceInput<T, Record<string, unknown>, V>;
|
|
93
93
|
//#endregion
|
|
94
94
|
export { createDataPickerField as a, DataPickerFieldSelection as i, createLocalDataPickerSource as n, _default as o, createDataPickerSearchField as r, LocalDataPickerSourceOptions as t };
|
package/dist/localSource.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as FormModel } from "./component-config.js";
|
|
2
2
|
import { c as DataPickerProps, d as DataPickerSelectionContext, m as DataPickerValue, n as DataPickerEmits, p as DataPickerSourceInput } from "./types5.js";
|
|
3
3
|
import { r as FormRenderer } from "./useFormRenderer.js";
|
|
4
4
|
import { a as SearchFieldContext } from "./types6.js";
|
|
5
5
|
import * as vue from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/C_DataPicker/index.vue.d.ts
|
|
8
|
-
declare const __VLS_export: <T extends object, TFilters extends object = Record<string, unknown
|
|
9
|
-
props: vue.PublicProps & __VLS_PrettifyLocal<DataPickerProps<T, TFilters> & {
|
|
8
|
+
declare const __VLS_export: <T extends object, TFilters extends object = Record<string, unknown>, M extends boolean = boolean, V extends DataPickerValue = DataPickerValue>(__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<{
|
|
9
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<DataPickerProps<T, TFilters, M, V> & {
|
|
10
10
|
onSelect?: ((rows: T[]) => any) | undefined;
|
|
11
|
-
"onUpdate:modelValue"?: ((value:
|
|
11
|
+
"onUpdate:modelValue"?: ((value: M extends true ? V[] : V | null) => any) | undefined;
|
|
12
12
|
onCancel?: (() => any) | undefined;
|
|
13
13
|
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -39,7 +39,7 @@ declare const __VLS_export: <T extends object, TFilters extends object = Record<
|
|
|
39
39
|
loading: boolean;
|
|
40
40
|
}): unknown;
|
|
41
41
|
};
|
|
42
|
-
emit: ((evt: "select", rows: T[]) => void) & ((evt: "update:modelValue", value:
|
|
42
|
+
emit: ((evt: "select", rows: T[]) => void) & ((evt: "update:modelValue", value: M extends true ? V[] : V | null) => void) & ((evt: "cancel") => void);
|
|
43
43
|
}>) => vue.VNode & {
|
|
44
44
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
45
45
|
};
|
|
@@ -76,7 +76,7 @@ declare function createDataPickerSearchField<T extends object, TFilters extends
|
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region src/components/C_DataPicker/localSource.d.ts
|
|
78
78
|
/** 本地候选沿用远程选择器的分页和名称回显协议。 */
|
|
79
|
-
interface LocalDataPickerSourceOptions<T extends object> extends Pick<DataPickerSourceInput<T>, 'rowKey' | 'label' | 'value' | 'debounce' | 'minChars'> {
|
|
79
|
+
interface LocalDataPickerSourceOptions<T extends object, V extends DataPickerValue = DataPickerValue> extends Pick<DataPickerSourceInput<T, Record<string, unknown>, V>, 'rowKey' | 'label' | 'value' | 'debounce' | 'minChars'> {
|
|
80
80
|
rows: readonly T[];
|
|
81
81
|
/** 默认按名称搜索,需要匹配编码等字段时返回对应文本。 */
|
|
82
82
|
searchText?: (row: T) => string;
|
|
@@ -84,11 +84,11 @@ interface LocalDataPickerSourceOptions<T extends object> extends Pick<DataPicker
|
|
|
84
84
|
code?: (row: T) => string;
|
|
85
85
|
}
|
|
86
86
|
/** 用已有数组构建可搜索、可分页且支持初值回显的候选源。 */
|
|
87
|
-
declare function createLocalDataPickerSource<T extends object>({
|
|
87
|
+
declare function createLocalDataPickerSource<T extends object, V extends DataPickerValue = DataPickerValue>({
|
|
88
88
|
rows,
|
|
89
89
|
searchText,
|
|
90
90
|
code,
|
|
91
91
|
...identity
|
|
92
|
-
}: LocalDataPickerSourceOptions<T>): DataPickerSourceInput<T>;
|
|
92
|
+
}: LocalDataPickerSourceOptions<T, V>): DataPickerSourceInput<T, Record<string, unknown>, V>;
|
|
93
93
|
//#endregion
|
|
94
94
|
export { createDataPickerField as a, DataPickerFieldSelection as i, createLocalDataPickerSource as n, _default as o, createDataPickerSearchField as r, LocalDataPickerSourceOptions as t };
|