@robot-admin/naive-ui-components 0.31.4 → 0.32.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 +16 -0
- package/README.md +11 -5
- package/README_EN.md +11 -5
- package/dist/C_AutoComplete.cjs +1 -0
- package/dist/C_AutoComplete.css +36 -0
- package/dist/C_AutoComplete.d.cts +4 -0
- package/dist/C_AutoComplete.d.ts +4 -0
- package/dist/C_AutoComplete.js +1 -0
- package/dist/C_AutoComplete2.cjs +1 -0
- package/dist/C_AutoComplete2.js +1 -0
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup.d.ts +1 -1
- package/dist/C_Barcode.d.cts +1 -1
- package/dist/C_Barcode.d.ts +1 -1
- package/dist/C_BatchResult.d.cts +1 -1
- package/dist/C_BatchResult.d.ts +1 -1
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_DataPicker.css +198 -31
- package/dist/C_DataPicker.d.cts +2 -2
- package/dist/C_DataPicker.d.ts +2 -2
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Density.d.cts +1 -1
- package/dist/C_Density.d.ts +1 -1
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_ErrorSummary.d.cts +1 -1
- package/dist/C_ErrorSummary.d.ts +1 -1
- package/dist/C_Form.base.css +68 -1
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +68 -1
- package/dist/C_Form.d.cts +3 -3
- package/dist/C_Form.d.ts +5 -3
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.cjs +1 -1
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +3 -1
- package/dist/C_FormModal.js +1 -1
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +139 -72
- package/dist/C_FormSearch.d.cts +1 -1
- package/dist/C_FormSearch.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.cts +2 -2
- 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_Select.css +32 -1
- package/dist/C_Select.d.cts +4 -2
- package/dist/C_Select.d.ts +4 -2
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +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 +183 -111
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +115 -110
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +11 -8
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +3 -3
- package/dist/C_Table2.js +3 -3
- package/dist/C_TagsView.d.cts +2 -2
- 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.cjs +1 -1
- package/dist/C_Tree.d.ts +10 -7
- package/dist/C_Tree.js +1 -1
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/OptionStatus.cjs +1 -0
- package/dist/OptionStatus.js +1 -0
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.cts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +7 -7
- package/dist/constants4.d.ts +7 -7
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data.d.cts +2 -1
- package/dist/data.d.ts +2 -1
- package/dist/data2.d.cts +8 -8
- package/dist/data2.d.ts +8 -8
- package/dist/dateRange.d.cts +9 -4
- package/dist/dateRange.d.ts +9 -4
- package/dist/fieldRenderers.cjs +1 -0
- package/dist/fieldRenderers.js +1 -0
- package/dist/formField.cjs +1 -1
- package/dist/formField.d.cts +46 -19
- package/dist/formField.d.ts +46 -19
- package/dist/formField.js +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +62 -58
- package/dist/index.d.ts +62 -57
- 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 +27 -35
- package/dist/index10.vue.d.ts +37 -80
- package/dist/index11.vue.d.cts +37 -80
- package/dist/index11.vue.d.ts +83 -16
- package/dist/index12.vue.d.cts +83 -16
- package/dist/index12.vue.d.ts +16 -59
- package/dist/index13.vue.d.cts +16 -59
- package/dist/index13.vue.d.ts +57 -17
- package/dist/index14.vue.d.cts +57 -17
- package/dist/index14.vue.d.ts +18 -55
- package/dist/index15.vue.d.cts +18 -55
- package/dist/index15.vue.d.ts +53 -124
- package/dist/index16.vue.d.cts +53 -124
- package/dist/index16.vue.d.ts +123 -51
- package/dist/index17.vue.d.cts +123 -51
- package/dist/index17.vue.d.ts +52 -25
- package/dist/index18.vue.d.cts +52 -25
- package/dist/index18.vue.d.ts +25 -12
- package/dist/index19.vue.d.cts +25 -12
- package/dist/index19.vue.d.ts +13 -129
- package/dist/index2.vue.d.cts +26 -82
- package/dist/index2.vue.d.ts +26 -82
- package/dist/index20.vue.d.cts +13 -129
- package/dist/index20.vue.d.ts +129 -76
- package/dist/index21.vue.d.cts +129 -76
- package/dist/index21.vue.d.ts +78 -72
- package/dist/index22.vue.d.cts +75 -97
- package/dist/index22.vue.d.ts +68 -96
- package/dist/index23.vue.d.cts +91 -40
- package/dist/index23.vue.d.ts +91 -40
- package/dist/index24.vue.d.cts +49 -23
- package/dist/index24.vue.d.ts +49 -23
- package/dist/index25.vue.d.cts +19 -46
- package/dist/index25.vue.d.ts +19 -46
- package/dist/index26.vue.d.cts +25 -98
- package/dist/index26.vue.d.ts +25 -98
- package/dist/index27.vue.d.cts +95 -37
- package/dist/index27.vue.d.ts +95 -37
- package/dist/index28.vue.d.cts +34 -8
- package/dist/index28.vue.d.ts +34 -8
- package/dist/index29.vue.d.cts +9 -86
- package/dist/index29.vue.d.ts +9 -86
- package/dist/index3.vue.d.cts +80 -30
- package/dist/index3.vue.d.ts +80 -30
- package/dist/index30.vue.d.cts +85 -99
- package/dist/index30.vue.d.ts +85 -99
- package/dist/index31.vue.d.cts +94 -63
- package/dist/index31.vue.d.ts +94 -63
- package/dist/index32.vue.d.cts +79 -0
- package/dist/index32.vue.d.ts +79 -0
- package/dist/index4.vue.d.cts +30 -19
- package/dist/index4.vue.d.ts +30 -19
- package/dist/index5.vue.d.cts +19 -128
- package/dist/index5.vue.d.ts +17 -34
- package/dist/index6.vue.d.cts +127 -35
- package/dist/index6.vue.d.ts +30 -22
- package/dist/index7.vue.d.cts +30 -22
- package/dist/index7.vue.d.ts +25 -118
- package/dist/index8.vue.d.cts +25 -118
- package/dist/index8.vue.d.ts +112 -21
- package/dist/index9.vue.d.cts +112 -21
- package/dist/index9.vue.d.ts +27 -35
- package/dist/mapUtils.d.cts +3 -3
- package/dist/mapUtils.d.ts +3 -3
- package/dist/optionSource.d.cts +30 -0
- package/dist/optionSource.d.ts +30 -0
- 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/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/style.css +349 -213
- package/dist/types2.d.cts +29 -103
- package/dist/types2.d.ts +30 -55
- package/dist/types3.d.cts +104 -55
- package/dist/types3.d.ts +60 -0
- package/dist/types4.d.cts +60 -0
- package/dist/types4.d.ts +42 -0
- package/dist/types5.d.cts +42 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +3 -3
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +9 -9
- package/dist/useCropperCore.d.ts +9 -9
- package/dist/useDataResource.cjs +1 -1
- package/dist/useDataResource.js +1 -1
- package/dist/useDynamicFormState.d.cts +15 -1
- package/dist/useDynamicFormState.d.ts +15 -1
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- package/dist/useFormConfig.d.cts +5 -2
- package/dist/useFormConfig.d.ts +5 -2
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useGridWidth.cjs +1 -1
- package/dist/useGridWidth.js +1 -1
- package/dist/useInfiniteScroll.d.cts +4 -4
- package/dist/useInfiniteScroll.d.ts +4 -4
- 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 +5 -5
- package/dist/useSplitResize.d.ts +5 -5
- package/dist/useTableQuery.d.cts +13 -11
- package/dist/useTableQuery.d.ts +13 -11
- package/dist/useWorkflowValidation.d.cts +34 -34
- package/dist/useWorkflowValidation.d.ts +34 -34
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/docs/architecture.md +3 -1
- package/docs/components.en.md +2 -1
- package/docs/components.md +2 -1
- package/docs/engineering.en.md +11 -1
- package/docs/engineering.md +11 -1
- package/docs/guides/data-picker.md +37 -1
- package/docs/guides/remote-options.md +93 -0
- package/docs/guides/search-workflows.md +99 -2
- package/docs/search-selection-coverage.md +59 -0
- package/docs/wl-ui-produce-coverage.md +2 -0
- package/package.json +6 -3
- package/dist/helpers2.cjs +0 -1
- package/dist/helpers2.js +0 -1
package/dist/index22.vue.d.ts
CHANGED
|
@@ -1,105 +1,77 @@
|
|
|
1
|
+
import { a as RouteItem, t as MenuAdapterConfig } from "./public.js";
|
|
1
2
|
import * as vue from "vue";
|
|
3
|
+
import { Ref } from "vue";
|
|
4
|
+
import { DropdownProps, MenuInst, MenuOption } from "naive-ui";
|
|
2
5
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
//#region src/components/C_Menu/types.d.ts
|
|
7
|
+
type MenuKey = string | number;
|
|
8
|
+
type MenuValue = MenuKey | null;
|
|
9
|
+
type OwnMenuKey<Option> = Option extends {
|
|
10
|
+
key?: infer Key;
|
|
11
|
+
} ? Extract<Key, MenuKey> : never;
|
|
12
|
+
/** 已遇到的递归业务类型或原生完整键类型均停止展开,内联配置包含子节点。 */
|
|
13
|
+
type MenuOptionKeys<Option, Seen = never> = Option extends Seen ? OwnMenuKey<Option> : MenuKey extends OwnMenuKey<Option> ? MenuKey : OwnMenuKey<Option> | (Option extends {
|
|
14
|
+
children?: infer Children;
|
|
15
|
+
} ? Children extends readonly unknown[] ? MenuOptionKeys<Children[number], Seen | Option> : never : never);
|
|
16
|
+
type WidenMenuKey<Key> = Key extends string ? string : Key extends number ? number : never;
|
|
17
|
+
type MenuSelectionKey<O extends MenuOption[] | undefined> = O extends MenuOption[] ? [MenuOptionKeys<O[number]>] extends [never] ? MenuKey : WidenMenuKey<MenuOptionKeys<O[number]>> : string;
|
|
18
|
+
interface MenuProps<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
|
|
19
|
+
options?: O;
|
|
20
|
+
routes?: RouteItem[];
|
|
21
|
+
adapterConfig?: MenuAdapterConfig;
|
|
22
|
+
labelFormatter?: (label: string) => string;
|
|
23
|
+
/** @deprecated Use modelValue. */
|
|
24
|
+
value?: MenuValue;
|
|
25
|
+
modelValue?: MenuValue;
|
|
26
|
+
expandedKeys?: MenuKey[];
|
|
27
|
+
defaultExpandedKeys?: MenuKey[];
|
|
28
|
+
mode?: 'vertical' | 'horizontal';
|
|
19
29
|
collapsed?: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
30
|
+
collapsedWidth?: number;
|
|
31
|
+
collapsedIconSize?: number;
|
|
32
|
+
inverted?: boolean;
|
|
33
|
+
themeOverrides?: Record<string, any>;
|
|
34
|
+
indent?: number;
|
|
35
|
+
rootIndent?: number;
|
|
36
|
+
dropdownProps?: DropdownProps;
|
|
22
37
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
lineColor?: string;
|
|
37
|
-
/** 连线宽度(px) */
|
|
38
|
-
lineWidth?: number;
|
|
39
|
-
/** 节点间距(px) */
|
|
40
|
-
nodeSpacing?: number;
|
|
41
|
-
/** 层级间距(px) */
|
|
42
|
-
levelSpacing?: number;
|
|
43
|
-
/** 是否支持缩放 */
|
|
44
|
-
zoomable?: boolean;
|
|
45
|
-
/** 是否支持平移 */
|
|
46
|
-
pannable?: boolean;
|
|
47
|
-
/** 初始缩放比例 */
|
|
48
|
-
initialZoom?: number;
|
|
49
|
-
/** 首次渲染与数据、布局变化时适配完整树形范围。 */
|
|
50
|
-
fitOnInit?: boolean;
|
|
51
|
-
/** 最小缩放 */
|
|
52
|
-
minZoom?: number;
|
|
53
|
-
/** 最大缩放 */
|
|
54
|
-
maxZoom?: number;
|
|
55
|
-
/** 是否可折叠 */
|
|
56
|
-
collapsible?: boolean;
|
|
38
|
+
interface MenuEmits<O extends MenuOption[] | undefined = MenuOption[] | undefined> {
|
|
39
|
+
select: [key: MenuSelectionKey<O>];
|
|
40
|
+
/** 鼠标或键盘聚焦叶子项时触发,可用于无副作用的路由预取。 */
|
|
41
|
+
intent: [key: MenuSelectionKey<O>];
|
|
42
|
+
'update:modelValue': [key: MenuSelectionKey<O> | null];
|
|
43
|
+
/** @deprecated Use update:modelValue. */
|
|
44
|
+
'update:value': [key: MenuSelectionKey<O> | null];
|
|
45
|
+
'update:expandedKeys': [keys: MenuSelectionKey<O>[]];
|
|
46
|
+
}
|
|
47
|
+
interface MenuExpose {
|
|
48
|
+
showOption: (key: MenuKey) => void;
|
|
49
|
+
/** Vue 公开实例会解包顶层 Ref。 */
|
|
50
|
+
menuRef: MenuInst | null;
|
|
57
51
|
}
|
|
58
52
|
//#endregion
|
|
59
|
-
//#region src/components/
|
|
60
|
-
declare
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
//#region src/components/C_Menu/index.vue.d.ts
|
|
54
|
+
declare const __VLS_export: <Options extends MenuOption[] | undefined = undefined>(__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<{
|
|
55
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<MenuProps<Options> & {
|
|
56
|
+
"onUpdate:modelValue"?: ((key: MenuSelectionKey<Options> | null) => any) | undefined;
|
|
57
|
+
onSelect?: ((key: MenuSelectionKey<Options>) => any) | undefined;
|
|
58
|
+
"onUpdate:expandedKeys"?: ((keys: MenuSelectionKey<Options>[]) => any) | undefined;
|
|
59
|
+
onIntent?: ((key: MenuSelectionKey<Options>) => any) | undefined;
|
|
60
|
+
"onUpdate:value"?: ((key: MenuSelectionKey<Options> | null) => any) | undefined;
|
|
61
|
+
}> & (typeof globalThis extends {
|
|
62
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
63
|
+
} ? P : {});
|
|
64
|
+
expose: (exposed: vue.ShallowUnwrapRef<{
|
|
65
|
+
showOption: (key: MenuKey) => void | undefined;
|
|
66
|
+
menuRef: Ref<MenuInst | null, MenuInst | null>;
|
|
67
|
+
}>) => void;
|
|
68
|
+
attrs: any;
|
|
69
|
+
slots: {};
|
|
70
|
+
emit: ((evt: "update:modelValue", key: MenuSelectionKey<Options> | null) => void) & ((evt: "select", key: MenuSelectionKey<Options>) => void) & ((evt: "update:expandedKeys", keys: MenuSelectionKey<Options>[]) => void) & ((evt: "intent", key: MenuSelectionKey<Options>) => void) & ((evt: "update:value", key: MenuSelectionKey<Options> | null) => void);
|
|
71
|
+
}>) => vue.VNode & {
|
|
72
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
67
73
|
};
|
|
68
|
-
declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
|
|
69
|
-
zoomIn: () => void;
|
|
70
|
-
zoomOut: () => void;
|
|
71
|
-
resetView: () => void;
|
|
72
|
-
fitView: () => Promise<void>;
|
|
73
|
-
zoom: vue.Ref<number, number>;
|
|
74
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
|
-
"node-click": (node: OrgChartNode) => any;
|
|
76
|
-
"node-expand": (node: OrgChartNode) => any;
|
|
77
|
-
"node-collapse": (node: OrgChartNode) => any;
|
|
78
|
-
}, string, vue.PublicProps, Readonly<OrgChartProps> & Readonly<{
|
|
79
|
-
"onNode-click"?: ((node: OrgChartNode) => any) | undefined;
|
|
80
|
-
"onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
|
|
81
|
-
"onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
|
|
82
|
-
}>, {
|
|
83
|
-
direction: OrgChartDirection;
|
|
84
|
-
lineColor: string;
|
|
85
|
-
lineWidth: number;
|
|
86
|
-
lineStyle: OrgChartLineStyle;
|
|
87
|
-
nodeSpacing: number;
|
|
88
|
-
levelSpacing: number;
|
|
89
|
-
zoomable: boolean;
|
|
90
|
-
pannable: boolean;
|
|
91
|
-
initialZoom: number;
|
|
92
|
-
fitOnInit: boolean;
|
|
93
|
-
minZoom: number;
|
|
94
|
-
maxZoom: number;
|
|
95
|
-
collapsible: boolean;
|
|
96
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
97
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
98
74
|
declare const _default: typeof __VLS_export;
|
|
99
|
-
type
|
|
100
|
-
new (): {
|
|
101
|
-
$slots: S;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
75
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
104
76
|
//#endregion
|
|
105
|
-
export {
|
|
77
|
+
export { MenuProps as a, MenuKey as i, MenuEmits as n, MenuValue as o, MenuExpose as r, _default as t };
|
package/dist/index23.vue.d.cts
CHANGED
|
@@ -1,47 +1,98 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { CSSProperties } from "vue";
|
|
3
2
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
indicatorTextColor?: string;
|
|
24
|
-
offsetDegree?: number;
|
|
25
|
-
railColor?: string | string[];
|
|
26
|
-
railStyle?: string | CSS | Array<string | CSS>;
|
|
27
|
-
showIndicator?: boolean;
|
|
28
|
-
status?: 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
29
|
-
strokeWidth?: number;
|
|
30
|
-
unit?: string;
|
|
3
|
+
//#region src/components/C_OrgChart/types.d.ts
|
|
4
|
+
/** 节点数据 */
|
|
5
|
+
interface OrgChartNode {
|
|
6
|
+
/** 唯一标识 */
|
|
7
|
+
id: string | number;
|
|
8
|
+
/** 节点标题(姓名/部门名) */
|
|
9
|
+
label: string;
|
|
10
|
+
/** 副标题(职位/描述) */
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
/** 头像 URL */
|
|
13
|
+
avatar?: string;
|
|
14
|
+
/** 子节点 */
|
|
15
|
+
children?: OrgChartNode[];
|
|
16
|
+
/** 自定义 CSS 类 */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** 节点是否默认折叠 */
|
|
19
|
+
collapsed?: boolean;
|
|
20
|
+
/** 节点额外数据(透传给插槽/事件) */
|
|
21
|
+
data?: Record<string, unknown>;
|
|
31
22
|
}
|
|
32
|
-
|
|
23
|
+
/** 布局方向 */
|
|
24
|
+
type OrgChartDirection = 'vertical' | 'horizontal';
|
|
25
|
+
/** 连线样式 */
|
|
26
|
+
type OrgChartLineStyle = 'straight' | 'rounded' | 'stepped';
|
|
27
|
+
/** C_OrgChart Props */
|
|
28
|
+
interface OrgChartProps {
|
|
29
|
+
/** 树形数据 */
|
|
30
|
+
data: OrgChartNode;
|
|
31
|
+
/** 布局方向 */
|
|
32
|
+
direction?: OrgChartDirection;
|
|
33
|
+
/** 连线样式 */
|
|
34
|
+
lineStyle?: OrgChartLineStyle;
|
|
35
|
+
/** 连线颜色 */
|
|
36
|
+
lineColor?: string;
|
|
37
|
+
/** 连线宽度(px) */
|
|
38
|
+
lineWidth?: number;
|
|
39
|
+
/** 节点间距(px) */
|
|
40
|
+
nodeSpacing?: number;
|
|
41
|
+
/** 层级间距(px) */
|
|
42
|
+
levelSpacing?: number;
|
|
43
|
+
/** 是否支持缩放 */
|
|
44
|
+
zoomable?: boolean;
|
|
45
|
+
/** 是否支持平移 */
|
|
46
|
+
pannable?: boolean;
|
|
47
|
+
/** 初始缩放比例 */
|
|
48
|
+
initialZoom?: number;
|
|
49
|
+
/** 首次渲染与数据、布局变化时适配完整树形范围。 */
|
|
50
|
+
fitOnInit?: boolean;
|
|
51
|
+
/** 最小缩放 */
|
|
52
|
+
minZoom?: number;
|
|
53
|
+
/** 最大缩放 */
|
|
54
|
+
maxZoom?: number;
|
|
55
|
+
/** 是否可折叠 */
|
|
56
|
+
collapsible?: boolean;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/C_OrgChart/index.vue.d.ts
|
|
60
|
+
declare var __VLS_12: {
|
|
61
|
+
node: OrgChartNode;
|
|
62
|
+
isLeaf: boolean;
|
|
63
|
+
isExpanded: boolean;
|
|
64
|
+
};
|
|
33
65
|
type __VLS_Slots = {} & {
|
|
34
|
-
|
|
66
|
+
node?: (props: typeof __VLS_12) => any;
|
|
35
67
|
};
|
|
36
|
-
declare const __VLS_base: vue.DefineComponent<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
68
|
+
declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
|
|
69
|
+
zoomIn: () => void;
|
|
70
|
+
zoomOut: () => void;
|
|
71
|
+
resetView: () => void;
|
|
72
|
+
fitView: () => Promise<void>;
|
|
73
|
+
zoom: vue.Ref<number, number>;
|
|
74
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
|
+
"node-click": (node: OrgChartNode) => any;
|
|
76
|
+
"node-expand": (node: OrgChartNode) => any;
|
|
77
|
+
"node-collapse": (node: OrgChartNode) => any;
|
|
78
|
+
}, string, vue.PublicProps, Readonly<OrgChartProps> & Readonly<{
|
|
79
|
+
"onNode-click"?: ((node: OrgChartNode) => any) | undefined;
|
|
80
|
+
"onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
|
|
81
|
+
"onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
|
|
82
|
+
}>, {
|
|
83
|
+
direction: OrgChartDirection;
|
|
84
|
+
collapsible: boolean;
|
|
85
|
+
lineColor: string;
|
|
86
|
+
lineWidth: number;
|
|
87
|
+
lineStyle: OrgChartLineStyle;
|
|
88
|
+
nodeSpacing: number;
|
|
89
|
+
levelSpacing: number;
|
|
90
|
+
zoomable: boolean;
|
|
91
|
+
pannable: boolean;
|
|
92
|
+
initialZoom: number;
|
|
93
|
+
fitOnInit: boolean;
|
|
94
|
+
minZoom: number;
|
|
95
|
+
maxZoom: number;
|
|
45
96
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
46
97
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
98
|
declare const _default: typeof __VLS_export;
|
|
@@ -51,4 +102,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
51
102
|
};
|
|
52
103
|
};
|
|
53
104
|
//#endregion
|
|
54
|
-
export { _default as t };
|
|
105
|
+
export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
|
package/dist/index23.vue.d.ts
CHANGED
|
@@ -1,47 +1,98 @@
|
|
|
1
1
|
import * as vue from "vue";
|
|
2
|
-
import { CSSProperties } from "vue";
|
|
3
2
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
indicatorTextColor?: string;
|
|
24
|
-
offsetDegree?: number;
|
|
25
|
-
railColor?: string | string[];
|
|
26
|
-
railStyle?: string | CSS | Array<string | CSS>;
|
|
27
|
-
showIndicator?: boolean;
|
|
28
|
-
status?: 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
29
|
-
strokeWidth?: number;
|
|
30
|
-
unit?: string;
|
|
3
|
+
//#region src/components/C_OrgChart/types.d.ts
|
|
4
|
+
/** 节点数据 */
|
|
5
|
+
interface OrgChartNode {
|
|
6
|
+
/** 唯一标识 */
|
|
7
|
+
id: string | number;
|
|
8
|
+
/** 节点标题(姓名/部门名) */
|
|
9
|
+
label: string;
|
|
10
|
+
/** 副标题(职位/描述) */
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
/** 头像 URL */
|
|
13
|
+
avatar?: string;
|
|
14
|
+
/** 子节点 */
|
|
15
|
+
children?: OrgChartNode[];
|
|
16
|
+
/** 自定义 CSS 类 */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** 节点是否默认折叠 */
|
|
19
|
+
collapsed?: boolean;
|
|
20
|
+
/** 节点额外数据(透传给插槽/事件) */
|
|
21
|
+
data?: Record<string, unknown>;
|
|
31
22
|
}
|
|
32
|
-
|
|
23
|
+
/** 布局方向 */
|
|
24
|
+
type OrgChartDirection = 'vertical' | 'horizontal';
|
|
25
|
+
/** 连线样式 */
|
|
26
|
+
type OrgChartLineStyle = 'straight' | 'rounded' | 'stepped';
|
|
27
|
+
/** C_OrgChart Props */
|
|
28
|
+
interface OrgChartProps {
|
|
29
|
+
/** 树形数据 */
|
|
30
|
+
data: OrgChartNode;
|
|
31
|
+
/** 布局方向 */
|
|
32
|
+
direction?: OrgChartDirection;
|
|
33
|
+
/** 连线样式 */
|
|
34
|
+
lineStyle?: OrgChartLineStyle;
|
|
35
|
+
/** 连线颜色 */
|
|
36
|
+
lineColor?: string;
|
|
37
|
+
/** 连线宽度(px) */
|
|
38
|
+
lineWidth?: number;
|
|
39
|
+
/** 节点间距(px) */
|
|
40
|
+
nodeSpacing?: number;
|
|
41
|
+
/** 层级间距(px) */
|
|
42
|
+
levelSpacing?: number;
|
|
43
|
+
/** 是否支持缩放 */
|
|
44
|
+
zoomable?: boolean;
|
|
45
|
+
/** 是否支持平移 */
|
|
46
|
+
pannable?: boolean;
|
|
47
|
+
/** 初始缩放比例 */
|
|
48
|
+
initialZoom?: number;
|
|
49
|
+
/** 首次渲染与数据、布局变化时适配完整树形范围。 */
|
|
50
|
+
fitOnInit?: boolean;
|
|
51
|
+
/** 最小缩放 */
|
|
52
|
+
minZoom?: number;
|
|
53
|
+
/** 最大缩放 */
|
|
54
|
+
maxZoom?: number;
|
|
55
|
+
/** 是否可折叠 */
|
|
56
|
+
collapsible?: boolean;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/components/C_OrgChart/index.vue.d.ts
|
|
60
|
+
declare var __VLS_12: {
|
|
61
|
+
node: OrgChartNode;
|
|
62
|
+
isLeaf: boolean;
|
|
63
|
+
isExpanded: boolean;
|
|
64
|
+
};
|
|
33
65
|
type __VLS_Slots = {} & {
|
|
34
|
-
|
|
66
|
+
node?: (props: typeof __VLS_12) => any;
|
|
35
67
|
};
|
|
36
|
-
declare const __VLS_base: vue.DefineComponent<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
68
|
+
declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
|
|
69
|
+
zoomIn: () => void;
|
|
70
|
+
zoomOut: () => void;
|
|
71
|
+
resetView: () => void;
|
|
72
|
+
fitView: () => Promise<void>;
|
|
73
|
+
zoom: vue.Ref<number, number>;
|
|
74
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
75
|
+
"node-click": (node: OrgChartNode) => any;
|
|
76
|
+
"node-expand": (node: OrgChartNode) => any;
|
|
77
|
+
"node-collapse": (node: OrgChartNode) => any;
|
|
78
|
+
}, string, vue.PublicProps, Readonly<OrgChartProps> & Readonly<{
|
|
79
|
+
"onNode-click"?: ((node: OrgChartNode) => any) | undefined;
|
|
80
|
+
"onNode-expand"?: ((node: OrgChartNode) => any) | undefined;
|
|
81
|
+
"onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
|
|
82
|
+
}>, {
|
|
83
|
+
direction: OrgChartDirection;
|
|
84
|
+
collapsible: boolean;
|
|
85
|
+
lineColor: string;
|
|
86
|
+
lineWidth: number;
|
|
87
|
+
lineStyle: OrgChartLineStyle;
|
|
88
|
+
nodeSpacing: number;
|
|
89
|
+
levelSpacing: number;
|
|
90
|
+
zoomable: boolean;
|
|
91
|
+
pannable: boolean;
|
|
92
|
+
initialZoom: number;
|
|
93
|
+
fitOnInit: boolean;
|
|
94
|
+
minZoom: number;
|
|
95
|
+
maxZoom: number;
|
|
45
96
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
46
97
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
47
98
|
declare const _default: typeof __VLS_export;
|
|
@@ -51,4 +102,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
51
102
|
};
|
|
52
103
|
};
|
|
53
104
|
//#endregion
|
|
54
|
-
export { _default as t };
|
|
105
|
+
export { OrgChartProps as a, OrgChartNode as i, OrgChartDirection as n, OrgChartLineStyle as r, _default as t };
|
package/dist/index24.vue.d.cts
CHANGED
|
@@ -1,28 +1,54 @@
|
|
|
1
|
-
import { n as ComponentLocale } from "./contracts.cjs";
|
|
2
1
|
import * as vue from "vue";
|
|
2
|
+
import { CSSProperties } from "vue";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
//#region src/components/C_Progress/index.vue.d.ts
|
|
5
|
+
type CSS = CSSProperties | string;
|
|
6
|
+
interface Props {
|
|
7
|
+
percentage: number | number[];
|
|
8
|
+
isAnimation?: boolean;
|
|
9
|
+
time?: number;
|
|
10
|
+
type?: 'line' | 'circle' | 'multiple-circle' | 'dashboard';
|
|
11
|
+
borderRadius?: number | string;
|
|
12
|
+
circleGap?: number;
|
|
13
|
+
color?: string | string[] | {
|
|
14
|
+
stops: string[];
|
|
15
|
+
} | Array<{
|
|
16
|
+
stops: string[];
|
|
17
|
+
}>;
|
|
18
|
+
fillBorderRadius?: number | string;
|
|
19
|
+
gapDegree?: number;
|
|
20
|
+
gapOffsetDegree?: number;
|
|
21
|
+
height?: number;
|
|
22
|
+
indicatorPlacement?: 'inside' | 'outside';
|
|
23
|
+
indicatorTextColor?: string;
|
|
24
|
+
offsetDegree?: number;
|
|
25
|
+
railColor?: string | string[];
|
|
26
|
+
railStyle?: string | CSS | Array<string | CSS>;
|
|
27
|
+
showIndicator?: boolean;
|
|
28
|
+
status?: 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
29
|
+
strokeWidth?: number;
|
|
30
|
+
unit?: string;
|
|
10
31
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
declare var __VLS_9: {};
|
|
33
|
+
type __VLS_Slots = {} & {
|
|
34
|
+
indicator?: (props: typeof __VLS_9) => any;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
37
|
+
status: "default" | "success" | "error" | "warning" | "info";
|
|
38
|
+
strokeWidth: number;
|
|
39
|
+
time: number;
|
|
40
|
+
percentage: number | number[];
|
|
41
|
+
isAnimation: boolean;
|
|
42
|
+
indicatorPlacement: "inside" | "outside";
|
|
43
|
+
showIndicator: boolean;
|
|
44
|
+
unit: string;
|
|
45
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
47
|
declare const _default: typeof __VLS_export;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
27
53
|
//#endregion
|
|
28
|
-
export {
|
|
54
|
+
export { _default as t };
|
package/dist/index24.vue.d.ts
CHANGED
|
@@ -1,28 +1,54 @@
|
|
|
1
|
-
import { n as ComponentLocale } from "./contracts.js";
|
|
2
1
|
import * as vue from "vue";
|
|
2
|
+
import { CSSProperties } from "vue";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
//#region src/components/C_Progress/index.vue.d.ts
|
|
5
|
+
type CSS = CSSProperties | string;
|
|
6
|
+
interface Props {
|
|
7
|
+
percentage: number | number[];
|
|
8
|
+
isAnimation?: boolean;
|
|
9
|
+
time?: number;
|
|
10
|
+
type?: 'line' | 'circle' | 'multiple-circle' | 'dashboard';
|
|
11
|
+
borderRadius?: number | string;
|
|
12
|
+
circleGap?: number;
|
|
13
|
+
color?: string | string[] | {
|
|
14
|
+
stops: string[];
|
|
15
|
+
} | Array<{
|
|
16
|
+
stops: string[];
|
|
17
|
+
}>;
|
|
18
|
+
fillBorderRadius?: number | string;
|
|
19
|
+
gapDegree?: number;
|
|
20
|
+
gapOffsetDegree?: number;
|
|
21
|
+
height?: number;
|
|
22
|
+
indicatorPlacement?: 'inside' | 'outside';
|
|
23
|
+
indicatorTextColor?: string;
|
|
24
|
+
offsetDegree?: number;
|
|
25
|
+
railColor?: string | string[];
|
|
26
|
+
railStyle?: string | CSS | Array<string | CSS>;
|
|
27
|
+
showIndicator?: boolean;
|
|
28
|
+
status?: 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
29
|
+
strokeWidth?: number;
|
|
30
|
+
unit?: string;
|
|
10
31
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
declare var __VLS_9: {};
|
|
33
|
+
type __VLS_Slots = {} & {
|
|
34
|
+
indicator?: (props: typeof __VLS_9) => any;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
37
|
+
status: "default" | "success" | "error" | "warning" | "info";
|
|
38
|
+
strokeWidth: number;
|
|
39
|
+
time: number;
|
|
40
|
+
percentage: number | number[];
|
|
41
|
+
isAnimation: boolean;
|
|
42
|
+
indicatorPlacement: "inside" | "outside";
|
|
43
|
+
showIndicator: boolean;
|
|
44
|
+
unit: string;
|
|
45
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
47
|
declare const _default: typeof __VLS_export;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
27
53
|
//#endregion
|
|
28
|
-
export {
|
|
54
|
+
export { _default as t };
|