@robot-admin/naive-ui-components 0.25.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +7 -9
- package/README_EN.md +6 -8
- package/dist/C_Form.base.css +31 -13
- package/dist/C_Form.css +31 -13
- package/dist/C_Form.d.cts +3 -2
- package/dist/C_Form.d.ts +3 -19
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +2 -17
- package/dist/C_FormSearch.css +79 -79
- package/dist/C_FormSearch.d.cts +2 -1
- package/dist/C_FormSearch.d.ts +2 -2
- package/dist/C_FormulaEditor.d.cts +1 -1
- package/dist/C_FormulaEditor.d.ts +1 -1
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_SectionNav.d.cts +1 -1
- package/dist/C_SectionNav.d.ts +1 -1
- 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 +140 -135
- package/dist/C_Table.css +109 -122
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +7 -5
- 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_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Tree.d.cts +1 -1
- package/dist/C_Tree.d.ts +7 -5
- package/dist/C_Upload.d.cts +1 -1
- package/dist/C_Upload.d.ts +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +1 -4
- package/dist/config.d.ts +1 -4
- package/dist/config.js +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants2.d.cts +173 -402
- package/dist/constants2.d.ts +173 -402
- package/dist/constants3.d.cts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +402 -173
- package/dist/constants4.d.ts +402 -173
- package/dist/constants5.d.cts +4 -4
- package/dist/constants5.d.ts +4 -4
- package/dist/data.cjs +1 -1
- package/dist/data.d.cts +1 -2
- package/dist/data.d.ts +1 -2
- package/dist/data.js +1 -1
- package/dist/data2.d.cts +10 -10
- package/dist/data2.d.ts +10 -10
- package/dist/dateRange.d.cts +3 -2
- package/dist/dateRange.d.ts +3 -2
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +34 -34
- package/dist/index.d.ts +41 -42
- 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 +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +7 -6
- package/dist/index12.vue.d.cts +7 -6
- package/dist/index13.vue.d.ts +5 -5
- package/dist/index14.vue.d.cts +5 -5
- package/dist/index15.vue.d.ts +52 -54
- package/dist/index16.vue.d.cts +52 -54
- package/dist/index16.vue.d.ts +125 -13
- package/dist/index17.vue.d.cts +125 -13
- package/dist/index17.vue.d.ts +51 -123
- package/dist/index18.vue.d.cts +51 -123
- package/dist/index18.vue.d.ts +26 -47
- package/dist/index19.vue.d.cts +26 -47
- package/dist/index19.vue.d.ts +13 -38
- package/dist/index20.vue.d.cts +13 -38
- package/dist/index20.vue.d.ts +128 -11
- package/dist/index21.vue.d.cts +128 -11
- package/dist/index21.vue.d.ts +75 -25
- package/dist/index22.vue.d.cts +75 -25
- package/dist/index22.vue.d.ts +72 -78
- package/dist/index23.vue.d.cts +97 -75
- package/dist/index23.vue.d.ts +96 -68
- package/dist/index24.vue.d.cts +47 -89
- package/dist/index24.vue.d.ts +47 -89
- package/dist/index25.vue.d.cts +19 -127
- package/dist/index25.vue.d.ts +19 -127
- package/dist/index26.vue.d.cts +87 -94
- package/dist/index26.vue.d.ts +87 -94
- package/dist/index27.vue.d.cts +36 -66
- package/dist/index27.vue.d.ts +36 -66
- package/dist/index28.vue.d.cts +12 -96
- package/dist/index28.vue.d.ts +12 -96
- package/dist/index29.vue.d.cts +85 -94
- package/dist/index29.vue.d.ts +85 -94
- package/dist/index3.vue.d.cts +3 -3
- package/dist/index3.vue.d.ts +3 -3
- package/dist/index30.vue.d.cts +103 -21
- package/dist/index30.vue.d.ts +103 -21
- package/dist/index31.vue.d.cts +75 -0
- package/dist/index31.vue.d.ts +75 -0
- package/dist/index5.vue.d.cts +3 -3
- package/dist/index7.vue.d.ts +1 -1
- package/dist/index8.vue.d.cts +1 -1
- package/dist/index9.vue.d.ts +4 -4
- package/dist/mapUtils.d.cts +4 -4
- package/dist/mapUtils.d.ts +4 -4
- package/dist/options.cjs +1 -0
- package/dist/options.d.cts +9 -0
- package/dist/options.js +1 -0
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/style.css +219 -214
- package/dist/useCollapsePanel.d.cts +4 -4
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +6 -6
- package/dist/useCropperCore.d.ts +6 -6
- package/dist/useDynamicFormState.d.cts +12 -970
- package/dist/useDynamicFormState.d.ts +12 -960
- package/dist/useEdgeInteraction.d.cts +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- package/dist/useFormConfig.d.cts +5 -5
- package/dist/useFormConfig.d.ts +13 -6
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useInfiniteScroll.d.cts +1 -1
- package/dist/useInfiniteScroll.d.ts +1 -1
- package/dist/useQRCode.d.cts +4 -4
- package/dist/useQRCode.d.ts +4 -4
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +7 -7
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useTableQuery.d.cts +899 -0
- package/dist/useTableQuery.d.ts +889 -0
- package/dist/useWorkflowValidation.d.cts +4 -4
- package/dist/useWorkflowValidation.d.ts +4 -4
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/docs/guides/data-workflows.md +8 -38
- package/docs/guides/search-workflows.md +3 -5
- package/docs/guides/table-density.md +9 -1
- package/package.json +1 -1
- package/dist/dictionary.cjs +0 -1
- package/dist/dictionary.d.cts +0 -47
- package/dist/dictionary.d.ts +0 -47
- package/dist/dictionary.js +0 -1
- package/dist/useDictionary.cjs +0 -1
- package/dist/useDictionary.js +0 -1
package/dist/index10.vue.d.ts
CHANGED
|
@@ -61,15 +61,15 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
|
|
|
61
61
|
close: () => void; /** 当前是否可见 */
|
|
62
62
|
visible: vue.ComputedRef<boolean>;
|
|
63
63
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
64
|
-
close: () => any;
|
|
65
64
|
select: (item: ContextMenuItem) => any;
|
|
65
|
+
close: () => any;
|
|
66
66
|
open: (position: {
|
|
67
67
|
x: number;
|
|
68
68
|
y: number;
|
|
69
69
|
}) => any;
|
|
70
70
|
}, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
|
|
71
|
-
onClose?: (() => any) | undefined;
|
|
72
71
|
onSelect?: ((item: ContextMenuItem) => any) | undefined;
|
|
72
|
+
onClose?: (() => any) | undefined;
|
|
73
73
|
onOpen?: ((position: {
|
|
74
74
|
x: number;
|
|
75
75
|
y: number;
|
|
@@ -77,9 +77,9 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
|
|
|
77
77
|
}>, {
|
|
78
78
|
items: ContextMenuItem[];
|
|
79
79
|
disabled: boolean;
|
|
80
|
-
zIndex: number;
|
|
81
80
|
minWidth: number;
|
|
82
81
|
maxWidth: number;
|
|
82
|
+
zIndex: number;
|
|
83
83
|
subMenuPlacement: "right" | "left";
|
|
84
84
|
autoClose: boolean;
|
|
85
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index11.vue.d.cts
CHANGED
|
@@ -61,15 +61,15 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
|
|
|
61
61
|
close: () => void; /** 当前是否可见 */
|
|
62
62
|
visible: vue.ComputedRef<boolean>;
|
|
63
63
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
64
|
-
close: () => any;
|
|
65
64
|
select: (item: ContextMenuItem) => any;
|
|
65
|
+
close: () => any;
|
|
66
66
|
open: (position: {
|
|
67
67
|
x: number;
|
|
68
68
|
y: number;
|
|
69
69
|
}) => any;
|
|
70
70
|
}, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
|
|
71
|
-
onClose?: (() => any) | undefined;
|
|
72
71
|
onSelect?: ((item: ContextMenuItem) => any) | undefined;
|
|
72
|
+
onClose?: (() => any) | undefined;
|
|
73
73
|
onOpen?: ((position: {
|
|
74
74
|
x: number;
|
|
75
75
|
y: number;
|
|
@@ -77,9 +77,9 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
|
|
|
77
77
|
}>, {
|
|
78
78
|
items: ContextMenuItem[];
|
|
79
79
|
disabled: boolean;
|
|
80
|
-
zIndex: number;
|
|
81
80
|
minWidth: number;
|
|
82
81
|
maxWidth: number;
|
|
82
|
+
zIndex: number;
|
|
83
83
|
subMenuPlacement: "right" | "left";
|
|
84
84
|
autoClose: boolean;
|
|
85
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index11.vue.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as ActionItem, t as ActionBarConfig } from "./types.js";
|
|
2
2
|
import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.js";
|
|
3
|
-
import { t as DictionaryBinding } from "./dictionary.js";
|
|
4
3
|
import { t as ComponentDensity } from "./density.js";
|
|
5
4
|
import * as vue from "vue";
|
|
6
5
|
import { ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter, Ref, VNodeChild } from "vue";
|
|
6
|
+
import * as naive_ui0 from "naive-ui";
|
|
7
7
|
import { DataTableBaseColumn, DataTableRowKey, FormItemRule, PaginationProps } from "naive-ui";
|
|
8
8
|
|
|
9
9
|
//#region src/components/C_Table/columnPresentation.d.ts
|
|
@@ -767,7 +767,9 @@ interface BaseConfig<T extends object = DataRecord> {
|
|
|
767
767
|
enabled?: boolean;
|
|
768
768
|
rowCheckable?: (row: T) => boolean;
|
|
769
769
|
}
|
|
770
|
-
type SelectOption = BaseOption
|
|
770
|
+
type SelectOption = Omit<BaseOption, 'value'> & {
|
|
771
|
+
value: string | number | boolean;
|
|
772
|
+
};
|
|
771
773
|
interface EditProps {
|
|
772
774
|
min?: number;
|
|
773
775
|
max?: number;
|
|
@@ -777,6 +779,7 @@ interface EditProps {
|
|
|
777
779
|
rows?: number;
|
|
778
780
|
placeholder?: string;
|
|
779
781
|
options?: SelectOption[];
|
|
782
|
+
fallbackOption?: naive_ui0.SelectProps['fallbackOption'];
|
|
780
783
|
rules?: FormItemRule[];
|
|
781
784
|
format?: string;
|
|
782
785
|
valueFormat?: string;
|
|
@@ -810,8 +813,6 @@ interface BaseTableColumn<T extends object = DataRecord> extends Omit<DataTableB
|
|
|
810
813
|
status?: ColumnStatus;
|
|
811
814
|
/** 未声明 width 时默认按内容测宽;false 使用 display.columnWidth。 */
|
|
812
815
|
autoWidth?: boolean;
|
|
813
|
-
/** 字典显示低于 render/formatter;编辑时显式 editProps.options 优先。 */
|
|
814
|
-
dictionary?: DictionaryBinding;
|
|
815
816
|
fixed?: 'left' | 'right';
|
|
816
817
|
resizable?: boolean;
|
|
817
818
|
minWidth?: number;
|
|
@@ -1120,8 +1121,8 @@ interface DataPickerEmits<T extends object> {
|
|
|
1120
1121
|
//#region src/components/C_DataPicker/index.vue.d.ts
|
|
1121
1122
|
declare const __VLS_export: <T extends object>(__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<{
|
|
1122
1123
|
props: vue.PublicProps & __VLS_PrettifyLocal<DataPickerProps<T> & {
|
|
1123
|
-
"onUpdate:modelValue"?: ((value: DataPickerValue | DataPickerValue[] | null) => any) | undefined;
|
|
1124
1124
|
onSelect?: ((rows: T[]) => any) | undefined;
|
|
1125
|
+
"onUpdate:modelValue"?: ((value: DataPickerValue | DataPickerValue[] | null) => any) | undefined;
|
|
1125
1126
|
}> & (typeof globalThis extends {
|
|
1126
1127
|
__VLS_PROPS_FALLBACK: infer P;
|
|
1127
1128
|
} ? P : {});
|
|
@@ -1131,7 +1132,7 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
|
|
|
1131
1132
|
}>) => void;
|
|
1132
1133
|
attrs: any;
|
|
1133
1134
|
slots: {};
|
|
1134
|
-
emit: ((evt: "
|
|
1135
|
+
emit: ((evt: "select", rows: T[]) => void) & ((evt: "update:modelValue", value: DataPickerValue | DataPickerValue[] | null) => void);
|
|
1135
1136
|
}>) => vue.VNode & {
|
|
1136
1137
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1137
1138
|
};
|
package/dist/index12.vue.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as ActionItem, t as ActionBarConfig } from "./types.cjs";
|
|
2
2
|
import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.cjs";
|
|
3
|
-
import { t as DictionaryBinding } from "./dictionary.cjs";
|
|
4
3
|
import { t as ComponentDensity } from "./density.cjs";
|
|
5
4
|
import * as vue from "vue";
|
|
6
5
|
import { ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter, Ref, VNodeChild } from "vue";
|
|
6
|
+
import * as naive_ui0 from "naive-ui";
|
|
7
7
|
import { DataTableBaseColumn, DataTableRowKey, FormItemRule, PaginationProps } from "naive-ui";
|
|
8
8
|
|
|
9
9
|
//#region src/components/C_Table/columnPresentation.d.ts
|
|
@@ -767,7 +767,9 @@ interface BaseConfig<T extends object = DataRecord> {
|
|
|
767
767
|
enabled?: boolean;
|
|
768
768
|
rowCheckable?: (row: T) => boolean;
|
|
769
769
|
}
|
|
770
|
-
type SelectOption = BaseOption
|
|
770
|
+
type SelectOption = Omit<BaseOption, 'value'> & {
|
|
771
|
+
value: string | number | boolean;
|
|
772
|
+
};
|
|
771
773
|
interface EditProps {
|
|
772
774
|
min?: number;
|
|
773
775
|
max?: number;
|
|
@@ -777,6 +779,7 @@ interface EditProps {
|
|
|
777
779
|
rows?: number;
|
|
778
780
|
placeholder?: string;
|
|
779
781
|
options?: SelectOption[];
|
|
782
|
+
fallbackOption?: naive_ui0.SelectProps['fallbackOption'];
|
|
780
783
|
rules?: FormItemRule[];
|
|
781
784
|
format?: string;
|
|
782
785
|
valueFormat?: string;
|
|
@@ -810,8 +813,6 @@ interface BaseTableColumn<T extends object = DataRecord> extends Omit<DataTableB
|
|
|
810
813
|
status?: ColumnStatus;
|
|
811
814
|
/** 未声明 width 时默认按内容测宽;false 使用 display.columnWidth。 */
|
|
812
815
|
autoWidth?: boolean;
|
|
813
|
-
/** 字典显示低于 render/formatter;编辑时显式 editProps.options 优先。 */
|
|
814
|
-
dictionary?: DictionaryBinding;
|
|
815
816
|
fixed?: 'left' | 'right';
|
|
816
817
|
resizable?: boolean;
|
|
817
818
|
minWidth?: number;
|
|
@@ -1120,8 +1121,8 @@ interface DataPickerEmits<T extends object> {
|
|
|
1120
1121
|
//#region src/components/C_DataPicker/index.vue.d.ts
|
|
1121
1122
|
declare const __VLS_export: <T extends object>(__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<{
|
|
1122
1123
|
props: vue.PublicProps & __VLS_PrettifyLocal<DataPickerProps<T> & {
|
|
1123
|
-
"onUpdate:modelValue"?: ((value: DataPickerValue | DataPickerValue[] | null) => any) | undefined;
|
|
1124
1124
|
onSelect?: ((rows: T[]) => any) | undefined;
|
|
1125
|
+
"onUpdate:modelValue"?: ((value: DataPickerValue | DataPickerValue[] | null) => any) | undefined;
|
|
1125
1126
|
}> & (typeof globalThis extends {
|
|
1126
1127
|
__VLS_PROPS_FALLBACK: infer P;
|
|
1127
1128
|
} ? P : {});
|
|
@@ -1131,7 +1132,7 @@ declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<
|
|
|
1131
1132
|
}>) => void;
|
|
1132
1133
|
attrs: any;
|
|
1133
1134
|
slots: {};
|
|
1134
|
-
emit: ((evt: "
|
|
1135
|
+
emit: ((evt: "select", rows: T[]) => void) & ((evt: "update:modelValue", value: DataPickerValue | DataPickerValue[] | null) => void);
|
|
1135
1136
|
}>) => vue.VNode & {
|
|
1136
1137
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1137
1138
|
};
|
package/dist/index13.vue.d.ts
CHANGED
|
@@ -42,22 +42,22 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
42
42
|
} | null>>;
|
|
43
43
|
isInitialized: Readonly<vue.Ref<boolean, boolean>>;
|
|
44
44
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
45
|
-
"update:modelValue": (value: string) => any;
|
|
46
45
|
error: (error: Error) => any;
|
|
46
|
+
"update:modelValue": (value: string) => any;
|
|
47
47
|
"editor-mounted": (editor: EditorInstance) => any;
|
|
48
48
|
"editor-change": (html: string) => any;
|
|
49
49
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
50
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
51
50
|
onError?: ((error: Error) => any) | undefined;
|
|
51
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
52
52
|
"onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
|
|
53
53
|
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
54
54
|
}>, {
|
|
55
|
-
modelValue: string;
|
|
56
55
|
theme: "light" | "dark";
|
|
57
|
-
disabled: boolean;
|
|
58
56
|
height: number;
|
|
59
|
-
placeholder: string;
|
|
60
57
|
readonly: boolean;
|
|
58
|
+
placeholder: string;
|
|
59
|
+
modelValue: string;
|
|
60
|
+
disabled: boolean;
|
|
61
61
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
62
62
|
declare const _default: typeof __VLS_export;
|
|
63
63
|
//#endregion
|
package/dist/index14.vue.d.cts
CHANGED
|
@@ -42,22 +42,22 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
42
42
|
} | null>>;
|
|
43
43
|
isInitialized: Readonly<vue.Ref<boolean, boolean>>;
|
|
44
44
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
45
|
-
"update:modelValue": (value: string) => any;
|
|
46
45
|
error: (error: Error) => any;
|
|
46
|
+
"update:modelValue": (value: string) => any;
|
|
47
47
|
"editor-mounted": (editor: EditorInstance) => any;
|
|
48
48
|
"editor-change": (html: string) => any;
|
|
49
49
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
50
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
51
50
|
onError?: ((error: Error) => any) | undefined;
|
|
51
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
52
52
|
"onEditor-mounted"?: ((editor: EditorInstance) => any) | undefined;
|
|
53
53
|
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
54
54
|
}>, {
|
|
55
|
-
modelValue: string;
|
|
56
55
|
theme: "light" | "dark";
|
|
57
|
-
disabled: boolean;
|
|
58
56
|
height: number;
|
|
59
|
-
placeholder: string;
|
|
60
57
|
readonly: boolean;
|
|
58
|
+
placeholder: string;
|
|
59
|
+
modelValue: string;
|
|
60
|
+
disabled: boolean;
|
|
61
61
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
62
62
|
declare const _default: typeof __VLS_export;
|
|
63
63
|
//#endregion
|
package/dist/index15.vue.d.ts
CHANGED
|
@@ -1,60 +1,58 @@
|
|
|
1
|
+
import { E as FormRecord, T as FormOption, n as FormConfig, z as SubmitEventPayload } from "./useFormConfig.js";
|
|
1
2
|
import * as vue from "vue";
|
|
2
|
-
import {
|
|
3
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
4
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
5
|
+
//#region src/components/C_FormModal/types.d.ts
|
|
6
|
+
type FormModalMode = 'create' | 'edit';
|
|
7
|
+
/**
|
|
8
|
+
* Structural editor contract. It intentionally does not depend on request-core,
|
|
9
|
+
* so any headless CRUD implementation can drive the modal.
|
|
10
|
+
*/
|
|
11
|
+
interface FormModalEditor<T extends object = FormRecord> {
|
|
12
|
+
visible: Ref<boolean>;
|
|
13
|
+
mode: Ref<FormModalMode>;
|
|
14
|
+
model: Ref<T | null>;
|
|
15
|
+
title: Ref<string>;
|
|
16
|
+
loading: Ref<boolean> | ComputedRef<boolean>;
|
|
17
|
+
setModel(model: T): void;
|
|
18
|
+
close(): void;
|
|
19
|
+
submit(model?: T): Promise<boolean>;
|
|
20
|
+
}
|
|
21
|
+
interface FormModalProps<T extends object = FormRecord> {
|
|
22
|
+
editor: FormModalEditor<T>;
|
|
23
|
+
options: FormOption<T>[];
|
|
24
|
+
config?: FormConfig<T>;
|
|
25
|
+
width?: number | string;
|
|
26
|
+
createText?: string;
|
|
27
|
+
saveText?: string;
|
|
28
|
+
cancelText?: string;
|
|
29
|
+
closable?: boolean;
|
|
30
|
+
maskClosable?: boolean;
|
|
31
|
+
closeOnEsc?: boolean;
|
|
32
|
+
}
|
|
33
|
+
interface FormModalEmits<T extends object = FormRecord> {
|
|
34
|
+
submit: [payload: SubmitEventPayload<T>, saved: boolean];
|
|
35
|
+
close: [];
|
|
24
36
|
}
|
|
25
37
|
//#endregion
|
|
26
|
-
//#region src/components/
|
|
27
|
-
declare const __VLS_export:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
44
|
-
size: number | string;
|
|
45
|
-
color: string;
|
|
46
|
-
flip: "horizontal" | "vertical" | "both";
|
|
47
|
-
clickable: boolean;
|
|
48
|
-
rotate: number;
|
|
49
|
-
viewBox: string;
|
|
50
|
-
ariaLabel: string;
|
|
51
|
-
svgPath: string;
|
|
52
|
-
alt: string;
|
|
53
|
-
fallbackIcon: string;
|
|
54
|
-
loadTimeout: number;
|
|
55
|
-
customClass: string;
|
|
56
|
-
componentProps: Record<string, unknown>;
|
|
57
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
//#region src/components/C_FormModal/index.vue.d.ts
|
|
39
|
+
declare const __VLS_export: <T extends object = FormRecord>(__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<{
|
|
40
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
|
|
41
|
+
onClose?: (() => any) | undefined;
|
|
42
|
+
onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
|
|
43
|
+
}> & (typeof globalThis extends {
|
|
44
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
45
|
+
} ? P : {});
|
|
46
|
+
expose: (exposed: {}) => void;
|
|
47
|
+
attrs: any;
|
|
48
|
+
slots: {
|
|
49
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
50
|
+
};
|
|
51
|
+
emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
|
|
52
|
+
}>) => vue.VNode & {
|
|
53
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
54
|
+
};
|
|
58
55
|
declare const _default: typeof __VLS_export;
|
|
56
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
59
57
|
//#endregion
|
|
60
|
-
export {
|
|
58
|
+
export { FormModalProps as a, FormModalMode as i, FormModalEditor as n, FormModalEmits as r, _default as t };
|
package/dist/index16.vue.d.cts
CHANGED
|
@@ -1,60 +1,58 @@
|
|
|
1
|
+
import { E as FormRecord, T as FormOption, n as FormConfig, z as SubmitEventPayload } from "./useFormConfig.cjs";
|
|
1
2
|
import * as vue from "vue";
|
|
2
|
-
import {
|
|
3
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
4
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
5
|
+
//#region src/components/C_FormModal/types.d.ts
|
|
6
|
+
type FormModalMode = 'create' | 'edit';
|
|
7
|
+
/**
|
|
8
|
+
* Structural editor contract. It intentionally does not depend on request-core,
|
|
9
|
+
* so any headless CRUD implementation can drive the modal.
|
|
10
|
+
*/
|
|
11
|
+
interface FormModalEditor<T extends object = FormRecord> {
|
|
12
|
+
visible: Ref<boolean>;
|
|
13
|
+
mode: Ref<FormModalMode>;
|
|
14
|
+
model: Ref<T | null>;
|
|
15
|
+
title: Ref<string>;
|
|
16
|
+
loading: Ref<boolean> | ComputedRef<boolean>;
|
|
17
|
+
setModel(model: T): void;
|
|
18
|
+
close(): void;
|
|
19
|
+
submit(model?: T): Promise<boolean>;
|
|
20
|
+
}
|
|
21
|
+
interface FormModalProps<T extends object = FormRecord> {
|
|
22
|
+
editor: FormModalEditor<T>;
|
|
23
|
+
options: FormOption<T>[];
|
|
24
|
+
config?: FormConfig<T>;
|
|
25
|
+
width?: number | string;
|
|
26
|
+
createText?: string;
|
|
27
|
+
saveText?: string;
|
|
28
|
+
cancelText?: string;
|
|
29
|
+
closable?: boolean;
|
|
30
|
+
maskClosable?: boolean;
|
|
31
|
+
closeOnEsc?: boolean;
|
|
32
|
+
}
|
|
33
|
+
interface FormModalEmits<T extends object = FormRecord> {
|
|
34
|
+
submit: [payload: SubmitEventPayload<T>, saved: boolean];
|
|
35
|
+
close: [];
|
|
24
36
|
}
|
|
25
37
|
//#endregion
|
|
26
|
-
//#region src/components/
|
|
27
|
-
declare const __VLS_export:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
44
|
-
size: number | string;
|
|
45
|
-
color: string;
|
|
46
|
-
flip: "horizontal" | "vertical" | "both";
|
|
47
|
-
clickable: boolean;
|
|
48
|
-
rotate: number;
|
|
49
|
-
viewBox: string;
|
|
50
|
-
ariaLabel: string;
|
|
51
|
-
svgPath: string;
|
|
52
|
-
alt: string;
|
|
53
|
-
fallbackIcon: string;
|
|
54
|
-
loadTimeout: number;
|
|
55
|
-
customClass: string;
|
|
56
|
-
componentProps: Record<string, unknown>;
|
|
57
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
//#region src/components/C_FormModal/index.vue.d.ts
|
|
39
|
+
declare const __VLS_export: <T extends object = FormRecord>(__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<{
|
|
40
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<FormModalProps<T> & {
|
|
41
|
+
onClose?: (() => any) | undefined;
|
|
42
|
+
onSubmit?: ((payload: SubmitEventPayload<T>, saved: boolean) => any) | undefined;
|
|
43
|
+
}> & (typeof globalThis extends {
|
|
44
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
45
|
+
} ? P : {});
|
|
46
|
+
expose: (exposed: {}) => void;
|
|
47
|
+
attrs: any;
|
|
48
|
+
slots: {
|
|
49
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
50
|
+
};
|
|
51
|
+
emit: ((evt: "close") => void) & ((evt: "submit", payload: SubmitEventPayload<T>, saved: boolean) => void);
|
|
52
|
+
}>) => vue.VNode & {
|
|
53
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
54
|
+
};
|
|
58
55
|
declare const _default: typeof __VLS_export;
|
|
56
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
59
57
|
//#endregion
|
|
60
|
-
export {
|
|
58
|
+
export { FormModalProps as a, FormModalMode as i, FormModalEditor as n, FormModalEmits as r, _default as t };
|
package/dist/index16.vue.d.ts
CHANGED
|
@@ -1,20 +1,132 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
//#region src/components/C_Guide/types.d.ts
|
|
4
|
+
/** 通用功能示意图,不包含宿主业务数据。 */
|
|
5
|
+
type GuideIllustration = 'navigation' | 'search' | 'tabs' | 'account' | 'overview' | 'notification' | 'fullscreen' | 'language' | 'theme' | 'settings';
|
|
6
|
+
/** 可使用选择器、真实元素或动态解析函数定位目标。 */
|
|
7
|
+
type GuideTarget = string | Element | (() => Element | null | undefined);
|
|
8
|
+
/** 引导实例公开方法,用于宿主在路由变化时主动停止等场景。 */
|
|
9
|
+
interface GuideExpose {
|
|
10
|
+
startGuide: (force?: boolean) => Promise<void>;
|
|
11
|
+
stopGuide: () => void;
|
|
12
|
+
resetCompleted: () => void;
|
|
13
|
+
isCompleted: () => boolean;
|
|
14
|
+
}
|
|
15
|
+
/** 引导步骤定义 */
|
|
16
|
+
interface GuideStep {
|
|
17
|
+
/** 目标元素;不传时可展示居中的欢迎步骤。 */
|
|
18
|
+
element?: GuideTarget;
|
|
19
|
+
/** 弹出层配置 */
|
|
20
|
+
popover: {
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
side?: 'top' | 'right' | 'bottom' | 'left'; /** 可选的轻量示意图,使用组件主题色。 */
|
|
24
|
+
illustration?: GuideIllustration;
|
|
25
|
+
};
|
|
26
|
+
/** 步骤所属分组(用于步骤分组展示) */
|
|
27
|
+
group?: string;
|
|
28
|
+
/** 进入此步骤前的回调 */
|
|
29
|
+
onHighlightStarted?: (element: Element | undefined, step: GuideStep) => void;
|
|
30
|
+
/** 离开此步骤后的回调 */
|
|
31
|
+
onDeselected?: (element: Element | undefined, step: GuideStep) => void;
|
|
32
|
+
/** 是否跳过此步骤的条件 */
|
|
33
|
+
skipIf?: () => boolean;
|
|
34
|
+
}
|
|
35
|
+
/** 引导主题配置 */
|
|
36
|
+
interface GuideTheme {
|
|
37
|
+
/** 弹层背景色 */
|
|
38
|
+
popoverBgColor?: string;
|
|
39
|
+
/** 弹层文字色 */
|
|
40
|
+
popoverTextColor?: string;
|
|
41
|
+
/** 按钮主色 */
|
|
42
|
+
primaryColor?: string;
|
|
43
|
+
/** 遮罩层透明度 */
|
|
44
|
+
overlayOpacity?: number;
|
|
45
|
+
/** 弹层圆角 */
|
|
46
|
+
borderRadius?: string;
|
|
47
|
+
}
|
|
48
|
+
/** 引导持久化配置 */
|
|
49
|
+
interface GuidePersistence {
|
|
50
|
+
/** 是否启用持久化(记住已完成的引导) */
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
/** 持久化 key 前缀 */
|
|
53
|
+
keyPrefix?: string;
|
|
54
|
+
}
|
|
55
|
+
/** C_Guide Props */
|
|
56
|
+
interface GuideProps {
|
|
57
|
+
/** 引导步骤 */
|
|
58
|
+
steps?: GuideStep[];
|
|
59
|
+
/** 完成按钮文字 */
|
|
60
|
+
doneBtnText?: string;
|
|
61
|
+
/** 下一步按钮文字 */
|
|
62
|
+
nextBtnText?: string;
|
|
63
|
+
/** 上一步按钮文字 */
|
|
64
|
+
prevBtnText?: string;
|
|
65
|
+
/** 是否显示跳过按钮;allowClose 为 false 时不显示,默认 true。 */
|
|
66
|
+
showSkipButton?: boolean;
|
|
67
|
+
/** 跳过按钮文字,默认“跳过引导”。 */
|
|
68
|
+
skipBtnText?: string;
|
|
69
|
+
/** 是否显示进度条 */
|
|
70
|
+
showProgress?: boolean;
|
|
71
|
+
/** 是否启用键盘导航(← → Esc) */
|
|
72
|
+
keyboard?: boolean;
|
|
73
|
+
/** 是否启用动画 */
|
|
74
|
+
animate?: boolean;
|
|
75
|
+
/** 是否允许点击遮罩关闭 */
|
|
76
|
+
allowClose?: boolean;
|
|
77
|
+
/** 自动跳过不存在或不可见的目标,默认 true。 */
|
|
78
|
+
skipMissingElements?: boolean;
|
|
79
|
+
/** 主题配置 */
|
|
80
|
+
theme?: GuideTheme;
|
|
81
|
+
/** 持久化配置 */
|
|
82
|
+
persistence?: GuidePersistence;
|
|
83
|
+
/** 弹层自定义 CSS 类 */
|
|
84
|
+
popoverClass?: string;
|
|
85
|
+
/** 是否显示触发按钮(设为 false 则仅通过 expose 的 startGuide 触发) */
|
|
86
|
+
showTrigger?: boolean;
|
|
87
|
+
/** 触发按钮的 tooltip 文字 */
|
|
88
|
+
triggerTooltip?: string;
|
|
89
|
+
/** 触发按钮图标 */
|
|
90
|
+
triggerIcon?: string;
|
|
11
91
|
}
|
|
12
92
|
//#endregion
|
|
13
|
-
//#region src/components/
|
|
14
|
-
declare const __VLS_export: vue.DefineComponent<
|
|
15
|
-
|
|
16
|
-
|
|
93
|
+
//#region src/components/C_Guide/index.vue.d.ts
|
|
94
|
+
declare const __VLS_export: vue.DefineComponent<GuideProps, {
|
|
95
|
+
startGuide: (force?: boolean) => Promise<void>;
|
|
96
|
+
stopGuide: () => void;
|
|
97
|
+
resetCompleted: () => void;
|
|
98
|
+
isCompleted: () => boolean;
|
|
99
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
100
|
+
error: (error: unknown) => any;
|
|
101
|
+
start: () => any;
|
|
102
|
+
close: (currentStep: number) => any;
|
|
103
|
+
complete: () => any;
|
|
104
|
+
skip: (currentStep: number) => any;
|
|
105
|
+
"step-change": (stepIndex: number, step: GuideStep) => any;
|
|
106
|
+
}, string, vue.PublicProps, Readonly<GuideProps> & Readonly<{
|
|
107
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
108
|
+
onStart?: (() => any) | undefined;
|
|
109
|
+
onClose?: ((currentStep: number) => any) | undefined;
|
|
110
|
+
onComplete?: (() => any) | undefined;
|
|
111
|
+
onSkip?: ((currentStep: number) => any) | undefined;
|
|
112
|
+
"onStep-change"?: ((stepIndex: number, step: GuideStep) => any) | undefined;
|
|
113
|
+
}>, {
|
|
114
|
+
keyboard: boolean;
|
|
115
|
+
steps: GuideStep[];
|
|
116
|
+
doneBtnText: string;
|
|
117
|
+
nextBtnText: string;
|
|
118
|
+
prevBtnText: string;
|
|
119
|
+
showSkipButton: boolean;
|
|
120
|
+
skipBtnText: string;
|
|
121
|
+
showProgress: boolean;
|
|
122
|
+
animate: boolean;
|
|
123
|
+
allowClose: boolean;
|
|
124
|
+
skipMissingElements: boolean;
|
|
125
|
+
popoverClass: string;
|
|
126
|
+
showTrigger: boolean;
|
|
127
|
+
triggerTooltip: string;
|
|
128
|
+
triggerIcon: string;
|
|
17
129
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
18
130
|
declare const _default: typeof __VLS_export;
|
|
19
131
|
//#endregion
|
|
20
|
-
export {
|
|
132
|
+
export { GuideProps as a, GuideTheme as c, GuidePersistence as i, GuideExpose as n, GuideStep as o, GuideIllustration as r, GuideTarget as s, _default as t };
|