@robot-admin/naive-ui-components 0.18.0 → 0.20.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/dist/C_Breadcrumb.css +308 -20
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +2 -2
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +1 -1
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Table.base.css +108 -108
- package/dist/C_Table.css +108 -108
- package/dist/constants3.d.cts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +6 -6
- package/dist/constants4.d.ts +6 -6
- package/dist/data.d.cts +10 -10
- package/dist/data.d.ts +10 -10
- package/dist/formValidation.cjs +1 -1
- package/dist/formValidation.js +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- 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 +6 -6
- package/dist/index11.vue.d.cts +6 -6
- package/dist/index11.vue.d.ts +2 -2
- package/dist/index12.vue.d.cts +2 -2
- package/dist/index12.vue.d.ts +1 -1
- package/dist/index13.vue.d.cts +1 -1
- package/dist/index13.vue.d.ts +8 -8
- package/dist/index14.vue.d.cts +8 -8
- package/dist/index15.vue.d.ts +1 -1
- package/dist/index16.vue.d.cts +1 -1
- package/dist/index16.vue.d.ts +1 -1
- package/dist/index17.vue.d.cts +1 -1
- package/dist/index17.vue.d.ts +2 -2
- package/dist/index18.vue.d.cts +2 -2
- package/dist/index18.vue.d.ts +5 -5
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index2.vue.d.cts +3 -3
- package/dist/index2.vue.d.ts +3 -3
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index22.vue.d.ts +2 -2
- package/dist/index25.vue.d.cts +3 -3
- package/dist/index25.vue.d.ts +3 -3
- package/dist/index26.vue.d.cts +2 -2
- package/dist/index26.vue.d.ts +2 -2
- package/dist/index3.vue.d.cts +5 -5
- package/dist/index3.vue.d.ts +5 -5
- package/dist/index4.vue.d.cts +5 -5
- package/dist/index4.vue.d.ts +26 -12
- package/dist/index5.vue.d.cts +26 -12
- package/dist/index6.vue.d.ts +2 -2
- package/dist/index7.vue.d.cts +2 -2
- package/dist/index8.vue.d.ts +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/index9.vue.d.ts +4 -4
- package/dist/presets.d.cts +5 -3
- package/dist/presets.d.ts +5 -3
- package/dist/public.d.ts +3 -1
- package/dist/style.css +416 -128
- package/dist/types.d.cts +3 -1
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +6 -6
- package/dist/useCollapsePanel.d.ts +6 -6
- 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 +4 -9
- package/dist/useDynamicFormState.d.ts +4 -9
- package/dist/useEdgeInteraction.d.cts +3 -3
- package/dist/useEdgeInteraction.d.ts +3 -3
- package/dist/useFullscreen.d.cts +2 -2
- package/dist/useFullscreen.d.ts +2 -2
- package/dist/useGlobalSearch.d.cts +1 -1
- package/dist/useGlobalSearch.d.ts +1 -1
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +5 -5
- package/dist/useQRCode.d.ts +5 -5
- package/dist/useSignatureHistory.d.cts +5 -5
- package/dist/useSignatureHistory.d.ts +5 -5
- package/dist/useSplitResize.d.cts +6 -6
- package/dist/useSplitResize.d.ts +6 -6
- package/dist/useTableQuery.cjs +2 -2
- package/dist/useTableQuery.d.cts +31 -70
- package/dist/useTableQuery.d.ts +31 -70
- package/dist/useTableQuery.js +1 -1
- package/dist/useWorkflowValidation.d.cts +4 -4
- package/dist/useWorkflowValidation.d.ts +4 -4
- package/dist/verification.d.cts +3 -3
- package/dist/verification.d.ts +3 -3
- package/docs/guides/usage.en.md +9 -1
- package/docs/guides/usage.md +20 -1
- package/package.json +2 -2
package/dist/index5.vue.d.cts
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import { t as BreadcrumbItem } from "./types.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
|
+
//#region src/components/C_Breadcrumb/types.d.ts
|
|
5
|
+
interface BreadcrumbRouteMeta {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
title?: unknown;
|
|
8
|
+
icon?: unknown;
|
|
9
|
+
hidden?: unknown;
|
|
10
|
+
breadcrumb?: unknown;
|
|
11
|
+
}
|
|
12
|
+
/** 可直接接收应用提供的授权菜单,非字符串图标由组件安全忽略。 */
|
|
13
|
+
interface BreadcrumbMenuItem {
|
|
14
|
+
path?: string;
|
|
15
|
+
key?: string | number;
|
|
16
|
+
name?: string | symbol | null;
|
|
17
|
+
label?: string;
|
|
18
|
+
icon?: unknown;
|
|
19
|
+
meta?: BreadcrumbRouteMeta;
|
|
20
|
+
children?: readonly BreadcrumbMenuItem[];
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
type?: string;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
4
25
|
//#region src/components/C_Breadcrumb/index.vue.d.ts
|
|
5
26
|
type __VLS_Props = {
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
items?: BreadcrumbItem[]; /** 是否显示图标 */
|
|
11
|
-
showIcon?: boolean; /** 图标大小 (px),默认 16 */
|
|
12
|
-
iconSize?: number;
|
|
13
|
-
/**
|
|
14
|
-
* 标签文本格式化函数(用于 i18n)
|
|
15
|
-
* 仅在自动模式下生效
|
|
16
|
-
*/
|
|
27
|
+
/** 手动路径,标签沿用传入值。 */items?: readonly BreadcrumbItem[]; /** 授权后的菜单树;提供时(含空数组)作为目录的唯一数据来源。 */
|
|
28
|
+
menus?: readonly BreadcrumbMenuItem[];
|
|
29
|
+
showIcon?: boolean;
|
|
30
|
+
iconSize?: number; /** 自动路径和菜单标签的翻译函数。 */
|
|
17
31
|
labelFormatter?: (label: string) => string;
|
|
18
32
|
};
|
|
19
33
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
@@ -26,4 +40,4 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
26
40
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
27
41
|
declare const _default: typeof __VLS_export;
|
|
28
42
|
//#endregion
|
|
29
|
-
export { _default as t };
|
|
43
|
+
export { BreadcrumbMenuItem as n, _default as t };
|
package/dist/index6.vue.d.ts
CHANGED
|
@@ -88,18 +88,18 @@ type __VLS_Slots = {} & {
|
|
|
88
88
|
declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
89
89
|
scrollToBottom: () => void;
|
|
90
90
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
91
|
-
"load-more": () => any;
|
|
92
91
|
send: (content: string) => any;
|
|
93
92
|
"select-contact": (id: string) => any;
|
|
93
|
+
"load-more": () => any;
|
|
94
94
|
"image-preview": (url: string) => any;
|
|
95
95
|
"file-click": (msg: ChatMessage) => any;
|
|
96
96
|
"file-upload": () => any;
|
|
97
97
|
"emoji-click": () => any;
|
|
98
98
|
resend: (msg: ChatMessage) => any;
|
|
99
99
|
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
100
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
101
100
|
onSend?: ((content: string) => any) | undefined;
|
|
102
101
|
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
102
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
103
103
|
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
104
104
|
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
105
105
|
"onFile-upload"?: (() => any) | undefined;
|
package/dist/index7.vue.d.cts
CHANGED
|
@@ -88,18 +88,18 @@ type __VLS_Slots = {} & {
|
|
|
88
88
|
declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
89
89
|
scrollToBottom: () => void;
|
|
90
90
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
91
|
-
"load-more": () => any;
|
|
92
91
|
send: (content: string) => any;
|
|
93
92
|
"select-contact": (id: string) => any;
|
|
93
|
+
"load-more": () => any;
|
|
94
94
|
"image-preview": (url: string) => any;
|
|
95
95
|
"file-click": (msg: ChatMessage) => any;
|
|
96
96
|
"file-upload": () => any;
|
|
97
97
|
"emoji-click": () => any;
|
|
98
98
|
resend: (msg: ChatMessage) => any;
|
|
99
99
|
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
100
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
101
100
|
onSend?: ((content: string) => any) | undefined;
|
|
102
101
|
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
102
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
103
103
|
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
104
104
|
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
105
105
|
"onFile-upload"?: (() => any) | undefined;
|
package/dist/index8.vue.d.ts
CHANGED
|
@@ -23,12 +23,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
23
23
|
copyCode: typeof copyCode;
|
|
24
24
|
toggleFullscreen: typeof toggleFullscreen;
|
|
25
25
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
26
|
-
copy: (code: string) => any;
|
|
27
26
|
click: (event: MouseEvent) => any;
|
|
27
|
+
copy: (code: string) => any;
|
|
28
28
|
fullscreen: (isFullscreen: boolean) => any;
|
|
29
29
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
30
|
-
onCopy?: ((code: string) => any) | undefined;
|
|
31
30
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
31
|
+
onCopy?: ((code: string) => any) | undefined;
|
|
32
32
|
onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
trim: boolean;
|
package/dist/index9.vue.d.cts
CHANGED
|
@@ -23,12 +23,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
23
23
|
copyCode: typeof copyCode;
|
|
24
24
|
toggleFullscreen: typeof toggleFullscreen;
|
|
25
25
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
26
|
-
copy: (code: string) => any;
|
|
27
26
|
click: (event: MouseEvent) => any;
|
|
27
|
+
copy: (code: string) => any;
|
|
28
28
|
fullscreen: (isFullscreen: boolean) => any;
|
|
29
29
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
30
|
-
onCopy?: ((code: string) => any) | undefined;
|
|
31
30
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
31
|
+
onCopy?: ((code: string) => any) | undefined;
|
|
32
32
|
onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
trim: boolean;
|
package/dist/index9.vue.d.ts
CHANGED
|
@@ -62,26 +62,26 @@ declare const __VLS_export: vue.DefineComponent<ContextMenuProps, {
|
|
|
62
62
|
visible: vue.ComputedRef<boolean>;
|
|
63
63
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
64
64
|
select: (item: ContextMenuItem) => any;
|
|
65
|
+
close: () => any;
|
|
65
66
|
open: (position: {
|
|
66
67
|
x: number;
|
|
67
68
|
y: number;
|
|
68
69
|
}) => any;
|
|
69
|
-
close: () => any;
|
|
70
70
|
}, string, vue.PublicProps, Readonly<ContextMenuProps> & Readonly<{
|
|
71
71
|
onSelect?: ((item: ContextMenuItem) => any) | undefined;
|
|
72
|
+
onClose?: (() => any) | undefined;
|
|
72
73
|
onOpen?: ((position: {
|
|
73
74
|
x: number;
|
|
74
75
|
y: number;
|
|
75
76
|
}) => any) | undefined;
|
|
76
|
-
onClose?: (() => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
|
-
disabled: boolean;
|
|
79
78
|
items: ContextMenuItem[];
|
|
79
|
+
disabled: boolean;
|
|
80
|
+
zIndex: number;
|
|
80
81
|
minWidth: number;
|
|
81
82
|
maxWidth: number;
|
|
82
83
|
subMenuPlacement: "right" | "left";
|
|
83
84
|
autoClose: boolean;
|
|
84
|
-
zIndex: number;
|
|
85
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
86
86
|
declare const _default: typeof __VLS_export;
|
|
87
87
|
//#endregion
|
package/dist/presets.d.cts
CHANGED
|
@@ -13,7 +13,8 @@ interface ActionDropdownItem {
|
|
|
13
13
|
icon?: string;
|
|
14
14
|
disabled?: ActionState;
|
|
15
15
|
show?: ActionState;
|
|
16
|
-
|
|
16
|
+
/** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
|
|
17
|
+
onClick?: () => unknown;
|
|
17
18
|
}
|
|
18
19
|
interface ActionItem {
|
|
19
20
|
/** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
|
|
@@ -31,7 +32,8 @@ interface ActionItem {
|
|
|
31
32
|
dropdown?: ActionDropdownItem[];
|
|
32
33
|
/** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
|
|
33
34
|
autoLoading?: boolean;
|
|
34
|
-
|
|
35
|
+
/** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
|
|
36
|
+
onClick?: () => unknown;
|
|
35
37
|
/** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
|
|
36
38
|
buttonProps?: Partial<ButtonProps>;
|
|
37
39
|
directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
|
|
@@ -76,10 +78,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
|
|
|
76
78
|
"onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
|
|
77
79
|
"onAction-click"?: ((action: ActionItem) => any) | undefined;
|
|
78
80
|
}>, {
|
|
81
|
+
config: ActionBarConfig;
|
|
79
82
|
actions: ActionItem[];
|
|
80
83
|
leftActions: ActionItem[];
|
|
81
84
|
rightActions: ActionItem[];
|
|
82
|
-
config: ActionBarConfig;
|
|
83
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
84
86
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
85
87
|
declare const _default: typeof __VLS_export;
|
package/dist/presets.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ interface ActionDropdownItem {
|
|
|
13
13
|
icon?: string;
|
|
14
14
|
disabled?: ActionState;
|
|
15
15
|
show?: ActionState;
|
|
16
|
-
|
|
16
|
+
/** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
|
|
17
|
+
onClick?: () => unknown;
|
|
17
18
|
}
|
|
18
19
|
interface ActionItem {
|
|
19
20
|
/** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
|
|
@@ -31,7 +32,8 @@ interface ActionItem {
|
|
|
31
32
|
dropdown?: ActionDropdownItem[];
|
|
32
33
|
/** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
|
|
33
34
|
autoLoading?: boolean;
|
|
34
|
-
|
|
35
|
+
/** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
|
|
36
|
+
onClick?: () => unknown;
|
|
35
37
|
/** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
|
|
36
38
|
buttonProps?: Partial<ButtonProps>;
|
|
37
39
|
directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
|
|
@@ -76,10 +78,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
|
|
|
76
78
|
"onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
|
|
77
79
|
"onAction-click"?: ((action: ActionItem) => any) | undefined;
|
|
78
80
|
}>, {
|
|
81
|
+
config: ActionBarConfig;
|
|
79
82
|
actions: ActionItem[];
|
|
80
83
|
leftActions: ActionItem[];
|
|
81
84
|
rightActions: ActionItem[];
|
|
82
|
-
config: ActionBarConfig;
|
|
83
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
84
86
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
85
87
|
declare const _default: typeof __VLS_export;
|
package/dist/public.d.ts
CHANGED
|
@@ -101,8 +101,10 @@ interface BreadcrumbItem {
|
|
|
101
101
|
label: string;
|
|
102
102
|
/** 图标名称 */
|
|
103
103
|
icon?: string;
|
|
104
|
+
/** 禁用导航;目录禁用时同时禁用其子项。 */
|
|
105
|
+
disabled?: boolean;
|
|
104
106
|
/** 子级列表(用于下拉) */
|
|
105
|
-
children?: BreadcrumbItem[];
|
|
107
|
+
children?: readonly BreadcrumbItem[];
|
|
106
108
|
}
|
|
107
109
|
//#endregion
|
|
108
110
|
//#region src/components/_shared/menuAdapter.d.ts
|